Proxmoz 5.4 from ISO missing ZFS conf ?

Mecanik

Well-Known Member
Mar 2, 2017
173
5
58
33
Hello,

I installed 5.4 from iso, and I cannot find /etc/modprobe.d/zfs.conf to be able to limit the ARC.

Am I missing something ?

Thanks
 
When I installed Proxmox the first time (5.x) I do recall the file not being there as well.
Just create it and set config there.
HTH
 
Why not?
If a file is not there there are no config overrides. So the system uses defaults.
Makes a lot of sense to me ;)
 
Does that really work ? It does not make any sense lol.

why should any file be there, just create it.
All files in /etc/modprobe.d ending with .conf are read, if they apply to a module they will be enforced on module load, makes no sense to create a dummy file for every module possible, there'd be tens of thousands files..
 
I just created /etc/modprobe.d/zfs.conf , set a limit of 64 GB, rebooted, and the limit is still the same - 50% of whole memory. So the conclusion is, creating this file makes no sense ?
 
The conclusion rather is that you did it wrong..
Post your file, it has to look like https://pve.proxmox.com/pve-docs/chapter-sysadmin.html#_limit_zfs_memory_usage

How can I do it wrong when it's after your docs ?

Code:
# ZFS tuning for a proxmox machine that reserves 64GB for ZFS
#
# Don't let ZFS use less than 4GB and more than 64GB
options zfs zfs_arc_min=4294967296
options zfs zfs_arc_max=68719476736
#
# disabling prefetch is no longer required
options zfs l2arc_noprefetch=0
 
I just created /etc/modprobe.d/zfs.conf , set a limit of 64 GB, rebooted, and the limit is still the same - 50% of whole memory.

This is not a contradiction, if you would have 128 GB it would still be true.

How can I do it wrong when it's after your docs ?

How did you check that ZFS uses 50%? Unless you provide some information, we cannot help you further.
 
This is not a contradiction, if you would have 128 GB it would still be true.

I`m not sure I understand any of this ?

How did you check that ZFS uses 50%? Unless you provide some information, we cannot help you further.

Here you go:

Bash:
------------------------------------------------------------------------
ZFS Subsystem Report                            Sat Mar 14 20:34:10 2020
ARC Summary: (HEALTHY)
        Memory Throttle Count:                  0

ARC Misc:
        Deleted:                                35
        Mutex Misses:                           0
        Evict Skips:                            2

ARC Size:                               30.04%  37.84   GiB
        Target Size: (Adaptive)         100.00% 125.93  GiB
        Min Size (Hard Limit):          6.25%   7.87    GiB
        Max Size (High Water):          16:1    125.93  GiB
 
Here you go:

Bash:
------------------------------------------------------------------------
ZFS Subsystem Report Sat Mar 14 20:34:10 2020
ARC Summary: (HEALTHY)
Memory Throttle Count: 0

ARC Misc:
Deleted: 35
Mutex Misses: 0
Evict Skips: 2

ARC Size: 30.04% 37.84 GiB
Target Size: (Adaptive) 100.00% 125.93 GiB
Min Size (Hard Limit): 6.25% 7.87 GiB
Max Size (High Water): 16:1 125.93 GiB

Thank you.

First:
* Please always post the command that was used in output too, so that possible problems with the command itself can be seen.
* If you ask people for help, please state was much information as you can and don't start blaming right away (I don't follow this all the time, but at least we can try, right?)

Now new questions:
* I guess you have 256 GB installed? (that should have been in the 8th post)
* Do you have PVE running ON your ZFS pool?
* If so, did you rebuild your initramfs after changing the modprobe setting?
* Please list all files in /etc/modprobe.d
 
Thank you.

First:
* Please always post the command that was used in output too, so that possible problems with the command itself can be seen.
* If you ask people for help, please state was much information as you can and don't start blaming right away (I don't follow this all the time, but at least we can try, right?)

I don't know what are you insinuating, or what others understood; I have not blamed anyone. A staff member said "I`m probably not doing it right", insinuating I am dumb or something.

Now new questions:
* I guess you have 256 GB installed? (that should have been in the 8th post)
* Do you have PVE running ON your ZFS pool?
* If so, did you rebuild your initramfs after changing the modprobe setting?
* Please list all files in /etc/modprobe.d

* Yes
* Yes
* No, this is not mentioned clearly
* Here:

Bash:
1 drwxr-xr-x  2 root root   5 Mar 14 09:50 .
9 drwxr-xr-x 98 root root 186 Mar 13 17:57 ..
5 -rw-r--r--  1 root root 379 Jul 28  2016 mdadm.conf
5 -rw-r--r--  1 root root 171 Jul 26  2019 pve-blacklist.conf
5 -rw-r--r--  1 root root 264 Mar 14 08:50 zfs.conf
 
Thank you for providing the needed information.

I don't know what are you insinuating, or what others understood; I have not blamed anyone. A staff member said "I`m probably not doing it right", insinuating I am dumb or something.

Yes, and that probably implied that we do not have more information, therefore I requested it. If you would have stated all commands you used (and did not use), you could have an answer faster. You also stated that

How can I do it wrong when it's after your docs ?

Which is after the fact not true:

* No, this is not mentioned clearly

It is clearly written in the documentation Thomas linked that you have to do that in order to get it to work:

1584256772649.png

So please try this and it should work.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!