Re: Recommended swap partition size

2010-04-19 Thread Johan De Meersman
On Sun, Apr 18, 2010 at 9:04 PM, Eric Bergen eric.ber...@gmail.com wrote: Usually I prefer to have linux kill processes rather than excessively swapping. I've worked on machines before that have swapped so badly I guess you never had the OOM killer randomly shooting down your SSH daemon on a

Re: Recommended swap partition size

2010-04-19 Thread Eric Bergen
Google oom_adj and oom_score. You can control which process is most likely to be killed. On Mon, Apr 19, 2010 at 12:53 AM, Johan De Meersman vegiv...@tuxera.be wrote: On Sun, Apr 18, 2010 at 9:04 PM, Eric Bergen eric.ber...@gmail.com wrote: Usually I prefer to have linux kill processes

Re: Recommended swap partition size

2010-04-18 Thread Eric Bergen
Linux will normally swap out a few pages of rarely used memory so it's a good idea to have some swap around. 2G seems excessive though. Usually I prefer to have linux kill processes rather than excessively swapping. I've worked on machines before that have swapped so badly that it took minutes

Re: Recommended swap partition size

2010-04-18 Thread Rob Wultsch
On Sun, Apr 18, 2010 at 12:04 PM, Eric Bergen eric.ber...@gmail.com wrote: Linux will normally swap out a few pages of rarely used memory so it's a good idea to have some swap around. 2G seems excessive though. Usually I prefer to have linux kill processes rather than excessively swapping.

Re: Recommended swap partition size

2010-04-18 Thread Eric Bergen
The impact of swap activity on performance is dependent on the rate at which things are being swapped and the speed of swapping. A few pages per second probably won't kill things but in this case it was swapping hundreds of pages per second which killed performance. Disks are much slower than

Re: Recommended swap partition size

2010-04-14 Thread Johan De Meersman
Correct, but when something *does* go amiss, some swap may give you the time you need to fix things before you really go down :-) So, yeah, a gig or two should be fine. There's also no real need for an actual swap partition, these days - just use a swap file. Performance is only marginally less

Re: Recommended swap partition size

2010-04-14 Thread Glyn Astill
--- On Wed, 14/4/10, Dan Nelson dnel...@allantgroup.com wrote: Hammerman said: My organization has a dedicated MySQL server. The system has 32Gb of memory, and is running CentOS 5.3.  The default engine will be InnoDB. Does anyone know how much space should be dedicated to swap? I

Recommended swap partition size

2010-04-13 Thread Joe Hammerman
Hello all, My organization has a dedicated MySQL server. The system has 32Gb of memory, and is running CentOS 5.3. The default engine will be InnoDB. Does anyone know how much space should be dedicated to swap? Thanks!

Re: Recommended swap partition size

2010-04-13 Thread Dan Nelson
In the last episode (Apr 13), Joe Hammerman said: My organization has a dedicated MySQL server. The system has 32Gb of memory, and is running CentOS 5.3. The default engine will be InnoDB. Does anyone know how much space should be dedicated to swap? I say zero swap, or if for some reason you

Re: Recommended swap partition size

2010-04-13 Thread Kyong Kim
Yeah. One of the telltale signs of something amiss is excessive swap activity. You're not going to be happy with the performance when the swap space is actually in use heavily. Kyong On Tue, Apr 13, 2010 at 8:15 PM, Dan Nelson dnel...@allantgroup.com wrote: In the last episode (Apr 13), Joe