0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

【Ubuntu】動作が重いとき

Last updated at Posted at 2023-06-30

はじめに

Ubuntuを使用している方で、
「最近PC重いな...」
というときに役立つコマンドを紹介します。

環境

Ubuntu20.04


コマンド

たったこれだけ。

sudo sysctl -w vm.drop_caches=3

sudo sh -c "sync; echo 3 > /proc/sys/vm/drop_caches"

Bashにまとめて定期的にcronで定期実行することをおすすめします。

clear_cpu_cache.sh
#!/bin/sh

sudo sysctl -w vm.drop_caches=3
sudo sh -c "sync; echo 3 > /proc/sys/vm/drop_caches"

PCが2,3年以上前の方は、買い替えもアリかもしれません。
intelも飛躍的に進化してるし、MacのM2チップは神。

以上、ご拝読いただきありがとうございました!

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?