(Msg. 9) Posted: Tue Aug 16, 2005 4:44 pm
Post subject: Re: modifying memory usage of a program (F-Prot)? [Login to view extended thread Info.] Archived from groups: comp>os>linux>misc, others (more info?)
John-Paul Stewart <jpstewart RemoveThis @binaryfoundry.ca> writes:
>> I upgraded the software yesterday, still crashed last night. The "top"
>> output shows it ran out of buffers and swap...which was indeed the same
>> size is before.
>> So I deleted and followed your instructions again...properly, and
>> voila! The "top" now shows swap being 1GB larger, and "swapon -s" shows
>> that new file as part of the swap.
>> What a cool trick that is. =)
>> So I anticipate everything working OK tonight.
>> Thanks for the help!!
>It'll be interesting to see if the problem re-occurs, but later due to
>the larger available swap space (indicating a memory leak in the app) or
>if it goes away (indicating your system was just starved for memory in
>which case you may want to add more RAM as well as the swap space.)
Yee gads. Get 1GB ofmemory and add that. swap is a hopeless way of creating
memory. It is about a factor of 1000 slower than memory. If you program
starts swappping you might as well forget about it. If you run out of swap,
you should definitley forget about it. Your machine will spend all of its
time swapping and none doing anything useful.
GET MORE MEMORY. Do not increase swap.it is useless for accomplishing
anything.
(Msg. 10) Posted: Tue Aug 16, 2005 4:44 pm
Post subject: Re: modifying memory usage of a program (F-Prot)? [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
Unruh wrote:
> John-Paul Stewart <jpstewart.RemoveThis@binaryfoundry.ca> writes:
>
>
>
>>>I upgraded the software yesterday, still crashed last night. The "top"
>>>output shows it ran out of buffers and swap...which was indeed the same
>>>size is before.
>>>So I deleted and followed your instructions again...properly, and
>>>voila! The "top" now shows swap being 1GB larger, and "swapon -s" shows
>>>that new file as part of the swap.
>>>What a cool trick that is. =)
>>>So I anticipate everything working OK tonight.
>>>Thanks for the help!!
>
>
>>It'll be interesting to see if the problem re-occurs, but later due to
>>the larger available swap space (indicating a memory leak in the app) or
>>if it goes away (indicating your system was just starved for memory in
>>which case you may want to add more RAM as well as the swap space.)
>
>
> Yee gads. Get 1GB ofmemory and add that. swap is a hopeless way of creating
> memory. It is about a factor of 1000 slower than memory. If you program
> starts swappping you might as well forget about it. If you run out of swap,
> you should definitley forget about it. Your machine will spend all of its
> time swapping and none doing anything useful.
> GET MORE MEMORY. Do not increase swap.it is useless for accomplishing
> anything.
If you look up thread, I was suggesting the OP add the swap as a
diagnostic tool. If he increases swap by 1GB and the original problem
(F-Prot using all RAM and swap) persists, that's a likely indication of
a memory leak or other problem with the application. In that case, no
amount of additional RAM will help. So why spend the money on extra RAM
until you know for sure that it will help?
However, if the problem does go away with the additonal swap, then I
fully agree that extra RAM is a better long-term solution.
(Msg. 11) Posted: Tue Aug 16, 2005 6:08 pm
Post subject: Re: modifying memory usage of a program (F-Prot)? [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
15 Aug 2005 14:48 UTC, news.DeleteThis@celticbear.com typed:
> It started with my noticing our fileserver closing all open connections
> and restarting HTTPD and other processes each night.
> According to the /var/log/messages, I'd been getting a slew of these
> messages the same time each night:
> Aug 15 05:03:21 fileserve kernel: Out of Memory: Killed process 30974
> (httpd).
> Aug 15 05:03:27 fileserve kernel: Out of Memory: Killed process 30975
> (httpd).
> Aug 15 05:03:32 fileserve kernel: Out of Memory: Killed process 7835
> (sshd).
> But there's nothing set to run at 5am each day.
Wonder if you have an OOM killer enabled. Turning it off won't help you
find the problem, but it should stop other processes being killed off by
your rogue 'possibly' program.
--
Meader's Law:
Whatever happens to you, it will previously have happened to everyone you
know, only more so.
(Msg. 12) Posted: Tue Aug 16, 2005 8:37 pm
Post subject: Re: modifying memory usage of a program (F-Prot)? [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
In comp.os.linux.misc Unruh <unruh-spam RemoveThis @physics.ubc.ca>:
> John-Paul Stewart <jpstewart RemoveThis @binaryfoundry.ca> writes:
>>> I upgraded the software yesterday, still crashed last night.
>>> The "top" output shows it ran out of buffers and swap...which
>>> was indeed the same size is before. So I deleted and
>>> followed your instructions again...properly, and voila! The
>>> "top" now shows swap being 1GB larger, and "swapon -s" shows
>>> that new file as part of the swap. What a cool trick that
>>> is. =) So I anticipate everything working OK tonight. Thanks
>>> for the help!!
>> It'll be interesting to see if the problem re-occurs, but later
>> due to the larger available swap space (indicating a memory
>> leak in the app) or if it goes away (indicating your system was
>> just starved for memory in which case you may want to add more
>> RAM as well as the swap space.)
> Yee gads. Get 1GB ofmemory and add that. swap is a hopeless way
> of creating memory. It is about a factor of 1000 slower than
> memory. If you program starts swappping you might as well
> forget about it. If you run out of swap, you should definitley
> forget about it. Your machine will spend all of its time
> swapping and none doing anything useful. GET MORE MEMORY. Do
> not increase swap.it is useless for accomplishing anything.
Yep, more memory does certainly help and it's cheap enough.
However, I'd enable overcommit memory at first and see what that
does, some apps tend to allocate memory in a strange way.
--
Michael Heiming (X-PGP-Sig > GPG-Key ID: EDD27B94)
mail: echo zvpunry RemoveThis @urvzvat.qr | perl -pe 'y/a-z/n-za-m/'
#bofh excuse 348: We're on Token Ring, and it looks like the
token got loose.
(Msg. 13) Posted: Wed Aug 17, 2005 6:46 am
Post subject: Re: modifying memory usage of a program (F-Prot)? [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
John-Paul Stewart wrote:
>
> If you look up thread, I was suggesting the OP add the swap as a
> diagnostic tool. If he increases swap by 1GB and the original problem
> (F-Prot using all RAM and swap) persists, that's a likely indication of
> a memory leak or other problem with the application. In that case, no
> amount of additional RAM will help. So why spend the money on extra RAM
> until you know for sure that it will help?
>
> However, if the problem does go away with the additonal swap, then I
> fully agree that extra RAM is a better long-term solution.
Welp, it worked. I dumped "top" at 15 minute intervals, and at times
the used swap space was past what I used to have, but never came close
to all of the new swap space.
So the problem is indeed not the program, but the amount of RAM.
Thanks for the help!! It's greatly appreciated!
(I am definitely writing this trick down in my "cool tips" journal.)
Liam
All times are: Eastern Time (US & Canada) (change) Goto page Previous1, 2
Page 2 of 2
You can post new topics in this forum You can reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum