Skip to content
View in the app

A better way to browse. Learn more.

Armbian Community Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

swappiness = 100 or why he start so fast to swap

Featured Replies

hello, 
while i am copy files on my server and start 1 or 2 torrent i see that my memory gett less. 

Yes thats only buffer and caches but he eat faster then he get free so that he starts swapping (what cost cpu and speed)

a litte search and i see that 

cat > /proc/sys/vm/swappiness  is 100 and look on my other systems it is set to 60

now woth change this value he dont start swapping and free up faster the memory.

can someone explane me why this here is set to 100?

thank you

If you do swapon you will notice that the used swap is zram. By default halt of the available memory is compressed via zram as swap and the system shall use it.

@snakekick, having the kernel swappiness set to 100 on systems where the swap is implemented as compresses RAM is normal.

You want the pages that have been swapped out to be compressed and stored in RAM to make the swap-in operation as fast as possible (decompressing the page is faster than reading it first from disk). Since the storage for some of these devices is on the slow side (microSD, eMMC) - having the swap on RAM tends to speed up the memory operations (swap-in & swap-out), while at the same time helping to avoid unnecessary wear on your flash storage.

Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.