Site Tools


start:zramswap

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
start:zramswap [2023/09/13 18:32] peterstart:zramswap [2023/09/13 18:36] (current) peter
Line 98: Line 98:
  
 Some suggested values:  Some suggested values: 
-1,or 4GB systems : zramswap the same size as RAM but zstd compression and a swapfile the same size as zramswap value eg: +1GB,2GB or 4GB systems : zramswap the same size as RAM but zstd compression and a swapfile the same size as zramswap value eg: 
-4GB RAM example - zramswap set to 4GB also and Swap partition of 4GB also. Thus you see 4GB RAM in htop and 8GB swap (4gb being zramswap). 1,and 4gb systems tend to have too little RAM (eg: raspberry pi etc) and setting a large value and accepting a slower compression at cost of CPU can improve performance in most cases. (See swappiness page on systems for low ram - you may wish to set swappiness to 101).+4GB RAM example - zramswap set to 4GB also and Swap partition of 4GB also. Thus you see 4GB RAM in htop and 8GB swap (4gb being zramswap). 1GB,2GB and 4GB systems tend to have too little RAM (eg: raspberry pi etc) and setting a large value and accepting a slower compression at cost of CPU can improve performance in most cases. (See swappiness page on systems for low ram - you may wish to set swappiness to 101).
  
 8GB, 16GB systems : zramswap half the size of RAM, swapfile half the size of RAM (equal to zramswap value). lz4 for all RAM values 8GB or more (faster, not RAM constrained machines). 8GB, 16GB systems : zramswap half the size of RAM, swapfile half the size of RAM (equal to zramswap value). lz4 for all RAM values 8GB or more (faster, not RAM constrained machines).
Line 112: Line 112:
  
  
-Etc. Test your own values. Milage might vary.+Etc. Test your own values. Mileage might vary.
start/zramswap.1694629957.txt.gz · Last modified: 2023/09/13 18:32 by peter