is it recommended to disable the swap file? mine is always at the max no matter how much ram I feed it. trying to save my ssd wear leveling.
Howdy! Iâm just an old man using the bare essentials of Rockstor for a home NAS setup. My curiosity is tingled by your âswap fileâ statement. Being Joe Ignorant, I donât see any info in the Rockstor GUI that seems to show me anything about a âswapâ file though I know what it is.
How can I check mine?
Thanks!
its on the dashboard, memory card, swap usage.
Well dang my 70yo eyes⊠there it is⊠mine shows:
NAS:
BackupNAS:
Both setups have 16GB ECC DDR3 and 240GB SSD boot drives.
Thanks!
@jihiggs Hello again,
We donât use a swap file, assuming the use of our installer, but we do have a swap partition. And if the system is not in need of this extra memory space, it will not have any significant real use. See @Tex1954 's pic where there is only 69 MB swap space âin-playâ of the 2 GB we establish: just in case. The second pic from @Tex1954 shows zero swap used.
Maybe you are reading âcachedâ in the RAM use profile: that is not swap: but may become it if it become relatively inactive.
Swap space (partition or file) in linux is used to offload inactive memory also. That way it clears up ream RAM from being clogged up by stuff that is maybe used very infrequency.
cat /proc/swaps
as the root user will tell if there is a miss-representation in our Web-UI.
Confirmation of the underlying swap used (command provided) and more info about your system may help folks here help with what could be excessive memory pressure on your system. The base Rockstor install has not been seen to present such pressure. But you may be running a combination of config / Rock-ons that can leads to this.
Hope that help.
ive had rockstor on metal, and now on a vm. ive always had high swap usage. the only thing unique is a zabbix agent, and jelly fin running as a rockon.
today it looks like this
I do have a user named bckups which my systems use to authenticate for samba shares for backup jobs that run overnight. there is no backup running, theres nothing on the node 10.10.1.20 that would be doing anything with backup user. it authenticates with a user called blueiris, the name of my surveillance software, which is constantly writing to the smb share. any ideas?
Tried a 5Gig swap size? Maybe has more use with more shares or something?
( I know, probably a dumb questionâŠ)
PS: In old days using a VM, swap usage increased when there wasnât enough REAL memory allocated. It was not uncommon to see a âprogramâ thrashing between gets and puts between real and virtual memory and boy did that bring things to a near halt. I figure yâall are way more savvy on this stuff than me, but maybe a simple increase in the VM memory allocation could help? (Probably already tried I betâŠ)
its got 32gb, most of which is used for caching. my goal is not to have more swap, but none! the vm disk lives on mirrored ssdâs, they are already 13% degraded in 1 year. I suspect because of a few vms using high swap.
I gotch ya now! I do know a bit about SSDâs and that is why I use HUGE SSDâs as OS disks. In one experiment, I totally destroyed 3 SSDâs used as cache drives in 3 months or so⊠but they sure made transfer speeds on my 10Gbps LAN lightning fast (for a while)!!! LOL!
Good luck!