BLU Discuss list archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Discuss] SSD drives vs. Mechanical drives
- Subject: [Discuss] SSD drives vs. Mechanical drives
- From: blu at nedharvey.com (Edward Ned Harvey (blu))
- Date: Wed, 7 May 2014 13:37:30 +0000
- In-reply-to: <20140506151247.GF26127@randomstring.org>
- References: <5364F3FB.40707@blu.org> <5367AE30.5020205@borg.org> <65397498e62c47bdb922195a82122a46@CO2PR04MB684.namprd04.prod.outlook.com> <5368DE98.9070303@borg.org> <20140506151247.GF26127@randomstring.org>
> From: discuss-bounces+blu=nedharvey.com at blu.org [mailto:discuss- > bounces+blu=nedharvey.com at blu.org] On Behalf Of Dan Ritter > > For a modern server, swap should be an emergency usage only. Incorrect. On a modern (linux) server, the kernel is able to balance stale application memory just like cache. If there is some idle process whose memory is colder than the coldest cache page, then it's actually *more valuable* to keep the cache in memory and swap out the process. The linux kernel can do this, if an only if there exists swap available. By swapping out the idle process and keeping cache in-memory, the kernel improves system performance. But you're correct that swap should never be actively used. The practice that I like to follow is: Give the system a small amount of swap. 1G at most, regardless of how much ram is present in the system. That way, the kernel can improve performance by gaining up to 1G ram by swapping out idle processes, yet if a process runs away and starts hogging ram, the system won't let it run *too* long before giving it "cannot allocate memory" and thus usually causing the errant process to die and free its memory.
- References:
- [Discuss] SSD drives vs. Mechanical drives
- From: gaf at blu.org (Jerry Feldman)
- [Discuss] SSD drives vs. Mechanical drives
- From: kentborg at borg.org (Kent Borg)
- [Discuss] SSD drives vs. Mechanical drives
- From: blu at nedharvey.com (Edward Ned Harvey (blu))
- [Discuss] SSD drives vs. Mechanical drives
- From: kentborg at borg.org (Kent Borg)
- [Discuss] SSD drives vs. Mechanical drives
- From: dsr at randomstring.org (Dan Ritter)
- [Discuss] SSD drives vs. Mechanical drives
- Prev by Date: [Discuss] SSD drives vs. Mechanical drives
- Next by Date: [Discuss] SSD drives vs. Mechanical drives
- Previous by thread: [Discuss] SSD drives vs. Mechanical drives
- Next by thread: [Discuss] SSD drives vs. Mechanical drives
- Index(es):