0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

スワップについて Linucレベル1勉強メモ #55

Posted at

スワップとは
メモリが足りなくなった時に、メモリの中身をハードディスクに移す作業
つまりメモリが足りなくなった時に、実際のメモリよりも大きいメモリがあると錯覚させる技
パフォーマンスは低下してしまうが、メモリ不足でシステムが動かなくなることを防ぐ。

ースワップの作成の仕方ー
 書式 mkswap デバイス名もしくはファイル名

ースワップ領域を有効にするにはー
 書式 swapon デバイス名もしくはファイル名

以下スワップ時のデータのやりとりを図にしてみました。
スクリーンショット 2025-06-07 16.11.00.png

0
0
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
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?