remove / turn off folder2ram

  • I don't have a ton of memory (4G), and I keep running into out of memory 'freezes'. I'm wondering if turning off folder2ram will help. I have a conventional disk, so I don't really need it. Just turned it on as a newbie might twist all the dials to see what they do :D


    One, how can I best identify the impact on ram usage?


    Two, what is the correct order of operations to disable folder2ram if I did the fstab modifications in the GUI notes? (Add noatime and nodiratime to root options, comment out the swap partition)

    My first guess would be to reverse the edits, then reboot, then disable the plugin.

    Mark D

    OMV6.1.0 upgraded from 5 on a Core2Duo

    mergerfs & snapraid

    Docker for urbackup, omada controller, adguard.

    • Offizieller Beitrag

    df -h shows you how much space is used by folder2ram


    Code
    folder2ram      998M     0  998M   0% /var/tmp
    folder2ram      998M     0  998M   0% /var/lib/openmediavault/rrd
    folder2ram      998M  628K  998M   1% /var/spool
    folder2ram      998M     0  998M   0% /var/lib/rrdcached
    folder2ram      998M  4.0K  998M   1% /var/lib/monit
    folder2ram      998M  1.6M  997M   1% /var/cache/samba

    I assume that means that 1G is allocated to folder2ram for all directories together. The board has 2G.

    • Offizieller Beitrag

    what is the correct order of operations to disable folder2ram

    uninstall the plugin.


    I did the fstab modifications in the GUI notes? (Add noatime and nodiratime to root options, comment out the swap partition)

    The noatime and nodiratime will not cause any problems at all. If you want swap back, remove the comment symbol and reboot.

  • macom,


    thanks.


    folder2ram 2.0G 32M 1.9G 2% /var/log

    folder2ram 2.0G 0 2.0G 0% /var/tmp

    folder2ram 2.0G 2.8M 2.0G 1% /var/lib/openmediavault/rrd

    folder2ram 2.0G 20K 2.0G 1% /var/spool

    folder2ram 2.0G 25M 1.9G 2% /var/lib/rrdcached

    folder2ram 2.0G 4.0K 2.0G 1% /var/lib/monit

    folder2ram 2.0G 1.6M 2.0G 1% /var/cache/samba


    I've got 4G, so I imagine it tries to allocate 50%. I'm gonna shut it off and see how it impacts performance & oom errors.

    Mark D

    OMV6.1.0 upgraded from 5 on a Core2Duo

    mergerfs & snapraid

    Docker for urbackup, omada controller, adguard.

  • ryecoaaron, I don't think I got the swap back.


    Code
    May 16 19:10:35 openmediavault systemd[1]: dev-disk-by\x2duuid-33ab2122\x2d943c\x2d4b08\x2d80a1\x2dcbe6051adef4.device: Job dev-disk-by\x2duuid-33ab2122\x2d943c\x2d4b08\x2d80a1\x2dcbe6051adef4.device/start timed out.
    
    May 16 19:10:35 openmediavault systemd[1]: dev-disk-by\x2duuid-33ab2122\x2d943c\x2d4b08\x2d80a1\x2dcbe6051adef4.swap: Job dev-disk-by\x2duuid-33ab2122\x2d943c\x2d4b08\x2d80a1\x2dcbe6051adef4.swap/start failed with result 'dependency'.
    
    May 16 19:10:35 openmediavault systemd[1]: dev-disk-by\x2duuid-33ab2122\x2d943c\x2d4b08\x2d80a1\x2dcbe6051adef4.device: Job dev-disk-by\x2duuid-33ab2122\x2d943c\x2d4b08\x2d80a1\x2dcbe6051adef4.device/start failed with result 'timeout'.

    I'm getting this now every 30 min in my logs. I read this long string is the UUID of the original swap space.


    fstab:

    result of blkid:

    Code
    root@openmediavault:~# blkid
    /dev/sda1: LABEL="system" UUID="3f541e90-00e0-447b-afc1-ce422a3df23d" TYPE="ext4" PARTUUID="8f80a8c1-01"
    /dev/sdb1: LABEL="500g" UUID="71860502-8460-4b63-92d1-5a7a39c1dde6" TYPE="ext4" PARTUUID="5f9fe823-d5ca-4baf-b5d6-2a8bc483a534"
    /dev/sdd1: LABEL="1T" UUID="28a3020b-db12-4565-805b-b9336b404670" TYPE="ext4" PARTUUID="ade28930-3784-4744-a900-cda819ef6d0d"
    /dev/sdf1: LABEL="3Tb" UUID="c9dc50a0-5768-4a3e-af18-87cf87b91aa8" TYPE="ext4" PARTUUID="79b20241-3963-45d5-adfc-51338193238f"
    /dev/sde1: LABEL="3Ta" UUID="bd940368-d704-4831-a0e6-f350b0d13e49" TYPE="ext4" PARTUUID="79f183d1-d8a9-4533-ace6-23a7db705655"
    /dev/sdc1: LABEL="700g" UUID="48506cf6-ef3f-4c08-abcf-83a33d3a29b5" TYPE="ext4" PARTUUID="e0490ce7-6245-45ba-8634-b05c814c77a8"
    /dev/sda5: PARTUUID="8f80a8c1-05"

    So, maybe the sda5 was the old swap space?


    A guy in this thread has a procedure which looks like a likely template, but I'm nervous about gparted...

    Mark D

    OMV6.1.0 upgraded from 5 on a Core2Duo

    mergerfs & snapraid

    Docker for urbackup, omada controller, adguard.

  • I got a new UUID assigned to the former swap partition and edited fstab to use thew UUID. At reboot, it timed out waiting for that 'device' to activate, and moved on with normal booting. In processes, OMV says swap is 0 bytes. I used swapon /dev/sda5 at the command line, and now OMV shows swap active. Time for a reboot.

    Mark D

    OMV6.1.0 upgraded from 5 on a Core2Duo

    mergerfs & snapraid

    Docker for urbackup, omada controller, adguard.

  • It doesn't hold through reboot. I get "a start job is running for /dev/disk/by-uuid... " for the UUID of the swap area. After boot finishes, processes show swap doing nothing until after I run swapon. I triple checked the new UUID I put in fstab. Wondering what else I may have missed?

    Mark D

    OMV6.1.0 upgraded from 5 on a Core2Duo

    mergerfs & snapraid

    Docker for urbackup, omada controller, adguard.

    • Offizieller Beitrag

    You probably need to format the swap partition. probably mkswap /dev/sda5. This will give it a new uuid and you need to update that in /etc/fstab.

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.4 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • What UUID do you have in /etc/initramfs-tools/conf.d/resume ?

    --
    Google is your friend and Bob's your uncle!


    OMV AMD64 7.x on headless Chenbro NR12000 1U 1x 8m Quad Core E3-1220 3.1GHz 32GB ECC RAM.

  • gderf, no resume file. Per the Flash Memory plugin 'optional' instructions:


    7. If you disable swap, initramfs resume should fixed to avoid mdadm messages.

    1. Remove the resume file:

    rm /etc/initramfs-tools/conf.d/resume Update initramfs:update-initramfs -u

    Which, I did :rolleyes: seemed like a good idea at the time.


    ryecoaaron, that's how I got the UUID back for sda5. before, it was just sitting there, no UUID, just a PartID. It has no LABEL, if that matters. So this time, I did swapoff, then mkswap -L swap -U "put-in-the-uuid-I-already-had" and it succeeded. Then, swapon gave me an error, couldn't find the swap device. So, I did swap on, using the -L swap option and -f, which is some sort of reinitialize. Seems to be working, but no idea yet if it holds through a reboot.

    Mark D

    OMV6.1.0 upgraded from 5 on a Core2Duo

    mergerfs & snapraid

    Docker for urbackup, omada controller, adguard.

  • I had set RESUME=none in that file to avoid the spurious mdadm messages and reformulated initramfs. I was unaware of those updated instructions for the plugin as I had fixed this ages ago on OMV 3 or maybe even OMV 2.


    Are you sure you even need swap? I have run OMV in as little as 8GB of RAM without swap and have had no problems.

    --
    Google is your friend and Bob's your uncle!


    OMV AMD64 7.x on headless Chenbro NR12000 1U 1x 8m Quad Core E3-1220 3.1GHz 32GB ECC RAM.

  • maybe I don't. But I was needlessly running folder2ram when I have the system on a standard hd. I'm running on 4. When Snapraid is cranking through a sync, I would often get into out of memory situations. Right now, with a bit of swap, it seems happy with a sync running.


    Its funny, swap is active and functioning, but the syslog is still showing those swap/start failed with dependency errors every 30 minutes

    Mark D

    OMV6.1.0 upgraded from 5 on a Core2Duo

    mergerfs & snapraid

    Docker for urbackup, omada controller, adguard.

  • ok, for the record...


    I realized I can GIVE the swap any UUID, so I gave it the original UUID it had before I turned on folder2ram. I uncommented the original line in fstab. no error at reboot, no log entries every 30 min about swap. There had to be something else still looking for that original UUID at boot. And, damn, it's handy. Snapraid used the shit out of the swap yesterday for a full sync. Really glad I got it back.


    bob is now my uncle :)

    Mark D

    OMV6.1.0 upgraded from 5 on a Core2Duo

    mergerfs & snapraid

    Docker for urbackup, omada controller, adguard.

  • I've run OMV including SnapRAID in 8GB of RAM with no swap and no problems. From your reports of problems without swap and 4GB of RAM, I guess we found the bottom.

    --
    Google is your friend and Bob's your uncle!


    OMV AMD64 7.x on headless Chenbro NR12000 1U 1x 8m Quad Core E3-1220 3.1GHz 32GB ECC RAM.

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!