(Edit: it's a red herring for me to worry about swap. Please see a few posts down...)
Hello. My NanoPi Neo 2 only has 512MB RAM. I'm using it for OpenMediaVault. It starts swapping very badly (totally paralysing it) when I FTP 60GB worth of tiny files into an attached 500GB SSD SATA drive (attached with the NAS kit). Yes, ProFTPd is RAM-hungry!
I know how to create and work with traditional linux swap files. I'm a noob to this whole zram thing, which I suspect is more trouble than it's worth. I would prefer to not use zram, and use a traditional swap file on an attached 6TB 3.5" SATA drive (attached over USB 2.0 with UAS). It's a backup drive that sits there all day long doing nothing, in fact it goes to sleep all day (and only wakes up in the middle of the night to do a backup).
Those zram device files are on my Sandisk Ultra MicroSD card (which is "A1"), where Armbian runs from. My lightly-used SATA drive would be better for me, for running a traditional swap file from (due to its just sleeping all day otherwise).
Is there some way to tell my Armbian "quit with zram, and just use a traditional swap file, as per my /etc/fstab"?
BTW: I've set my "vm.swappiness" to 5 in /etc/sysctl.conf
Question
esbeeb
(Edit: it's a red herring for me to worry about swap. Please see a few posts down...)
Hello. My NanoPi Neo 2 only has 512MB RAM. I'm using it for OpenMediaVault. It starts swapping very badly (totally paralysing it) when I FTP 60GB worth of tiny files into an attached 500GB SSD SATA drive (attached with the NAS kit). Yes, ProFTPd is RAM-hungry!
I know how to create and work with traditional linux swap files. I'm a noob to this whole zram thing, which I suspect is more trouble than it's worth. I would prefer to not use zram, and use a traditional swap file on an attached 6TB 3.5" SATA drive (attached over USB 2.0 with UAS). It's a backup drive that sits there all day long doing nothing, in fact it goes to sleep all day (and only wakes up in the middle of the night to do a backup).
zramctl shows:
NAME ALGORITHM DISKSIZE DATA COMPR TOTAL STREAMS MOUNTPOINT
/dev/zram0 lzo 60.3M 4K 78B 12K 4 [SWAP]
/dev/zram1 lzo 60.3M 4K 78B 12K 4 [SWAP]
/dev/zram2 lzo 60.3M 4K 78B 12K 4 [SWAP]
/dev/zram3 lzo 60.3M 4K 78B 12K 4 [SWAP]
Those zram device files are on my Sandisk Ultra MicroSD card (which is "A1"), where Armbian runs from. My lightly-used SATA drive would be better for me, for running a traditional swap file from (due to its just sleeping all day otherwise).
Is there some way to tell my Armbian "quit with zram, and just use a traditional swap file, as per my /etc/fstab"?
BTW: I've set my "vm.swappiness" to 5 in /etc/sysctl.conf
Link to comment
Share on other sites
24 answers to this question
Recommended Posts