CacheKiller is a utility program designed to help you clean up your system's memory and cache. It provides options to clear pagecache, dentries, inodes, swap space, temporary files, and systemd journal logs.
- Clear pagecache, dentries, and inodes
- Clear swap space
- Remove temporary files
- Clear systemd journal logs
- A Unix-like operating system (I use Arch btw.)
- C++ compiler
sudoprivileges (no password required)
-
Clone the repository or download the source code.
-
Open a terminal and navigate to the directory containing
catch.cpp. -
Compile the source code using the following command:
g++ -o CacheKiller catch.cpp
-
The executable
CacheKillerwill be created in the same directory.
Run the CacheKiller executable to start the program. You will be prompted to confirm each action before it is executed. Ensure you use ROOT user.
./CacheKiller$ ./CacheKiller
CacheKiller! This program will help you clean up your system's memory and cache.
Do you want to clear pagecache, dentries, and inodes? (y/n): y
Clearing pagecache, dentries, and inodes...
Do you want to clear swap space? (y/n): y
Clearing swap space...
Do you want to remove temporary files? (y/n): y
Removing temporary files...
Do you want to clear systemd journal logs? (y/n): y
Clearing systemd journal logs...
Memory and cache cleanup finished, [CacheKiller]
CacheKiller logs all actions to a file named killer.log in the current directory.
Contributions are welcome! Please submit a pull request or open an issue to discuss any changes.