Felhasználói eszközök

Eszközök a webhelyen


memoria_swap

Különbségek

A kiválasztott változat és az aktuális verzió közötti különbségek a következők.

Összehasonlító nézet linkje

Előző változat mindkét oldalonElőző változat
Következő változat
Előző változat
memoria_swap [2022/07/26 06:34] daevidtmemoria_swap [2024/04/16 11:45] (aktuális) daevidt
Sor 1: Sor 1:
-== Swapfile == +===== Swapfile ===== 
-=== Swapfile készítése === +==== Swapfile készítése ==== 
-=== Swap ki / bekapcsolása ===+==== Swap ki / bekapcsolása ====
 Nézd meg, hogy van-e elég memóriád, hogy a swap beleférjen. Ha nincs, akkor valamit zárj be, mert ha nem, az oomkiller fogja. Nézd meg, hogy van-e elég memóriád, hogy a swap beleférjen. Ha nincs, akkor valamit zárj be, mert ha nem, az oomkiller fogja.
 <code bash> <code bash>
Sor 9: Sor 9:
 Sok használatban lévő memória esetén nagyon sokáig is tarthat a swapoff. Ez esetben az alábbit érdemes kipróbálni. Sok használatban lévő memória esetén nagyon sokáig is tarthat a swapoff. Ez esetben az alábbit érdemes kipróbálni.
  
-==== Python script a swapoff felgyorsítására ====+=== Python script a swapoff felgyorsítására ===
 forrás: [[https://unix.stackexchange.com/questions/45673/how-can-swapoff-be-that-slow]] forrás: [[https://unix.stackexchange.com/questions/45673/how-can-swapoff-be-that-slow]]
  
Sor 24: Sor 24:
 Since most of the pages are now present both in swap and in memory, the swapoff has very little to do and should be now blazingly fast (I saw hundreds of MB/s). Since most of the pages are now present both in swap and in memory, the swapoff has very little to do and should be now blazingly fast (I saw hundreds of MB/s).
  
-===== History section ahead =====+== History section ahead ==
 The aforementioned python script is based on the rest of this answer, which in turn was my improvement of this older answer authored by jlong. As the script is much much safer I recommend to only try the rest of my answer as the last line of defense: The aforementioned python script is based on the rest of this answer, which in turn was my improvement of this older answer authored by jlong. As the script is much much safer I recommend to only try the rest of my answer as the last line of defense:
  
Sor 64: Sor 64:
  
 The output starts with the size, so it's easy enough to pass it trough | sort -Vr | head to get top 10 largest segments by size (SSIZE). The -V stands for version-number-suitable sorting, but it works for my purpose. I couldn't figure how to make numerical sort work. The output starts with the size, so it's easy enough to pass it trough | sort -Vr | head to get top 10 largest segments by size (SSIZE). The -V stands for version-number-suitable sorting, but it works for my purpose. I couldn't figure how to make numerical sort work.
 +
 +===== Programok memóriahasználata, swap =====
 +
 +https://lib.hofelho.hu/#book_id=4117&library_id=db&panel=book_details
 +
memoria_swap.1658817265.txt.gz · Utolsó módosítás: 2022/07/26 06:34 szerkesztette: daevidt