Deutsch English Français Italiano |
<v105um$3sg37$4@dont-email.me> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!news.nobody.at!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: James Harris <james.harris.1@gmail.com> Newsgroups: comp.os.linux.misc Subject: Re: Linux doesn't seem to manage memory very well Date: Thu, 2 May 2024 14:54:30 +0100 Organization: A noiseless patient Spider Lines: 39 Message-ID: <v105um$3sg37$4@dont-email.me> References: <v0t5nk$3415a$1@dont-email.me> <op.2m3iszoxa3w0dxdave@hodgins.homeip.net> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Thu, 02 May 2024 15:54:31 +0200 (CEST) Injection-Info: dont-email.me; posting-host="99d5fd730d26cbf37522df16daa5f91f"; logging-data="4079719"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/cGWA4qmKd+f++nTq1f0KOhstcGwUV2eA=" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:eOxIpUemlwWscDDm6rWwHO0YkeU= In-Reply-To: <op.2m3iszoxa3w0dxdave@hodgins.homeip.net> Content-Language: en-GB Bytes: 2646 On 01/05/2024 15:06, David W. Hodgins wrote: > On Wed, 01 May 2024 06:32:18 -0400, James Harris > <james.harris.1@gmail.com> wrote: >> Not a question, just an observation. >> I say that Linux doesn't seem to handle memory well because my laptop >> had 8GB RAM (which, frankly, Windows seems to find perfectly adequate >> for a similar workload). Under Linux the RAM would fill up and then swap >> space would be used. Then the machine would become largely unresponsive >> - e.g. taking minutes to switch between windows. >> So I upgraded the RAM. It now has three times as much (i.e. 24GB)! But >> even so, RAM has still steadily filled up until reaching the full 24GB. >> What's more, it's now showing 4.8GB of swap space in use. > > Likely you're using a system that's configured for maximum total > throughput, > not best response time. > > Create a file, /etc/sysctl.d/tales.conf with the contents ... > # Reduce applications being swapped > vm.swappiness=1 > # Don't shrink the inode cache > vm.vfs_cache_pressure=50 > > Then run the command "sysctl --system" (as root). > > See > https://rudd-o.com/linux-and-free-software/tales-from-responsivenessland-why-linux-feels-slow-and-how-to-fix-that > for an explanation. I very much like the control that Linux gives to a user but ISTM that what you say here is a great example of the issue I was pointing out in the original post: IMO page depletion should be handled better *by default* and not need human intervention for normal scenarios. -- James Harris