ssleert / ccc

Linux ram cache dropper in C without *alloc()

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Linux cache dropper in C without any alloc🎈


Description 📖

A few days ago I noticed that while playing a game my OS is caching all the RAM and then frantically trying to cram a new game level into the few hundred free migabytes, at this point the game is a bit slow and it's a bit annoying. So I wrote a small but very dumb solution that just works.

In fact, I'm really surprised at how much such a dumb decision could fix the situation. I don't fully understand why this happens, so if you do, please open an issue and help me out.

At this point ссс is in a very early stage of development so feel free to open an issue with your problems and suggestions.

Note that this is only compatible with the linux kernel at this time.


Installation ☁️

From source

git clone https://github.com/ssleert/ccc.git
cd ./ccc
sudo make install

Configuration ⚙️

/usr/local/etc/ccc.conf
config file example
[Files]
  Lock = /tmp/ccc.lock

[Log]
  Silent = false

[Options]
  Sync = true

[Levels] # percents
  First  = 15
  Second = 10
  Third  = 5

[Timeouts] # seconds
  Check = 10

[Error]
  MaxAmount = 10

Contribute

Before contributing, please run

make format

made with 🫀 by sfome

About

Linux ram cache dropper in C without *alloc()

License:MIT License


Languages

Language:C 78.2%Language:Shell 16.2%Language:Makefile 5.6%