[Home]

Summary:ASTERISK-01106: /proc/zaptel/1 size limit
Reporter:zoa (zoa)Labels:
Date Opened:2004-02-26 09:13:44.000-0600Date Closed:2011-06-07 14:05:12
Priority:MajorRegression?No
Status:Closed/CompleteComponents:Core/General
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:
When i do ztcfg, i get all my E1 channels, but as soon as i start asterisk some of them disappear.

The two pri's are connected to two different switches and on another server they gave no problems (at least not yesterday)

The new server is a dual opteron, asterisk is compiled @ 64 bit and is running in a chroot, dunno if this could be related.

except for this, i have no problems or errors on the cards.

****** ADDITIONAL INFORMATION ******

julius:/# cat /proc/zaptel/1
Span 1: TE4/0/1 "TE410P (PCI) Card 0 Span 1" HDB3/CCS

          1 TE4/0/1/1 ClearChannel (In use)
          2 TE4/0/1/2 ClearChannel (In use)
          3 TE4/0/1/3 ClearChannel (In use)
          4 TE4/0/1/4 ClearChannel (In use)
          5 TE4/0/1/5 ClearChannel (In use)
          6 TE4/0/1/6 ClearChannel (In use)
          7 TE4/0/1/7 ClearChannel (In use)
          8 TE4/0/1/8 ClearChannel (In use)
          9 TE4/0/1/9 ClearChannel (In use)
         10 TE4/0/1/10 ClearChannel (In use)
         11 TE4/0/1/11 ClearChannel (In use)
         12 TE4/0/1/12 ClearChannel (In use)
         13 TE4/0/1/13 ClearChannel (In use)
         14 TE4/0/1/14 ClearChannel (In use)
         15 TE4/0/1/15 ClearChannel (In use)
         16 TE4/0/1/16 HDLCFCS (In use)
         17 TE4/0/1/17 ClearChannel (In use)
         18 TE4/0/1/18 ClearChannel (In use)
         19 TE4/0/1/19 ClearChannel (In use)
         20 TE4/0/1/20 ClearChannel (In use)
         21 TE4/0/1/21 ClearChannel (In use)
         22 TE4/0/1/22 ClearChannel (In use)
         23 TE4/0/1/23 ClearChannel (In use)
         24 TE4/0/1/24 ClearChannel (In use)
         25 TE4/0/1/25 Clearjulius:/# cat /proc/zaptel/2
Span 2: TE4/0/2 "TE410P (PCI) Card 0 Span 2" HDB3/CCS

         32 TE4/0/2/1 ClearChannel (In use)
         33 TE4/0/2/2 ClearChannel (In use)
         34 TE4/0/2/3 ClearChannel (In use)
         35 TE4/0/2/4 ClearChannel (In use)
         36 TE4/0/2/5 ClearChannel (In use)
         37 TE4/0/2/6 ClearChannel (In use)
         38 TE4/0/2/7 ClearChannel (In use)
         39 TE4/0/2/8 ClearChannel (In use)
         40 TE4/0/2/9 ClearChannel (In use)
         41 TE4/0/2/10 ClearChannel (In use)
         42 TE4/0/2/11 ClearChannel (In use)
         43 TE4/0/2/12 ClearChannel (In use)
         44 TE4/0/2/13 ClearChannel (In use)
         45 TE4/0/2/14 ClearChannel (In use)
         46 TE4/0/2/15 ClearChannel (In use)
         47 TE4/0/2/16 HDLCFCS (In use)
         48 TE4/0/2/17 ClearChannel (In use)
         49 TE4/0/2/18 ClearChannel (In use)
         50 TE4/0/2/19 ClearChannel (In use)
         51 TE4/0/2/20 ClearChannel (In use)
         52 TE4/0/2/21 ClearChannel (In use)
         53 TE4/0/2/22 ClearChannel (In use)
         54 TE4/0/2/23 ClearChannel (In use)
         55 TE4/0/2/24 ClearChannel (In use)
         56 TE4/0/2/25 Clearjulius:/#
Comments:By: zoa (zoa) 2004-02-26 09:39:28.000-0600

julius:/etc# ztcfg -vvvvvvvvvvvvvv

Zaptel Configuration
======================

SPAN 1: CCS/HDB3 Build-out: 0 db (CSU)/0-133 feet (DSX-1)
SPAN 2: CCS/HDB3 Build-out: 0 db (CSU)/0-133 feet (DSX-1)

Channel map:

Channel 01: Individual Clear channel (Default) (Slaves: 01)
Channel 02: Individual Clear channel (Default) (Slaves: 02)
Channel 03: Individual Clear channel (Default) (Slaves: 03)
Channel 04: Individual Clear channel (Default) (Slaves: 04)
Channel 05: Individual Clear channel (Default) (Slaves: 05)
Channel 06: Individual Clear channel (Default) (Slaves: 06)
Channel 07: Individual Clear channel (Default) (Slaves: 07)
Channel 08: Individual Clear channel (Default) (Slaves: 08)
Channel 09: Individual Clear channel (Default) (Slaves: 09)
Channel 10: Individual Clear channel (Default) (Slaves: 10)
Channel 11: Individual Clear channel (Default) (Slaves: 11)
Channel 12: Individual Clear channel (Default) (Slaves: 12)
Channel 13: Individual Clear channel (Default) (Slaves: 13)
Channel 14: Individual Clear channel (Default) (Slaves: 14)
Channel 15: Individual Clear channel (Default) (Slaves: 15)
Channel 16: D-channel (Default) (Slaves: 16)
Channel 17: Individual Clear channel (Default) (Slaves: 17)
Channel 18: Individual Clear channel (Default) (Slaves: 18)
Channel 19: Individual Clear channel (Default) (Slaves: 19)
Channel 20: Individual Clear channel (Default) (Slaves: 20)
Channel 21: Individual Clear channel (Default) (Slaves: 21)
Channel 22: Individual Clear channel (Default) (Slaves: 22)
Channel 23: Individual Clear channel (Default) (Slaves: 23)
Channel 24: Individual Clear channel (Default) (Slaves: 24)
Channel 25: Individual Clear channel (Default) (Slaves: 25)
Channel 26: Individual Clear channel (Default) (Slaves: 26)
Channel 27: Individual Clear channel (Default) (Slaves: 27)
Channel 28: Individual Clear channel (Default) (Slaves: 28)
Channel 29: Individual Clear channel (Default) (Slaves: 29)
Channel 30: Individual Clear channel (Default) (Slaves: 30)
Channel 31: Individual Clear channel (Default) (Slaves: 31)
Channel 32: Individual Clear channel (Default) (Slaves: 32)
Channel 33: Individual Clear channel (Default) (Slaves: 33)
Channel 34: Individual Clear channel (Default) (Slaves: 34)
Channel 35: Individual Clear channel (Default) (Slaves: 35)
Channel 36: Individual Clear channel (Default) (Slaves: 36)
Channel 37: Individual Clear channel (Default) (Slaves: 37)
Channel 38: Individual Clear channel (Default) (Slaves: 38)
Channel 39: Individual Clear channel (Default) (Slaves: 39)
Channel 40: Individual Clear channel (Default) (Slaves: 40)
Channel 41: Individual Clear channel (Default) (Slaves: 41)
Channel 42: Individual Clear channel (Default) (Slaves: 42)
Channel 43: Individual Clear channel (Default) (Slaves: 43)
Channel 44: Individual Clear channel (Default) (Slaves: 44)
Channel 45: Individual Clear channel (Default) (Slaves: 45)
Channel 46: Individual Clear channel (Default) (Slaves: 46)
Channel 47: D-channel (Default) (Slaves: 47)
Channel 48: Individual Clear channel (Default) (Slaves: 48)
Channel 49: Individual Clear channel (Default) (Slaves: 49)
Channel 50: Individual Clear channel (Default) (Slaves: 50)
Channel 51: Individual Clear channel (Default) (Slaves: 51)
Channel 52: Individual Clear channel (Default) (Slaves: 52)
Channel 53: Individual Clear channel (Default) (Slaves: 53)
Channel 54: Individual Clear channel (Default) (Slaves: 54)
Channel 55: Individual Clear channel (Default) (Slaves: 55)
Channel 56: Individual Clear channel (Default) (Slaves: 56)
Channel 57: Individual Clear channel (Default) (Slaves: 57)
Channel 58: Individual Clear channel (Default) (Slaves: 58)
Channel 59: Individual Clear channel (Default) (Slaves: 59)
Channel 60: Individual Clear channel (Default) (Slaves: 60)
Channel 61: Individual Clear channel (Default) (Slaves: 61)
Channel 62: Individual Clear channel (Default) (Slaves: 62)

62 channels configured.

By: James Golovich (jamesgolovich) 2004-02-27 00:01:56.000-0600

Check in zttool to see if they are still there, they still should be.  What is happening is that we are filling up one page of data (4K).  When I added the proc support ages ago we never would fill up that much data, so the code doesn't handle it.

By: zoa (zoa) 2004-02-27 04:48:33.000-0600

on my other servers it possible to do cat /proc/zaptel/* and it will show all  channels on all spans correctly.

On this server it also works, if asterisk is not turned on.
(As soon as i start asterisk, it falls back to 25 channels / pri, dropped incoming calls as a result).

By: zoa (zoa) 2004-02-27 07:19:16.000-0600

i'm running kernel 2.6.3, could that be an issue ?

By: zoa (zoa) 2004-02-27 08:03:15.000-0600

furthermore i am able to rmmod wct4xxp while running asterisk which will cause asterisk to hang.

once i load wct4xxp and zaptel, df no longer works in a chroot, and make hangs when reading the makefile. (i straced it).

unloading wct4xxp and zaptel doesnt resolve this until a reboot.
Seems like this fucks something up with the disk on 2.6.3

By: zoa (zoa) 2004-02-27 11:18:29.000-0600

i'm running into troubles compiling zttool in 64 bit mode, so i cant really check that, but i know for sure that incoming calls on channels > 25 don't get in.

By: James Golovich (jamesgolovich) 2004-02-27 23:07:12.000-0600

The /proc stuff is unrelated to any problems you have.  When your having the problem do something like cat /proc/zaptel/1 >/tmp/proc and then ls -l /tmp/proc and you will see the size is about 1024 which is the max size per page.  Check zttool to see if all your channels are there if you think they are disappearing.

It's when asterisk starts up that (in use) is printed for each channel which puts it over 1024

By: zoa (zoa) 2004-02-28 05:08:37.000-0600

shit, now i know what you mean... and i feel quite stupid :)

It must be those damn carrier switches again !.

By: zoa (zoa) 2004-02-28 05:09:10.000-0600

False alarm...

By: zoa (zoa) 2004-02-28 05:17:17.000-0600

I found out what caused this confusion.

On my other (xeon) servers i can do a cat /proc/zaptel/1 without problems, and the resulting file will be well over 1024.

The dual opteron is offline,  so i cant check what the size was for now.

By: James Golovich (jamesgolovich) 2004-02-28 05:22:53.000-0600

Yeah its a problem that we'll need to come up with a workaround for.  Its just low on my list of things todo right now