zfs arc and amount of wired memory

Eugene M. Zheganin emz at norma.perm.ru
Tue Feb 7 15:35:29 UTC 2012


Hi.

On 07.02.2012 17:43, Andriy Gapon wrote:
> on 07/02/2012 13:34 Eugene M. Zheganin said the following:
>> Hi.
>>
>> On 07.02.2012 16:46, Andriy Gapon wrote:
>>> on 07/02/2012 10:36 Eugene M. Zheganin said the following:
>>>> If I use the script from http://wiki.freebsd.org/ZFSTuningGuide , it says:
>>>>
>>>> ===Cut===
>>>> ARC Size:                               12.50%  363.14  MiB
>>>>           Target Size: (Adaptive)         12.50%  363.18  MiB
>>>>           Min Size (Hard Limit):          12.50%  363.18  MiB
>>>>           Max Size (High Water):          8:1     2.84    GiB
>>>> ===Cut===
>>>>
>>>> At the same time I have 3500 megs in wired state:
>>>>
>>>>
>>>> Please try sysutils/zfs-stats; zfs-stats -a output should provide a good
>>>> overview of the state and configuration of the system.
>>>>
>> Thanks.  But it seems to be the same script. Anyway, it reports the same amount
>> of memory:
>>
>> [emz at taiga:~]# zfs-stats -A
> zfs-stats -A is not the same as zfs-stats -a
>

Okay, thank you once again, it made me more clear what is happening to 
the memory:


System Memory:

         4.39%   172.47  MiB Active,     0.29%   11.53   MiB Inact
         90.68%  3.48    GiB Wired,      3.54%   138.98  MiB Cache
         0.10%   4.12    MiB Free,       0.99%   39.07   MiB Gap

         Real Installed:                         4.00    GiB
         Real Available:                 99.61%  3.98    GiB
         Real Managed:                   96.31%  3.84    GiB

         Logical Total:                          4.00    GiB
         Logical Used:                   96.22%  3.85    GiB
         Logical Free:                   3.78%   154.63  MiB

Kernel Memory:                                  393.82  MiB
         Data:                           96.14%  378.63  MiB
         Text:                           3.86%   15.20   MiB

Kernel Memory Map:                              2.68    GiB
         Size:                           9.82%   269.77  MiB
         Free:                           90.18%  2.42    GiB

Looks like most of the 'wired' space is makred in kernel as free, though 
still 'wired', and thus for me it doesn't look that free as 'free' or 
'inactive', and, as the paged out amount continues to grow, I want to 
ask if there's a way to make this address space availabe to a userland 
processes ?

Thanks.
Eugene.


More information about the freebsd-stable mailing list