Skip to content
/ ccc Public

Linux ram cache dropper in C without *alloc()

License

Notifications You must be signed in to change notification settings

ssleert/ccc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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()

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published