co mi zere kernel pamet

Radim Kolar hsn at filez.com
Sun Jul 8 15:02:56 CEST 2012


Da se zjistit co vsechno ce mi nacpalo do toho wired a mam timpadem malo 
pameti pro aplikace?

Mem: 1387M Active, 492M Inact, 5699M Wired, 226M Cache, 89M Free
Swap: 8192M Total, 2014M Used, 6178M Free, 24% Inuse

mam tam ZFS, prikladam report, ale jak vidite tak arc size max 
limitovano na 2 GB MAX.

------------------------------------------------------------------------
ZFS Subsystem Report                            Sun Jul  8 14:53:41 2012
------------------------------------------------------------------------

System Memory:

         17.65%  1.36    GiB Active,     6.21%   490.04  MiB Inact
         72.20%  5.57    GiB Wired,      2.86%   225.76  MiB Cache
         1.05%   83.09   MiB Free,       0.03%   2.41    MiB Gap

         Real Installed:                         8.00    GiB
         Real Available:                 99.68%  7.97    GiB
         Real Managed:                   96.68%  7.71    GiB

         Logical Total:                          8.00    GiB
         Logical Used:                   90.25%  7.22    GiB
         Logical Free:                   9.75%   798.88  MiB

Kernel Memory:                                  177.36  MiB
         Data:                           90.90%  161.22  MiB
         Text:                           9.10%   16.14   MiB

Kernel Memory Map:                              7.24    GiB
         Size:                           62.51%  4.52    GiB
         Free:                           37.49%  2.71    GiB
Page:  1
------------------------------------------------------------------------

ARC Summary: (THROTTLED)
         Storage pool Version:                   28
         Filesystem Version:                     5
         Memory Throttle Count:                  2.55m

ARC Misc:
         Deleted:                                73.90m
         Recycle Misses:                         13.09m
         Mutex Misses:                           81.45k
         Evict Skips:                            81.45k

ARC Size:                               80.55%  1.61    GiB
         Target Size: (Adaptive)         80.57%  1.61    GiB
         Min Size (Hard Limit):          12.50%  256.00  MiB
         Max Size (High Water):          8:1     2.00    GiB

ARC Size Breakdown:
         Recently Used Cache Size:       64.09%  1.03    GiB
         Frequently Used Cache Size:     35.91%  592.43  MiB

ARC Hash Breakdown:
         Elements Max:                           316.76k
         Elements Current:               47.89%  151.69k
         Collisions:                             104.82m
         Chain Max:                              15
         Chains:                                 40.84k
Page:  2
------------------------------------------------------------------------

ARC Efficiency:                                 1.57b
         Cache Hit Ratio:                94.72%  1.49b
         Cache Miss Ratio:               5.28%   83.07m
         Actual Hit Ratio:               93.51%  1.47b

         Data Demand Efficiency:         96.96%  1.31b
         Data Prefetch Efficiency:       23.82%  27.66m

         CACHE HITS BY CACHE LIST:
           Most Recently Used:           12.41%  185.10m
           Most Frequently Used:         86.30%  1.29b
           Most Recently Used Ghost:     0.29%   4.32m
           Most Frequently Used Ghost:   1.20%   17.88m

         CACHE HITS BY DATA TYPE:
           Demand Data:                  84.85%  1.27b
           Prefetch Data:                0.44%   6.59m
           Demand Metadata:              13.86%  206.63m
           Prefetch Metadata:            0.85%   12.71m

         CACHE MISSES BY DATA TYPE:
           Demand Data:                  47.79%  39.70m
           Prefetch Data:                25.36%  21.07m
           Demand Metadata:              20.48%  17.01m
           Prefetch Metadata:            6.36%   5.29m
Page:  3
------------------------------------------------------------------------

File-Level Prefetch: (HEALTHY)

DMU Efficiency:                                 4.45b
         Hit Ratio:                      66.96%  2.98b
         Miss Ratio:                     33.04%  1.47b

         Colinear:                               1.47b
           Hit Ratio:                    0.05%   709.83k
           Miss Ratio:                   99.95%  1.47b

         Stride:                                 2.95b
           Hit Ratio:                    99.95%  2.94b
           Miss Ratio:                   0.05%   1.39m

DMU Misc:
         Reclaim:                                1.47b
           Successes:                    0.71%   10.45m
           Failures:                     99.29%  1.46b

         Streams:                                35.35m
           +Resets:                      0.31%   110.57k
           -Resets:                      99.69%  35.24m
           Bogus:                                0
Page:  5
------------------------------------------------------------------------

ZFS Tunable (sysctl):
         kern.maxusers                           384
         vm.kmem_size                            8589934592
         vm.kmem_size_scale                      1
         vm.kmem_size_min                        0
         vm.kmem_size_max                        329853485875
         vfs.zfs.l2c_only_size                   0
         vfs.zfs.mfu_ghost_data_lsize            440130048
         vfs.zfs.mfu_ghost_metadata_lsize        134996992
         vfs.zfs.mfu_ghost_size                  575127040
         vfs.zfs.mfu_data_lsize                  805737984
         vfs.zfs.mfu_metadata_lsize              33792
         vfs.zfs.mfu_size                        934468096
         vfs.zfs.mru_ghost_data_lsize            459479040
         vfs.zfs.mru_ghost_metadata_lsize        692491264
         vfs.zfs.mru_ghost_size                  1151970304
         vfs.zfs.mru_data_lsize                  387213312
         vfs.zfs.mru_metadata_lsize              87072768
         vfs.zfs.mru_size                        570652672
         vfs.zfs.anon_data_lsize                 0
         vfs.zfs.anon_metadata_lsize             0
         vfs.zfs.anon_size                       6983680
         vfs.zfs.l2arc_norw                      1
         vfs.zfs.l2arc_feed_again                1
         vfs.zfs.l2arc_noprefetch                1
         vfs.zfs.l2arc_feed_min_ms               200
         vfs.zfs.l2arc_feed_secs                 1
         vfs.zfs.l2arc_headroom                  2
         vfs.zfs.l2arc_write_boost               8388608
         vfs.zfs.l2arc_write_max                 8388608
         vfs.zfs.arc_meta_limit                  536870912
         vfs.zfs.arc_meta_used                   536934784
         vfs.zfs.arc_min                         268435456
         vfs.zfs.arc_max                         2147483648
         vfs.zfs.dedup.prefetch                  1
         vfs.zfs.mdcomp_disable                  0
         vfs.zfs.write_limit_override            0
         vfs.zfs.write_limit_inflated            25687388160
         vfs.zfs.write_limit_max                 1070307840
         vfs.zfs.write_limit_min                 33554432
         vfs.zfs.write_limit_shift               3
         vfs.zfs.no_write_throttle               0
         vfs.zfs.zfetch.array_rd_sz              1048576
         vfs.zfs.zfetch.block_cap                256
         vfs.zfs.zfetch.min_sec_reap             2
         vfs.zfs.zfetch.max_streams              8
         vfs.zfs.prefetch_disable                0
         vfs.zfs.mg_alloc_failures               12
         vfs.zfs.check_hostid                    1
         vfs.zfs.recover                         0
         vfs.zfs.txg.synctime_ms                 1000
         vfs.zfs.txg.timeout                     5
         vfs.zfs.scrub_limit                     10
         vfs.zfs.vdev.cache.bshift               16
         vfs.zfs.vdev.cache.size                 0
         vfs.zfs.vdev.cache.max                  16384
         vfs.zfs.vdev.write_gap_limit            4096
         vfs.zfs.vdev.read_gap_limit             32768
         vfs.zfs.vdev.aggregation_limit          131072
         vfs.zfs.vdev.ramp_rate                  2
         vfs.zfs.vdev.time_shift                 6
         vfs.zfs.vdev.min_pending                4
         vfs.zfs.vdev.max_pending                10
         vfs.zfs.vdev.bio_flush_disable          0
         vfs.zfs.cache_flush_disable             1
         vfs.zfs.zil_replay_disable              0
         vfs.zfs.zio.use_uma                     1
         vfs.zfs.version.zpl                     5
         vfs.zfs.version.spa                     28
         vfs.zfs.version.acl                     1
         vfs.zfs.debug                           0
         vfs.zfs.super_owner                     0
Page:  7
------------------------------------------------------------------------

# netstat -m
1030/2885/3915 mbufs in use (current/cache/total)
1026/2792/3818/32768 mbuf clusters in use (current/cache/total/max)
1023/1685 mbuf+clusters out of packet secondary zone in use (current/cache)
0/0/0/16384 4k (page size) jumbo clusters in use (current/cache/total/max)
0/0/0/8192 9k jumbo clusters in use (current/cache/total/max)
0/0/0/4096 16k jumbo clusters in use (current/cache/total/max)
2309K/6305K/8614K bytes allocated to network (current/cache/total)
0/0/0 requests for mbufs denied (mbufs/clusters/mbuf+clusters)
0/0/0 requests for jumbo clusters denied (4k/9k/16k)
0/0/0 sfbufs in use (current/peak/max)
0 requests for sfbufs denied
0 requests for sfbufs delayed
22 requests for I/O initiated by sendfile
0 calls to protocol drain routines



More information about the Users-l mailing list