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.

Zram questions

Featured Replies

I'm trying to understand the role of zram and having some difficulties with it. I've looked in several places and my understanding is this:

- It's a block device in RAM that uses compression

- It functions similar to swap

 

I notice that mine is set to about 2 Gb:

wurmfood@helios64:~$ cat /proc/swaps
Filename                                Type            Size            Used            Priority
/dev/zram0                              partition       1945084         0               5

 

My questions:

1. Does that mean 2 Gb of the device RAM is used for the zram swap device?

2. I can understand this on devices with slower storage, but would it be reasonable to disable this and instead use swap on an SSD?

  • wurmfood changed the title to Zram questions
4 minutes ago, wurmfood said:

Does that mean 2 Gb of the device RAM is used for the zram swap device?

Yes.

4 minutes ago, wurmfood said:

but would it be reasonable to disable this and instead use swap on an SSD?

Also yes. Armbian by default uses 50% if available memory for zram. If you have a fast harddrive like SSD or NVMe attached it of course makes sense to put a common swap there.

  • Author

Thank you. I wanted to make sure I understood it correctly since I hadn't encountered this on other Linux systems.

You can change the settings in /etc/default/armbian-zram-config

 

Maybe the default settings are effectively overkill with 4GB of RAM.

 

 

How would i set this on a odroid n2+ booting from 64gb emmc and 2TB ssd attached using usb. Is emmc more relyable than a usb stick?

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.