Pada gambar dibawah ini terlihat RAM terpakai hampir sepenuhnya

Saya akan menjelaskan bagaimana cara mengatasi hal tersebut,
Pertama login dengan akses root server itu, kemudian ketikan perintah :

arc_summary -s archits

Perhatikan output pada Cache Hit Ratio

------------------------------------------------------------------------
ZFS Subsystem Report                            Tue Nov 02 13:26:29 2021
Linux 5.4.34-1-pve                                            0.8.3-pve1
Machine: dev-u16-wi208 (x86_64)                               0.8.3-pve1

ARC total accesses (hits + misses):                                16.3G
        Cache hit ratio:                               98.2 %      16.0G
        Cache miss ratio:                               1.8 %     292.2M
        Actual hit ratio (MFU + MRU hits):             97.4 %      15.9G
        Data demand efficiency:                        97.8 %       8.9G
        Data prefetch efficiency:                      63.7 %     245.3M

Cache hits by cache type:
        Most frequently used (MFU):                    77.3 %      12.3G
        Most recently used (MRU):                      22.0 %       3.5G
        Most frequently used (MFU) ghost:               0.6 %     101.7M
        Most recently used (MRU) ghost:                 0.1 %      14.8M
        Anonymously used:                               0.1 %       9.0M

Cache hits by data type:
        Demand data:                                   54.2 %       8.7G
        Demand prefetch data:                           1.0 %     156.3M
        Demand metadata:                               44.7 %       7.1G
        Demand prefetch metadata:                       0.1 %      18.9M

Cache misses by data type:
        Demand data:                                   68.1 %     198.9M
        Demand prefetch data:                          30.5 %      89.0M
        Demand metadata:                                0.7 %       2.1M
        Demand prefetch metadata:                       0.7 %       2.1M

Cache Hit Ratio berjumlah 16.0G, maka rumusnya adalah :

echo $((<cache hit ratio> * 2**30))

contoh:

echo $((16 * 2**30))
17179869184

Simpan output itu ( 17179869184 ).
Selanjutnya buat file dengan cara :

nano /etc/modprobe.d/zfs.conf

Lalu masukan nilai :

options zfs zfs_arc_min=1073741824
options zfs zfs_arc_max=17179869184

zfs_arc_min kami biasa menggunakan nilai demikan, untuk zfs_arc_max gunakan nilai yang tadi kita hitung diatas ( 17179869184 ). Tujuan menyimpan file pada direktori itu agar ketika server melakukan reboot, maka konfigurasi tetap ada.

Untuk mengubah konfigurasi disaat server sedang berjalan, maka gunakan perintah :

echo 17179869184 > /sys/module/zfs/parameters/zfs_arc_max
echo 1073741824 > /sys/module/zfs/parameters/zfs_arc_min

Done!
Silahkan dicek kembali penggunaan RAM di gui proxmoxnya, Thank You

 

 

Leave a Reply

Your email address will not be published. Required fields are marked *