azlux / log2ram

ramlog like for systemd (Put log into a ram folder)
MIT License
2.57k stars 187 forks source link

Using log2ram for other ramdisk purposes? #210

Open jult opened 11 months ago

jult commented 11 months ago

Not just logs I mean. I'm slowly expanding its usage to swap more storage into RAM using log2ram. Just wanted to know: Are there any limits to this tool? What is the maximum I can let log2ram store in RAM ? This seems to be the only functional tool that actually does what it says on the tin. It swaps to disk for assurance at set intervals, it stores entire folders in RAM and it actually creates proper linkage to/from those files.

By the way, it looks like linux file-caching has a long way to go. It really does not do what it should do. I still have about 18 Gigs of unused RAM, and whatever I do, it's not being used by linux, it's just sitting there wasting my SSDs and HDDs away. Linux should swap everything it can to RAM for all I care, but it just fails to do so, whatever I try. The only thing actually doing this, is this tool here!

MegaV0lt commented 11 months ago

You can try to test with SIZE=10G and see what is happening. As far i know the ramdisk uses only the size that is occpied by files.