Skip to content

Commit 2364570

Browse files
committed
Add a command for clearing of cache memory
1 parent 3ec2210 commit 2364570

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -530,6 +530,12 @@ cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor
530530
for i in $(ls /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor); do echo performance | sudo tee $i; done
531531
```
532532

533+
Stop un-needed applications and services, then clear cache memory to improve system performance. One way to clear cache memory
534+
on Linux without having to reboot the system:
535+
```sh
536+
free -m -h && sudo echo 3 > /proc/sys/vm/drop_caches && free -m -h
537+
```
538+
533539
Sbt plugin for JMH tool is used for benchmarking, to see all their features and options please check
534540
[Sbt-JMH docs](https://github.com/ktoso/sbt-jmh) and [JMH tool docs](https://openjdk.java.net/projects/code-tools/jmh/)
535541

0 commit comments

Comments
 (0)