by kokojumbo on 1/25/23, 5:25 PM with 5 comments
Why there is such huge disproportion?
by LinuxBender on 1/25/23, 5:29 PM
Linux is by default very forgiving, to a fault. That fault being an application can ask for more memory than what is available and will use a simple formula to permit it. BSD is stricter by default on over-commit, thus keeping some people out of trouble at the risk of denying an application's request for more memory. This is really only a problem if the person is forking more processes and requesting more memory than what is installed and available.
Take a look at your committed memory and available memory:
grep Com /proc/meminfo; free -m
Assuming this is what you are running into on Linux this behavior can be disabled using # vm.overcommit_ratio = 50 # is the default (mem+swap*1.5)
vm.overcommit_ratio = 0
in /etc/sysctl.conf or adjust as you see fit and then running sysctl -p or rebooting. There are other tunables that can prevent swapping or start swapping early depending on what behavior one prefers and how much memory is installed in the system in question. There are also tunables for reserving memory for root and for the kernel but I will avoid going down that rabbit hole without knowing your setup.by pwg on 1/25/23, 5:58 PM
This may be caused by the "desktop environment" you are running and not Linux itself.
I do not run DE's (simply Fvwm2, no 'desktop environment') and this Linux machine I'm typing on has a record uptime of 475 days, and a current uptime of 110 days. Most often it gets rebooted due to a power cut that lasts longer than the UPS contains energy to last through.
My Linux pvr has a current uptime of 414 days (and this length is also its record uptime).
My Linux firewall/router has a record uptime of 616 days and a current uptime of 49 days (and this 49 days was caused by the previous motherboard dying and necessitating a motherboard replacement).
Another Linux desktop machine, also running only Fvwm2, has a current, and record, uptime of 243 days. It as well most often is rebooted only due to power cuts beyond the ability of the UPS to keep the system running.
So my experience is the exact opposite of yours -- Linux is rock solid and does not "get hiccups and freezes regularly".
by tambourine_man on 1/25/23, 5:30 PM
In fact, force rebooting is a thing of the past in most platforms, and has been for decades. Even Windows is reasonable stable.