You are not logged in.
Pages: 1
Hi all,
Whislt I've been playing with linux on the side for a few years the past few weeks have been my first foray into using linux as my main OS, in the form of Arch. It's been a steep learning curve but I'm enjoying the experience and wealth of information. Previous flirts with Linux have been groping in the dark, pasting code from the internet and avoiding the terminal where possible.
Since going Arch full time I've noticed the RAM usage seems to increase when I leave it alone for a few hours. I'm running an old, around 2005 I think, Advent Laptop with 512MB, or 466MB according to free -m, RAM. I've allocated 2GB to swap which it dips into occasionally.
Typically I've been leaving open luakit & urxvt whislt running Awesome. If I leave it for a few hours and return the RAM has jumped from 30% or so to 80 or 90%. A reboot solves this.
I had a look around the interwebs but this is the first time my wed-fu has not unearthed one of those wonderful arch articles/post on what to do.
Any suggestions, or anything I can do to clarify the issue?
Offline
webkitgtk leaks memory slowly but surely, so luakit is probably part of the problem.
Offline
Cheers,
It's not huge problem but I'm curious as to how one would identify the culprit, luakit seems fairly laid back when I check top processes. Is there a method to check for leakage over time?
Offline
Use something like top, or htop to sort processes by memory consumption (shift+m), or use 'ps ux | sort -k4,4n' at regular intervals.
Last edited by WorMzy (2013-08-28 22:03:33)
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Offline
I'll need to test further but htop or top show little varation in memory consumption from what I recall. It just seems that over time RAM usage is on the up, whislt the running programs are rather sedate.
Offline
In that case, are you sure you're not just 'suffering' from increased disk caching? See linuxatemyram.com for a detailed explanation about why this is actually a good thing.
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Offline
Not sure at all, happy for linux to use my RAM for disk caching, and stumbled across that aticle in my searching, just curious as to why it increases over time. Does disk caching use more and more RAM as the hours progress?
Offline
It does indeed, but only while the system is being actively accessed, as far as I know. An idle system (i.e. with no filesystem access) will have a stagnant file cache.
So I guess the question here would be, is your PC idle while you're "leaving" it? Do you use it as a fileserver, webserver, database, etc, or do you ssh in perform various tasks? Does 'free' report your free '-/+ buffers/cache' value as something minute?
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Offline
Pages: 1