Перейти к содержимому
Калькуляторы

ngctl Cannot allocate memory

Доброе утро коллеги . На одном Насе только такая проблема. при выполнении комманды ngctl list я получаю Cannot allocate memory.

Нас выступает в роле BRAS. PPPoE . NAT NG_CAR. Max children 1000. Трафика до 700 мбит

vpn123# uname -a
FreeBSD vpn123.isp.ru 9.0-STABLE FreeBSD 9.0-STABLE #0 r234451: Thu Apr 19 03:45:07 UTC 2012     root@vpn123.elf.ru:/usr/obj/usr/src/sys/GENERIC.current  i386

 

vpn123# cat /boot/loader.conf 
hw.igb.rxd=4096
hw.igb.txd=4096
hw.igb.max_interrupt_rate=32000
net.graph.maxdata=65536
net.graph.maxalloc=65536

 

vpn123# vmstat -a
procs      memory      page                    disks     faults         cpu
r b w     avm    fre   flt  re  pi  po    fr  sr ad0 pa0   in   sy   cs us sy id
0 0 0    447M  2973M   142   0   0   0   146   0   0   0 28754 2609 51007  0  8 92
vpn123# vmstat -s
4119399103 cpu context switches
2322209275 device interrupts
10213027 software interrupts
17451766 traps
210701045 system calls
      20 kernel threads created
   89722  fork() calls
    7968 vfork() calls
       0 rfork() calls
       0 swap pager pageins
       0 swap pager pages paged in
       0 swap pager pageouts
       0 swap pager pages paged out
     440 vnode pager pageins
    2879 vnode pager pages paged in
       0 vnode pager pageouts
       0 vnode pager pages paged out
       0 page daemon wakeups
       0 pages examined by the page daemon
      80 pages reactivated
 3455218 copy-on-write faults
   16744 copy-on-write optimized faults
 4854822 zero fill pages zeroed
  275738 zero fill pages prezeroed
    9410 intransit blocking page faults
11489369 total VM faults taken
       0 pages affected by kernel thread creation
85960205 pages affected by  fork()
 7776395 pages affected by vfork()
       0 pages affected by rfork()
     124 pages cached
11802066 pages freed
       0 pages freed by daemon
 4831020 pages freed by exiting processes
   11060 pages active
   76096 pages inactive
      29 pages in VM cache
  121514 pages wired down
  761202 pages free
    4096 bytes per page
10931385 total name lookups
         cache hits (87% pos + 4% neg) system 0% per-directory
         deletions 0%, falsehits 0%, toolong 0%
vpn123# vmstat -m
        Type InUse MemUse HighUse Requests  Size(s)
    acpiintr     1     1K       -        1  32
      isadev    10     1K       -       10  64
      acpica  1108    56K       -    92821  16,32,64,128,256,512,1024
    acpitask     1     1K       -        1  1024
  CAM periph     4     1K       -       32  16,32,64,128
        cdev     8     1K       -        8  128
     CAM XPT    97   104K       -      288  16,32,64,1024,2048
     acpisem    19     3K       -       19  64,128
       sigio     1     1K       -        1  32
    filedesc    46    12K       -    97732  16,256,512
        kenv   117     9K       -      126  16,32,64,128,4096
      kqueue     0     0K       -     7472  128,1024
   proc-args    24     2K       -    90424  16,32,64,128,256
       hhook     2     1K       -        2  128
     ithread   176    14K       -      176  16,64,128
CAM dev queue    10     2K       -       10  128
      KTRACE   100    13K       -      100  128
      ctlmem  5062 10113K       -     5062  64,2048
      linker   109     4K       -      111  16,32,256
       lockf    11     1K       -    47839  32,64
  loginclass     1     1K       -     1764  64
      ctlblk   200   800K       -      200  4096
        temp   818   239K       -  1106801  16,32,64,128,256,512,1024,2048,4096
      devbuf  3028 27477K       -     3192  16,32,64,128,256,512,1024,2048,4096
      module   344    22K       -      344  64,128
    mtx_pool     2     8K       -        2  4096
     entropy  1024    64K       -     1024  64
     subproc   310   243K       -    97978  256,4096
        proc     2     8K       -        2  4096
     session    19     2K       -     5881  64
        pgrp    22     2K       -    13454  64
        cred    30     3K       -  1145626  64,128
     uidinfo     5     2K       -     3093  64,1024
      plimit    13     4K       -    23384  256
   sysctltmp     0     0K       -    43975  16,32,64,128,4096
   sysctloid  5737   178K       -     6037  16,32,64
      sysctl     0     0K       -    60846  16,32,64
     tidhash     1     8K       -        1  
     callout     7  1792K       -        7  
        umtx  1470   138K       -     1480  64,128
    p1003.1b     1     1K       -        1  16
        SWAP     2   549K       -        2  64
     acpidev    30     1K       -       30  32
      bus-sc    92   196K       -     2048  16,32,64,128,256,512,1024,2048,4096
         bus  2955   123K       -    42199  16,32,64,128,256,1024
     devstat     4     9K       -        4  16,4096
eventhandler    91     5K       -       91  32,64,128
        kobj   230   460K       -      280  2048
     ramdisk     1  4096K       -        1  
     Per-cpu     1     1K       -        1  16
     ctlpool   532   138K       -      532  16,512
    pci_link    16     2K       -       16  16,128
        rman   289    17K       -      679  16,32,64
        sbuf     1     1K       -      643  16,32,64,128,256,512,1024,2048,4096
       stack     0     0K       -        2  128
   taskqueue    55     3K       -       55  16,64
      Unitno    30     2K       -   961126  16,64
         iov     0     0K       -    29411  16,64,128,256
      select   603    38K       -      608  64
    ioctlops     0     0K       - 16307764  16,32,64,128,256,512,1024,2048,4096
         msg     4    25K       -        4  1024,4096
         sem     4   101K       -        4  1024,4096
         shm     1    12K       -        1  
         tty    20    10K       -     3984  512,1024
         pts     1     1K       -     3963  128
    mbuf_tag     2     1K       - 8815967875  32,64
       shmfd     1     4K       -        1  4096
         pcb    23     7K       -   825543  16,32,512,1024,2048
      soname     2     1K       - 31250477  16,32,128
         acl     0     0K       -      258  4096
    vfscache     1  1024K       -        1  
  cl_savebuf     0     0K       -       79  32
    vfs_hash     1   512K       -        1  
      vnodes     2     1K       -        2  128
 vnodemarker     0     0K       -     5218  512
       mount    16     1K       -       86  16,32,64,128,256
         BPF   391  1049K       -     5720  16,64,256
 ether_multi   769    19K       -    14244  16,32,64
      ifaddr  1579   301K       -    24299  16,32,256,2048
       ifnet   388   391K       -     5722  64,128,256,512,1024,2048,4096
       clone     7    28K       -        7  4096
      arpcom     5     1K       -        5  16
     lltable   432   103K       -     7103  128,256
   CAM queue    32     1K       -      224  16,128
      USBdev    24     7K       -       24  32,128,1024
         USB    48    30K       -       54  16,32,64,128,1024,4096
    routetbl   528    83K       -    61114  16,32,64,128,256
netgraph_msg     0     0K       - 21208900  64,128,256,512,1024
netgraph_node  2646   459K       -   118047  64,128,256,512,1024,2048,4096
netgraph_hook  7528   941K       -   413148  128
    netgraph  1885  1646K       -    95626  32,64,256,2048
netgraph_bpf  4512   423K       -   113792  64,128
netgraph_iface   376    24K       -     5704  64
netgraph_mppc     0     0K       -        1  1024
netgraph_ppp   376  3008K       -     5704  
netgraph_pppoe   381    33K       -    67177  64,512
netgraph_sock   388    15K       -   105895  16,64,128,256,512,1024,2048,4096
netgraph_path     0     0K       - 10891064  16,32
        igmp   387    49K       -     5715  128
        ipid     2    24K       -        2  
     CAM SIM    10     2K       -       10  128
    in_multi   380    48K       -     7116  128
 IpFw/IpAcct    55     6K       -      138  16,32,64,128,256
   hostcache     1    16K       -        1  
    syncache     1    72K       -        1  
         rpc     2     1K       -        2  128
audit_evclass   179     3K       -      218  16
     jblocks     2     1K       -        2  128
    savedino     0     0K       -      219  256
       sbdep     0     0K       -     2375  32
     jsegdep     1     1K       -     6947  32
        jseg     1     1K       -     2864  128
   jfreefrag     0     0K       -      454  64
     jnewblk     0     0K       -     3806  64
     jremref     0     0K       -     1335  64
     jaddref     0     0K       -     1352  64
     freedep     0     0K       -        9  32
    freework     2     1K       -     1845  16,128
   newdirblk     0     0K       -        6  32
      dirrem     0     0K       -     1323  64
       mkdir     0     0K       -       12  64
      diradd     0     0K       -     1340  64
    freefile     0     0K       -      238  32
    freeblks     1     1K       -     1594  128
    freefrag     0     0K       -      454  64
    indirdep     0     0K       -      116  64
      newblk     2    65K       -     3807  128
   bmsafemap     2     5K       -     4068  128,4096
    inodedep     2   513K       -     5507  256
     pagedep     1    64K       -      218  128
 ufs_dirhash   518   253K       -     2588  16,32,64,128,256,512,4096
   ufs_mount     3    21K       -        3  256,4096
   vm_pgdata     2    65K       -        2  64
     UMAHash     2     5K       -        6  256,512,1024,2048,4096
      pfsync     1     1K       -        1  512
      DEVFS1   106    27K       -     4073  256
      DEVFS3   129    17K       -    14810  128,256
    atkbddev     2     1K       -        2  32
       DEVFS    21     1K       -       22  16,64
      DEVFSP     1     1K       -        1  32
     memdesc     1     4K       -        1  4096
      apmdev     1     1K       -        1  64
  madt_table     0     0K       -        1  2048
     io_apic     1     1K       -        1  1024
   pfs_nodes    21     3K       -       21  128
         MCA     9     2K       -        9  32,128
        GEOM    43     6K       -      336  16,32,64,128,256,512,1024
         msi    33     3K       -       33  64
    nexusdev     4     1K       -        4  16
      kbdmux     7    18K       -        7  16,256,1024,2048
         LED    32     2K       -       32  16,64
vpn123# top -SHP

last pid: 97766;  load averages:  0.25,  0.23,  0.17                                                                  up 0+22:26:18  08:04:39
146 processes: 9 running, 90 sleeping, 47 waiting
CPU 0:  0.0% user,  0.0% nice,  0.0% system,  8.3% interrupt, 91.7% idle
CPU 1:  0.5% user,  0.0% nice,  0.5% system,  0.0% interrupt, 99.0% idle
CPU 2:  0.0% user,  0.0% nice,  0.0% system,  1.9% interrupt, 98.1% idle
CPU 3:  0.0% user,  0.0% nice,  0.0% system,  1.9% interrupt, 98.1% idle
CPU 4:  0.0% user,  0.0% nice,  1.0% system,  0.5% interrupt, 98.5% idle
CPU 5:  0.0% user,  0.0% nice,  0.0% system,  0.0% interrupt,  100% idle
CPU 6:  0.5% user,  0.0% nice,  0.0% system,  2.4% interrupt, 97.1% idle
CPU 7:  0.0% user,  0.0% nice,  0.0% system,  1.5% interrupt, 98.5% idle
Mem: 44M Active, 297M Inact, 475M Wired, 116K Cache, 112M Buf, 2973M Free
Swap: 4096M Total, 4096M Free

 PID USERNAME PRI NICE   SIZE    RES STATE   C   TIME   WCPU COMMAND
  11 root     155 ki31     0K    64K CPU1    1  21.3H 99.37% idle{idle: cpu1}
  11 root     155 ki31     0K    64K CPU4    4  21.3H 99.17% idle{idle: cpu4}
  11 root     155 ki31     0K    64K CPU5    5  21.2H 99.17% idle{idle: cpu5}
  11 root     155 ki31     0K    64K CPU7    7  21.3H 98.97% idle{idle: cpu7}
  11 root     155 ki31     0K    64K CPU2    2  21.3H 98.97% idle{idle: cpu2}
  11 root     155 ki31     0K    64K CPU3    3  21.2H 97.56% idle{idle: cpu3}
  11 root     155 ki31     0K    64K RUN     6  21.3H 96.78% idle{idle: cpu6}
  11 root     155 ki31     0K    64K CPU0    0 982:21 92.48% idle{idle: cpu0}
  12 root     -92    -     0K   376K WAIT    0 298:10  7.08% intr{irq264: igb0:que}
  12 root     -92    -     0K   376K WAIT    6  55:12  2.98% intr{irq279: igb1:que}
  12 root     -92    -     0K   376K WAIT    3  57:39  1.66% intr{irq276: igb1:que}
  12 root     -92    -     0K   376K WAIT    0  60:30  1.27% intr{irq273: igb1:que}
  12 root     -92    -     0K   376K WAIT    2  55:27  0.78% intr{irq275: igb1:que}
  12 root     -92    -     0K   376K WAIT    7  54:37  0.59% intr{irq280: igb1:que}
  12 root     -92    -     0K   376K WAIT    1  64:06  0.29% intr{irq274: igb1:que}
  12 root     -92    -     0K   376K WAIT    4  55:42  0.29% intr{irq277: igb1:que}
  12 root     -92    -     0K   376K WAIT    5  56:54  0.20% intr{irq278: igb1:que}
1019 root      20    0 15200K  7108K select  5  16:47  0.20% snmpd
1004 root      20    0   181M 75032K select  4  11:33  0.00% mpd5{mpd5}
   0 root     -92    0     0K   232K -       5   7:20  0.00% kernel{igb0 que}
  13 root     -16    -     0K    64K sleep   5   6:31  0.00% ng_queue{ng_queue7}
  13 root     -16    -     0K    64K sleep   2   6:29  0.00% ng_queue{ng_queue4}
  13 root     -16    -     0K    64K sleep   1   6:26  0.00% ng_queue{ng_queue2}
  13 root     -16    -     0K    64K sleep   1   6:26  0.00% ng_queue{ng_queue0}
  13 root     -16    -     0K    64K sleep   6   6:24  0.00% ng_queue{ng_queue3}
  13 root     -16    -     0K    64K sleep   5   6:20  0.00% ng_queue{ng_queue6}
  13 root     -16    -     0K    64K sleep   4   6:20  0.00% ng_queue{ng_queue1}
  13 root     -16    -     0K    64K sleep   6   6:19  0.00% ng_queue{ng_queue5}
   0 root     -92    0     0K   232K -       2   4:05  0.00% kernel{igb1 que}
vpn123# vmstat -m

vpn123# ngctl list
ngctl: send msg: Cannot allocate memory

 

Ничтожно мало свободной памяти

vpn123# sysctl vm.kmem_map_size
vm.kmem_map_size: 398827520
vpn123# sysctl vm.kmem_map_free
vm.kmem_map_free: 77824

Изменено пользователем roysbike

Поделиться сообщением


Ссылка на сообщение
Поделиться на других сайтах

net.graph.maxdgram=200000

net.graph.recvspace=200000

kern.ipc.maxsockbuf=6000000

vpn123# sysctl net.graph.maxdgram

net.graph.maxdgram: 8388608

vpn123# sysctl net.graph.recvspace

net.graph.recvspace: 8388608

vpn123# sysctl kern.ipc.maxsockbuf

kern.ipc.maxsockbuf: 83886080

Поделиться сообщением


Ссылка на сообщение
Поделиться на других сайтах

По каким формулам и на показателях каких параметров вы вычислили ваши значения?

Поделиться сообщением


Ссылка на сообщение
Поделиться на других сайтах

Создайте аккаунт или войдите в него для комментирования

Вы должны быть пользователем, чтобы оставить комментарий

Создать аккаунт

Зарегистрируйтесь для получения аккаунта. Это просто!

Зарегистрировать аккаунт

Войти

Уже зарегистрированы? Войдите здесь.

Войти сейчас