[Qt-interest] pls

Mukesh Gopalakrishnan mukgol at gmail.com
Thu Apr 1 00:22:18 CEST 2010


I think you are very troubled man.

>Cool, now you want to tell me that my apps are crashing because of limited
>memory while in practice they run for more then 2 weeks 24/7 with "only" 3GB
>of ram (and no swap) available allocating and releasing memory like crazy?
>
>I know that sentence is a bit long (its almost midnight here), but please try
>to understand what I said and what you seem to tell me:
>My apps run for very long times on disk-less (and head-less) machines. They
>allocate memory block of around 4kB around 10.000 times per _second_ and
>release that memory in one thread around 8.000 times per _second_ and in
>another thread around 2000 times a _second_. That is it keeps buffers.
>Still when the app stops data-evaluation without quitting the app, memory
>usage of the app is down to 0.3%.
>I did a lot of testing with "valgrind --tool=memcheck" to find memory leaks in
>my code. (With that many allocations per second you can't afford even one
>single byte leaking.) The only "leaks" found are leaks of a) static objects in
>Qt or libs used in Qt or b) very small leaks in X- or font-libraries created
>only a hand-full of times.
>
>Every year or so someone claims that one can "free" memory by allocating a lot
>and releasing it. Yes, that has a memory-freeing effect. Because it clears the
>memory from the cache the kernel keeps of files. But this cache is good for
>you. It helps access these files faster and is actually freed as soon as an app
>needs that memory.
>
>If your app gets slow after long run-times because of memory usage, its
>because it uses to much ram and the system has to swap.
>Please run _your_ app in a memory-checker like "valgrind --tool=memcheck",
>look carefully at the output and fix the memory leaks found inside the code you
>wrote.

>I repeat: I can assure you that the Qt-libraries are _not_ leaking memory
>anywhere near the memory figures that make your app _big_ after weeks of
>runtime.

>Have fun,

>Arnold

>PS: Contact me in private for my rates if you need a memory-leak-check done on
>your software and are not capable of doing it yourself.



On Wed, Mar 31, 2010 at 6:09 PM, amulya rattan <talk2amulya at gmail.com>wrote:

> hey mukesh..easy buddy!!..no one is attacking india or you..get some
> vikodin for god sake!!
> and pls dont expect to get answers "ASAP" when question just doesnt sound
> right!! thanks for keeping india weird...
>
> list,
> could someone please put him out of his misery(or unsubscribe him!!)
>
> On Thu, Apr 1, 2010 at 3:29 AM, Mukesh Gopalakrishnan <mukgol at gmail.com>wrote:
>
>> unsubscribe now!
>>
>>
>> On Wed, Mar 31, 2010 at 5:48 PM, Mukesh Gopalakrishnan <mukgol at gmail.com>wrote:
>>
>>> Ah! so now it's fault of India! I think not!
>>>
>>>
>>> On Wed, Mar 31, 2010 at 5:43 PM, Gabriel M. Beddingfield <
>>> gabrbedd at gmail.com> wrote:
>>>
>>>>
>>>>
>>>> On Wed, 31 Mar 2010, Arnold Krille wrote:
>>>>
>>>> > On Wednesday 31 March 2010 22:07:01 Mukesh Gopalakrishnan wrote:
>>>> >>                                Dear Sir,
>>>> >
>>>> > What if I am a madam?
>>>>
>>>> ...not that there's anything wrong with that...
>>>>
>>>> > I thought we where supposed to bring new jokes on April fools?
>>>>
>>>> It's already 4/1 in India. :-)
>>>>
>>>> -gabriel
>>>> _______________________________________________
>>>> Qt-interest mailing list
>>>> Qt-interest at trolltech.com
>>>> http://lists.trolltech.com/mailman/listinfo/qt-interest
>>>>
>>>
>>>
>>
>> _______________________________________________
>> Qt-interest mailing list
>> Qt-interest at trolltech.com
>> http://lists.trolltech.com/mailman/listinfo/qt-interest
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100331/ee2e83a9/attachment.html 


More information about the Qt-interest-old mailing list