RE: Memory allocation of 40 bytes failed

From: Brian Dennis (brian@5g.net)
Date: Mon Apr 28 2003 - 19:58:05 GMT-3


Send the first 5 lines of a "show mem".

Brian Dennis, CCIE #2210 (R&S/ISP-Dial/Security)
Director of CCIE Training and Development - IPexpert, Inc.
Mailto: brian@ipexpert.net
Toll Free: 866.225.8064
Outside U.S. & Canada: 312.321.6924

-----Original Message-----
From: nobody@groupstudy.com [mailto:nobody@groupstudy.com] On Behalf Of
John Tafasi
Sent: Monday, April 28, 2003 2:29 PM
To: ccielab; Brian Dennis
Subject: Re: Memory allocation of 40 bytes failed

Brian,

So what is the solution for this problem?

r6-Whitetooth#show buffers
Buffer elements:
     499 in free list (500 max allowed)
     43498 hits, 0 misses, 0 created

Public buffer pools:
Small buffers, 104 bytes (total 50, permanent 50):
     50 in free list (20 min, 150 max allowed)
     20893 hits, 0 misses, 0 trims, 0 created
     0 failures (0 no memory)
Middle buffers, 600 bytes (total 25, permanent 25):
     25 in free list (10 min, 150 max allowed)
     178 hits, 0 misses, 0 trims, 0 created
     0 failures (0 no memory)
Big buffers, 1536 bytes (total 50, permanent 50):
     50 in free list (5 min, 150 max allowed)
     953 hits, 0 misses, 0 trims, 0 created
     0 failures (0 no memory)
VeryBig buffers, 4520 bytes (total 10, permanent 10):
     10 in free list (0 min, 100 max allowed)
     0 hits, 0 misses, 0 trims, 0 created
     0 failures (0 no memory)
Large buffers, 5024 bytes (total 0, permanent 0):
     0 in free list (0 min, 10 max allowed)
     0 hits, 0 misses, 0 trims, 0 created
     0 failures (0 no memory)
Huge buffers, 18024 bytes (total 0, permanent 0):
     0 in free list (0 min, 4 max allowed)
     0 hits, 0 misses, 0 trims, 0 created
     0 failures (0 no memory)

Interface buffer pools:
ATM0 Small buffers, 104 bytes (total 0, permanent 0):
     0 in free list (0 min, 0 max allowed)
     0 hits, 0 fallbacks
     0 max cache size, 0 in cache
     0 hits in cache, 0 misses in cache
ATM0 Middle buffers, 600 bytes (total 0, permanent 0):
     0 in free list (0 min, 0 max allowed)
     0 hits, 0 fallbacks
     0 max cache size, 0 in cache
     0 hits in cache, 0 misses in cache
Ethernet0 buffers, 1524 bytes (total 96, permanent 96):
     32 in free list (0 min, 96 max allowed)
     64 hits, 0 fallbacks
     32 max cache size, 32 in cache
     2027 hits in cache, 0 misses in cache
Ethernet1 buffers, 1524 bytes (total 96, permanent 96):
     32 in free list (0 min, 96 max allowed)
     64 hits, 0 fallbacks
     32 max cache size, 32 in cache
     0 hits in cache, 0 misses in cache
Serial0 buffers, 1524 bytes (total 96, permanent 96):
     32 in free list (0 min, 96 max allowed)
     64 hits, 0 fallbacks
     32 max cache size, 32 in cache
     20234 hits in cache, 0 misses in cache
Serial1 buffers, 1524 bytes (total 96, permanent 96):
     32 in free list (0 min, 96 max allowed)
     64 hits, 0 fallbacks
     32 max cache size, 32 in cache
     0 hits in cache, 0 misses in cache
ATM0 Big buffers, 1558 bytes (total 0, permanent 0):
     0 in free list (0 min, 0 max allowed)
     0 hits, 0 fallbacks
     0 max cache size, 0 in cache
     0 hits in cache, 0 misses in cache
ATM0 Large buffers, 4558 bytes (total 0, permanent 0):
     0 in free list (0 min, 0 max allowed)
     0 hits, 0 fallbacks
     0 max cache size, 0 in cache
     0 hits in cache, 0 misses in cache
ATM0 Semi-Huge buffers, 9238 bytes (total 0, permanent 0):
     0 in free list (0 min, 0 max allowed)
     0 hits, 0 fallbacks
     0 max cache size, 0 in cache
     0 hits in cache, 0 misses in cache
ATM0 Huge buffers, 18024 bytes (total 0, permanent 0):
     0 in free list (0 min, 0 max allowed)
     0 hits, 0 fallbacks
     0 max cache size, 0 in cache
     0 hits in cache, 0 misses in cache

r6-Whitetooth#

============================
r6-Whitetooth#show processes mem
Total: 5231328, Used: 4010772, Free: 1220556
 PID TTY Allocated Freed Holding Getbufs Retbufs Process
   0 0 87272 1848 2874592 0 0 *Init*
   0 0 488 184056 488 0 0 *Sched*
   0 0 13256620 8636956 2728 808380 0 *Dead*
   1 0 284 284 3828 0 0 Load
Meter
   2 0 2040 12696 11892 0 0 OSPF
Hello
   3 0 0 0 6828 0 0 Check
heaps
   4 0 96 0 6924 0 0 Chunk
Manager
   5 0 96 0 6924 0 0 Pool
Manager
   6 0 284 284 6828 0 0 Timers
   7 0 284 284 6828 0 0 Serial
Backgroun
   8 0 96 0 6924 0 0 ARP
Input
   9 0 0 0 6828 0 0 HC
Counter
Timer
  10 0 284 284 6828 0 0 DDR
Timers
  11 0 284 284 12828 0 0 Dialer
event
  12 0 96 0 6924 0 0 Entity
MIB
API
  13 0 96 0 6924 0 0 SERIAL
A'detect
  14 0 96 0 6924 0 0 Critical
Bkgnd
  15 0 20844 0 13188 0 0 Net
Background
  16 0 380 284 12924 0 0 Logger
  17 0 13200 284 6916 0 0 TTY
Background
  18 0 0 0 9828 0 0
Per-Second
Jobs
 PID TTY Allocated Freed Holding Getbufs Retbufs Process
  19 0 192 0 7020 0 0 Net
Input
  20 0 284 284 6828 0 0 Compute
load
avg
  21 0 0 196 6828 0 0
Per-minute
Jobs
  22 0 532 284 13076 0 0 ATM OAM
Input
  23 0 284 284 12828 0 0 ATM OAM
TIMER
  24 0 0 0 9828 0 0 ATM
Periodic
  25 0 140 0 6968 0 0 ATM ARP
INPUT
  26 0 380 284 6924 0 0 AAA
Dictionary R
  27 0 1372 0 14200 0 0 IP Input
  28 0 65016 62436 9408 0 0 CDP
Protocol
  29 0 568 284 13112 0 0 PASVC
create
VA
  30 0 568 284 7112 0 0 MOP
Protocols
  31 0 192 0 7020 0 0 X.25
Encaps
Mana
  32 0 0 0 6828 0 0 LDP
Background
  33 0 0 0 12828 0 0
frr_tunnel
  34 0 380 284 6924 0 0 SSCOP
Input
  35 0 380 284 6924 0 0 SSCOP
Output
  36 0 284 284 6828 0 0 SSCOP
Timer
  37 0 648 0 10476 0 0 IP
Background
  38 0 0 0 6828 0 0 SNMP
Timers
  39 0 380 284 12924 0 0 ILMI
Input
  40 0 380 284 6924 0 0 ILMI
Request
 PID TTY Allocated Freed Holding Getbufs Retbufs Process
  41 0 380 284 6924 0 0 ILMI
Response
  42 0 0 0 6828 0 0 ILMI
Timer
Proce
  43 0 6892 700 19020 0 0 ATM PVC
Discover
  44 0 284 284 6828 0 0 ATMSIG
ILMI
Time
  45 0 380 284 6924 0 0 ATMSIG
DRIVERAPI
  46 0 284 284 12828 0 0 ATMSIG
Timer
  47 0 380 284 12924 0 0 ATMSIG
Input
  48 0 476 284 13020 0 0 ATMSIG
Client
  49 0 0 0 6828 0 0 PPP IP
Add
Route
  50 0 0 0 12828 0 0 TCP
Timer
  51 0 0 0 12828 0 0 TCP
Protocols
  52 0 248 0 7076 0 0 Probe
Input
  53 0 96 0 6924 0 0 RARP
Input
  54 0 0 0 6828 0 0 HTTP
Timer
  55 0 0 0 6828 0 0 Socket
Timers
  56 0 30052 284 22896 0 0 DHCPD
Receive
  57 0 0 0 6828 0 0 IP Cache
Ager
  58 0 1316 0 26144 0 0 COPS
  59 0 248 0 7076 0 0 PAD
InCall
  60 0 380 284 12924 0 0 X.25
Background
  61 0 0 0 6828 0 0 TCP
Intercept Ti
  62 0 284 284 6828 0 0 SPX
Input
 PID TTY Allocated Freed Holding Getbufs Retbufs Process
  63 0 536 284 7080 0 0 Adj
Manager
  64 0 748 284 7292 0 0 TC-ATM
Proc
  65 0 476 284 7020 0 0 Tag
Input
  66 0 45924 8268 25312 0 0 OSPF
Router
  67 0 284 284 6828 0 0 Net Serv
Timer
  68 0 480 0 7308 0 0 Crypto
Support
  69 0 96 0 6924 0 0 Router
Autoconf
  70 0 3000 1284 15828 0 0 Crypto
ACL
  71 0 232 0 13060 0 0 Encrypt
Proc
  72 0 136 0 8964 0 0 Key Proc
  73 0 9436 284 17980 0 0 Crypto
CA
  74 0 10600 284 23144 0 0 Crypto
IKMP
  75 0 28768 28252 7012 0 0 IPSEC
key
engine
  76 0 0 0 6828 0 0 IPSEC
manual
key
  77 0 96 0 6924 0 0 Syslog
Traps
  78 0 676 0 7520 0 0 FR LMI
  79 0 0 0 6844 0 0 FR
Broadcast
Out
  80 0 292 0 7136 0 0 FR ARP
  81 0 324 0 7152 0 0 FR
TUNNEL
  82 0 0 0 6828 0 0 FR
FRAGMENTATION
  83 0 248 0 7076 0 0 FRF9
manager
  84 0 248 0 7076 0 0 FRF9
timed
event
 PID TTY Allocated Freed Holding Getbufs Retbufs Process
  85 0 2786004 2592940 320528 0 0 Exec
  86 0 0 0 6828 0 0 DHCPD
Timer
  87 0 196 0 7068 0 0 DHCPD
Database
                                  4010052 Total
r6-Whitetooth#

----- Original Message -----
From: "Brian Dennis" <brian@5g.net>
To: "'Lupi, Guy'" <Guy.Lupi@eurekanetworks.net>; "'John Tafasi'"
<johntafasi@yahoo.com>; "'ccielab'" <ccielab@groupstudy.com>
Sent: Monday, April 28, 2003 2:06 PM
Subject: RE: Memory allocation of 40 bytes failed

> Technically your router could have enough memory but not enough free
> continuous memory (aka fragmented memory). So when checking the amount
> of free memory you need to also check the largest free block of memory
> available. Under normal operations these numbers should be pretty
close.
>
> Brian Dennis, CCIE #2210 (R&S/ISP-Dial/Security)
> Director of CCIE Training and Development -
> IPexpert, Inc.
> Mailto: brian@ipexpert.net
> Toll Free: 866.225.8064
> Outside U.S. & Canada: 312.321.6924
>
> -----Original Message-----
> From: nobody@groupstudy.com [mailto:nobody@groupstudy.com] On Behalf
Of
> Lupi, Guy
> Sent: Monday, April 28, 2003 11:50 AM
> To: 'John Tafasi'; ccielab
> Subject: RE: Memory allocation of 40 bytes failed
>
> Do a show proc mem with no bgp configured and see what your free
memory
> level is. If it is too low, the router won't be able to start certain
> processes. Take a look at this link:
>
>
http://www.cisco.com/en/US/products/sw/iosswrel/ps1831/products_tech_not
> e091
> 86a00800a6f3a.shtml#topic1
>
> -----Original Message-----
> From: John Tafasi [mailto:johntafasi@yahoo.com]
> Sent: Monday, April 28, 2003 1:37 PM
> To: ccielab
> Subject: Memory allocation of 40 bytes failed
>
>
> Hi Group,
>
> I have a problem with my 4500 series router. The router has a 32 MB
> memory,
> but as soon as I start configuring bgp it runs out of memory. Below
you
> will find the error message. Can some one tell me if this can be cured
> through configuration?
>
>
> Thanks
> John Tafasi
>
>
> r6-Whitetooth(config)#router bgp 65535
> r6-Whitetooth(config-router)#
> 00:05:42: %SYS-2-MALLOCFAIL: Memory allocation of 40 bytes failed from
> 0x604E0388, alignment 0
> Pool: Processor Free: 32 Cause: Not enough free memory
> Alternate Pool: None Free: 0 Cause: No Alternate pool



This archive was generated by hypermail 2.1.4 : Thu May 01 2003 - 13:36:09 GMT-3