log2ram icon indicating copy to clipboard operation
log2ram copied to clipboard

different size for different paths? (feature request?)

Open zadigre opened this issue 4 years ago • 5 comments

beside /var/log, I also have one other folder that is managed by log2ram. I need a little bit more space for this folder... so I set size to 512M.... but that means /var/log is also taking 512M. is there a way to set /var/log to a smaller size while keeping my other folder to 512M?

zadigre avatar Jan 14 '21 21:01 zadigre

Increasing size should be not problematic, since memory is only used as needed. See: https://wiki.archlinux.org/index.php/Tmpfs#Examples

MegaV0lt avatar Jan 15 '21 08:01 MegaV0lt

Increasing size should be not problematic, since memory is only used as needed. See: https://wiki.archlinux.org/index.php/Tmpfs#Examples

yes I understand that... it's just my OCD that is ticked with I look at the free memory with the free command. 😉 but also, I've seen some swap usage... which I didn't see before even if my /var/log only had 11MB and my other path was like 60MB. I configured log2ram with 256M instead of 512... and no swap usage so far.

zadigre avatar Jan 19 '21 13:01 zadigre

If you said you're swapping too fast, You can also check your swapiness See : https://www.howtoforge.com/tutorial/linux-swappiness/

azlux avatar Jan 21 '21 20:01 azlux

oh great. thanks for the tip! I didn't know this parameter exists. and a quick search on google tells me that before it was at "1" on raspbian... and it was changed to the linux default "60" in 2017.

I changed it back to "1"... lets see how it goes in the next couple of days.

zadigre avatar Jan 21 '21 21:01 zadigre

I too would like to see this feature, even though defining too large doesn't take up more RAM than it needs, it would be nice if we could safeguard against folders that should be tiny to grow unexpectedly and clog up our RAM.

thomas725 avatar Oct 21 '22 10:10 thomas725