-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
What correct configuration to nohang work only related with zram ? #138
Comments
Hello! Sorry for the bad documentation. I have added many options, but have not described their meaning. Set
if the size of your ZRAM devices exceeds the total memory size ( If you use swap only for ZRAM, then you should use
Use
This is measured in MiB/s. It's not a threshold.
You use the swap only on ZRAM, and you want nohang to take effect when the free swap space is less than 10%, right?
Did you enable one of them (
You can't use only zram values. nohang checks MemAvilable and SwapFree in any case (if swap is in use). |
Thanks hakavlad for replying. I have used the setting below as you has replied zram_checking_enabled = True Here ZRAM size is 40 % RAM I has used the setting below in both nohang.service and nohang-desktop.service. However only is active nohang-desktop.service. If not is possible configure nohang for only use zram values the solution is use an low value setting for MemAvailable and SwapFree being 10 %. Have an nice week. |
nohang-desktop.service starts with nohang-desktop.conf
nohang-desktop.conf is enough if you started only nohang-desktop.service |
Thanks. I will try only using nohang-desktop.service. |
The setting "Poll rate" use an minimum value of 100 of each setting. What memory area is related with "max_sleep" ? Have an nice day. |
What problem do you want to solve?
And why do you want to set lower value?
This is a factor that influences the polling frequency. This is measured in MiB/s.
min_sleep is not related to memory area. This is the minimum interval between checks of available memory. |
Why that setting "fill_rate_zram" use value in MiB/s ? You sad replied I have used settings for swap and zram. Some times the OS was prone to out of memory hang with high disk read activity for several minutes before nohang had closed the bigger software. RAM is 4 GB and was used zram "disksize" setting 1792 MB so is as the zram disk size will be 1792 MB ? Not. Comparing in /proc/meminfo and zramctl status values about zram swap usage not are the same value. Now in /proc/meminfo In /proc/meminfo show swap free, but not is the correct free size of zram buffer. The solution is try configure to nohang work analyzing size of free memory, but is as if has another issue. zram_checking_enabled = True MemFree value is an mix between real memory free and cache ? If yes will be more hard configure an correct value for "soft_threshold_min_mem" In moment is better go to configure nohang to work related with memory free and not using high value for avoid waste memory. Have an nice week. |
@Augusto7743 Hi, could you share your final config? i want to do the similar configuration where OOM should occur only when ZRAM < 10% remaining. @hakavlad any help? |
10% what? That's not how it works. I recommend just using the default %. you even don't need |
@hakavlad hmm, but it sometimes OOM kills programs even when there is much memory left free in zram, i use 50% of my 8gb as zram swap, i get notification of low memory - "save your documents"(or something) even when >2gb zram swap is free. |
Hello.
Thanks for reading my topic.
Thanks hakavlad for creating nohang.
Ubuntu 20.04.6 and nohang_0.2.0-1 installed using PPA deb file.
I want nohang work only using zram values and when zram is in 10 % free start closing the software using more memory avoiding system freeze.
Thus the configuration are :
nohang.conf
zram_checking_enabled = True
and in
nohang-desktop.conf
zram_checking_enabled = True
The section and setting to only using zram values is the information below ?
fill_rate_zram = 4000
I want nohang working when reach zram 10 % free.
The setting fill_rate_zram information is Valid values: >= 100 and default value 4000 is confusing.
That valid value is percentage ?
Have an nice day.
The text was updated successfully, but these errors were encountered: