OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • English Forums »
  • 24.7 Production Series »
  • 24.7 Memory Widget
« previous next »
  • Print
Pages: [1]

Author Topic: 24.7 Memory Widget  (Read 1316 times)

spetrillo

  • Hero Member
  • *****
  • Posts: 721
  • Karma: 8
    • View Profile
24.7 Memory Widget
« on: August 07, 2024, 07:49:58 pm »
Hello all,

Forst off kudos to the developers for a clean 24.7 update, even with a couple hotfixes. I love the new dashboard but got a question on the memory widget. It is showing approximately 3 gig used for something called ARC. What is that?

Thanks,
Steve
Logged

Taunt9930

  • Full Member
  • ***
  • Posts: 126
  • Karma: 3
    • View Profile
Re: 24.7 Memory Widget
« Reply #1 on: August 07, 2024, 07:52:25 pm »
Memory Cache associated with ZFS, which presumably you are using as the file system.
Logged

spetrillo

  • Hero Member
  • *****
  • Posts: 721
  • Karma: 8
    • View Profile
Re: 24.7 Memory Widget
« Reply #2 on: August 07, 2024, 07:59:39 pm »
Thank you for the quick response. Yes its ZFS...but not for much longer. I see no reason to use ZFS on a single drive, unless someone explains why I am wrong.
Logged

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 17747
  • Karma: 1620
    • View Profile
Re: 24.7 Memory Widget
« Reply #3 on: August 07, 2024, 08:08:23 pm »
Data corruption, especially prevalent in sqlite database. Random issues with kernel update and reboot losing the kernel. No ability for snapshots. If you don't mind these issues you can use UFS.

Note with 24.7 we more or less recommend ZFS by default now although it is heavier on SSDs than it should be.


Cheers,
Franco
Logged

Patrick M. Hausen

  • Hero Member
  • *****
  • Posts: 6935
  • Karma: 584
    • View Profile
Re: 24.7 Memory Widget
« Reply #4 on: August 07, 2024, 08:08:41 pm »
Snapshots before a major upgrade and rollback? Knowing your data is ok instead of guessing? Even with a single drive ZFS checksums everything.
Logged
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do. (Isaac Asimov)

doktornotor

  • Hero Member
  • *****
  • Posts: 709
  • Karma: 70
    • View Profile
Re: 24.7 Memory Widget
« Reply #5 on: August 07, 2024, 09:51:21 pm »
Quote from: spetrillo on August 07, 2024, 07:59:39 pm
Thank you for the quick response. Yes its ZFS...but not for much longer. I see no reason to use ZFS on a single drive, unless someone explains why I am wrong.

Yeah, except for the time wasted on way too many travels to replace unbootable firewall boxes, tons of time wasted on completely broken UFS fscks and shipping routers back and forth, there's indeed no compelling reason.  :P
Logged

Patrick M. Hausen

  • Hero Member
  • *****
  • Posts: 6935
  • Karma: 584
    • View Profile
Re: 24.7 Memory Widget
« Reply #6 on: August 07, 2024, 09:53:50 pm »
Quote from: doktornotor on August 07, 2024, 09:51:21 pm
Yeah, except for the time wasted on way too many travels to replace unbootable firewall boxes, tons of time wasted on completely broken UFS fscks and shipping routers back and forth, there's indeed no compelling reason.  :P

this!.gif  :)
Logged
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do. (Isaac Asimov)

doktornotor

  • Hero Member
  • *****
  • Posts: 709
  • Karma: 70
    • View Profile
Re: 24.7 Memory Widget
« Reply #7 on: August 07, 2024, 09:59:07 pm »
Beyond the above, I would suggest reading some some FreeBSD docs regarding vfs.zfs.arc.min, vfs.zfs.arc.max, vfs.zfs.prefetch.disable and vfs.zfs.arc.free_target tunables.
« Last Edit: August 07, 2024, 10:39:48 pm by doktornotor »
Logged

jlficken

  • Newbie
  • *
  • Posts: 16
  • Karma: 2
    • View Profile
Re: 24.7 Memory Widget
« Reply #8 on: August 08, 2024, 04:15:27 am »
Quote from: franco on August 07, 2024, 08:08:23 pm
Data corruption, especially prevalent in sqlite database. Random issues with kernel update and reboot losing the kernel. No ability for snapshots. If you don't mind these issues you can use UFS.

Note with 24.7 we more or less recommend ZFS by default now although it is heavier on SSDs than it should be.


Cheers,
Franco

Do you still recommend ZFS if it’s a VM on Proxmox that’s already using ZFS?
Logged

Patrick M. Hausen

  • Hero Member
  • *****
  • Posts: 6935
  • Karma: 584
    • View Profile
Re: 24.7 Memory Widget
« Reply #9 on: August 08, 2024, 07:07:15 am »
No. In virtualised environments ZFS can be counter productive, because "thin" provisioning of virtual disks doesn't work as intended. Due to the copy on write nature of ZFS every virtual disk will grow to its maximum size.

You can snapshot and incrementally backup the entire virtual disk easily if it is stored on ZFS, already.
Logged
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do. (Isaac Asimov)

jlficken

  • Newbie
  • *
  • Posts: 16
  • Karma: 2
    • View Profile
Re: 24.7 Memory Widget
« Reply #10 on: August 08, 2024, 03:41:32 pm »
I’m guessing then that my best option is to create a new VM with UFS and import the config, correct?
Logged

Patrick M. Hausen

  • Hero Member
  • *****
  • Posts: 6935
  • Karma: 584
    • View Profile
Re: 24.7 Memory Widget
« Reply #11 on: August 08, 2024, 03:53:17 pm »
Yes.
Logged
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do. (Isaac Asimov)

spetrillo

  • Hero Member
  • *****
  • Posts: 721
  • Karma: 8
    • View Profile
Re: 24.7 Memory Widget
« Reply #12 on: August 11, 2024, 05:32:14 pm »
Quote from: doktornotor on August 07, 2024, 09:51:21 pm
Quote from: spetrillo on August 07, 2024, 07:59:39 pm
Thank you for the quick response. Yes its ZFS...but not for much longer. I see no reason to use ZFS on a single drive, unless someone explains why I am wrong.

Yeah, except for the time wasted on way too many travels to replace unbootable firewall boxes, tons of time wasted on completely broken UFS fscks and shipping routers back and forth, there's indeed no compelling reason.  :P

All of my OPNsense implemenations, with the exception of one, are all virtual. The one in question is physical, although I do not remember why I would select ZFS. Anyways can someone point me to some documentation on rollbacks and copies? I can see where I would want to make a copy before I apply any updates.
Logged

Patrick M. Hausen

  • Hero Member
  • *****
  • Posts: 6935
  • Karma: 584
    • View Profile
Re: 24.7 Memory Widget
« Reply #13 on: August 11, 2024, 05:35:49 pm »
Quote from: spetrillo on August 11, 2024, 05:32:14 pm
Anyways can someone point me to some documentation on rollbacks and copies? I can see where I would want to make a copy before I apply any updates.

https://forum.opnsense.org/index.php?topic=25540.0
https://vermaden.wordpress.com/wp-content/uploads/2018/11/nluug-zfs-boot-environments-reloaded-2018-11-15.pdf
https://man.freebsd.org/cgi/man.cgi?query=bectl&sektion=8&manpath=freebsd-release

EDIT: thanks @haemm0r for this post:
https://forum.opnsense.org/index.php?topic=42052.msg207709#msg207709

I recommend starting with the Klara article linked therein. Klara is one the top educational resources for BSD and ZFS.

HTH,
Patrick
« Last Edit: August 11, 2024, 07:45:26 pm by Patrick M. Hausen »
Logged
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do. (Isaac Asimov)

  • Print
Pages: [1]
« previous next »
  • OPNsense Forum »
  • English Forums »
  • 24.7 Production Series »
  • 24.7 Memory Widget
 

OPNsense is an OSS project © Deciso B.V. 2015 - 2024 All rights reserved
  • SMF 2.0.19 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2