The matter is that this problem affects the linux operating systems since longer than a decade... It seems that developers are really incompetents.
Announcement
Collapse
No announcement yet.
New Low-Memory-Monitor Project Can Help With Linux's RAM/Responsiveness Problem
Collapse
X
-
Originally posted by birdie View Post- SWAP does not solve this issue.
Originally posted by birdie View Post- In many cases a system can run without SWAP perfectly. I've been running without SWAP for over 15 years now. 100% of my servers (over a hundred high load machines) run without SWAP.
- In many cases SWAP significantly decreases performance and responsiveness.
- In many cases SWAP causes minutes-long stalls.
When you look into how the structure defrag system for LInux kernel for structures so items like transhuge pages can work effectively you will find swap usage. Push section of structure to swap work on modify structure not to need what was pushed to swap if that section pulled out of swap and modified while doing change abort and try again latter because the data has changed while modification was in fly..
zram or just a https://www.kernel.org/doc/html/late...v/ramdisk.html plain old ramdisk with a swap-partition on it will have the Linux kernel structure defragmentation system happy. 4meg swap partition in ram uncompressed. In fact high load systems I am highly likely to use a old school ramdisk due to reduced cpu usage. Compression of zram is kind of a pain.
System without swap will still run but items like transhuge pages will be in fall back mode and you will not be getting the performance gains from them and other equal problems. Run long enough you can be running out of memory due to structure fragmentation.
It some ways I think there need to be a patch that creates a non disabled ram swap space for kernel structure defraging independent to the general swap system and then turning off the general swap system would not have adverse effects.
This fragmentation is the first problem.
Ram based swap does not wear SSD. Ram based swap is dealing with a different problem set of problems.
Originally posted by birdie View PostIf people also stopped repeating the nonsense that a system cannot run without SWAP, I'd be happy.
Those who say I run systems without swap and it fine are missing the areas where there systems are in fact under performing due to fragmentation of structures over time. Yes normally ignoring mirror issues from time to time causing system restarts that are also happening due to fragmentation at random times.
Memory management is a complex beast.
- Likes 3
Comment
-
Originally posted by polarathene View Post...
Comment
-
Originally posted by alpha_one_x86 View PostFirstly correct critical bug should be good: https://bugzilla.kernel.org/show_bug.cgi?id=204315 (my bug)
zswap has a basic flaw in it design that means when you run out of memory completely it makes matters worse not better.
zswap to evict pages in zswap out to a different swap the zswap compressed pages have to be decompressed. So this increases cpu usage at the very time you don't want to increase it. zswap compression does not bring any disc io bandwidth reduction.
Comment
-
I may be in the minority but I perceive an improvement in Ubuntu 18.04.3. I have a machine with 32 gbs of RAM and the same amount of SWAP, and a AMD 1700. I haven't run out of both, but I routinely run out of RAM when doing text analysis. I those situations I have been able to play CSGO while my models consume all the RAM and 80% of the CPU mostly fine, with few frame drops here and there.
Comment
-
Originally posted by andreano View PostSwap used to be unheard of on embedded computers before zram. Managed flash memory like emmc (as opposed to relying in ubifs for wear leveling) hasn't always been common.
Comment
-
The Low-Memory-Monitor daemon monitors the amount of free physical memory and will signal other user-space applications when such pressure occurs. This can alert session managers and other key programs to the situation so they can in turn either free some memory themselves, trigger applications to quit/pause, or other behavior of their choosing.
- Likes 1
Comment
Comment