奶头挺立呻吟高潮av全片,成人试看120秒体验区,性欧美极品v,A片高潮抽搐揉捏奶头视频

操作系統

如何調整Linux系統中swap大小

時間:2025-03-23 05:28:43 操作系統 我要投稿
  • 相關推薦

如何調整Linux系統中swap大小

  使用free命令帶上m參數,查看swap文件大小,官方建議在RAM是2到4.5G時,swap是RAM的2倍;如果RAM大于等于4G則swap等于RAM即可

  也可用cat 查看etc目錄下的swaps文件,如下圖

  創建一個swap文件

  ########

  dd if=/dev/zero of=/tmp/swap bs=1MBcount=1024

  ########

  以下僅供參考:不用看

  Creating a swap file

  First of, make sure the file system the disk you wish to swap on is properly mounted. For the purposes of this tutorial we will assume the disk is mounted as/mntand we want to use the file/mnt/myswap.swpfor swapping.

  使用下面的命令創建一個1G的swap文件

  Use the following command to create a 1024MB file that we will use for swapping

  ########

  dd if=/dev/zero of=/mnt/myswap.swp bs=1024MBcount=1

  ########

  制作一個swap文件,如果覺得繁瑣,可以將mkswap文件掛載到tmp目錄下,例如:

  ########

  mkswap /tmp/swap

  ########

  以下僅供參考:不用看

  Preparing the swap file

  Before we enable the swap file we must first set it up. The following command accomplishes just that:

  ########

  mkswap /mnt/myswap.swp

  ########

  使用swapon 啟動/tmp/swap

  ########

  swapon /tmp/swap

  ########

  使用一個swap分區,如果已經有一個swap分區,該步驟可以省略

  以下僅供參考:不用看

  Using a swap partition

  Setting up a swap partition is a bit more difficult, as the partition must be first created then formatted using the linux-swap file system. Once that is done, assuming the swap partition is at/dev/scsi/host0/bus0/target0/lun0/part5(common for v24 USB drives with mutiple partitions), the only command that needs be issued is:

  再次使用free查看增加后的swap大小

  如果只想增加swap大小,請忽略以下的操作(重要。。

  如果不使用剛才增加的1G的swap文件,使用下面的swapoff命令,可以關閉,這樣swap文件就縮小了1G

  使用swapoff關閉swap文件

  ########

  swapoff /tmp/swap

  ########

【如何調整Linux系統中swap大小】相關文章:

在Linux系統中如何清除squid的緩存04-01

Win10中如何安裝SUSE Linux子系統04-22

Linux系統如何配置雙顯卡05-08

Linux系統xlsatom命令如何使用06-23

如何查看Linux系統架構類型04-07

在Linux系統中/dev的目錄詳解01-09

解析Linux系統中的進程調度06-19

解讀Linux系統中的進程調度08-01

Linux系統中的守護進程講解02-24

主站蜘蛛池模板: 明溪县| 通榆县| 虎林市| 邯郸市| 苏尼特左旗| 梓潼县| 信阳市| 灌阳县| 南平市| 洛扎县| 武威市| 宝清县| 建宁县| 阜宁县| 云安县| 交口县| 嫩江县| 如东县| 綦江县| 临潭县| 两当县| 汉阴县| 拜城县| 白银市| 思茅市| 宜州市| 涿鹿县| 花莲县| 广河县| 安阳市| 余江县| 海伦市| 雷波县| 亚东县| 随州市| 沛县| 临汾市| 平乡县| 彰化市| 宁强县| 广东省|