[Serusers] Location table memory usage

Ezequiel Colombo ecolombo at arcotel.net
Mon Aug 2 13:54:41 CEST 2004


Yes, thanks Jan, this is just my test. I insert 20K entries in the location
table of database and restart SER to load into memory.
In this case (when pkg_malloc = 1Mb) SER dont load all the records. I solve
this by increasing pgk_malloc.

----- Original Message -----
From: "Jan Janak" <jan at iptel.org>
To: "Ezequiel Colombo" <ecolombo at arcotel.net>
Cc: <serusers at lists.iptel.org>
Sent: Sunday, August 01, 2004 6:02 PM
Subject: Re: [Serusers] Location table memory usage


> Actually not. location table is using shared memory to store the data,
> PKG_MALLOC controls the private memory. User location table needs
> private memory only if you startup/shutdown ser or during intensive
> communication with the database.
>
> I managed to have more than 500.000 entries in the location table on my
> laptop with 256MB of memory and the memory was still not an issue.
>
>  Jan.
>
> On 30-07 14:51, Ezequiel Colombo wrote:
> > Hi all, i am testing huge loads on location table in version 0.8.14 and
see
> > that:
> > After increment PGK_MALLOC i can support 20.000 entries in the memory
> > location table.
> > This 20.000 entries are using around 12Mb of RAM memory on my linux
RedHat
> > 8.0.
> > When this 20.000 contacts expires the table is cleaned but SER remain
taking
> > 12Mb of RAM.
> >
> > It is a normal operation or SER must perform some function to release
the
> > memory used by the location table when the contacts expire ??
> >
> > #----------------------------------------------#
> > version:  0.8.14 (i386/linux)
> > flags: STATS:Off, USE_IPV6, USE_TCP, DISABLE_NAGLE, DNS_IP_HACK,
SHM_MEM,
> > SHM_MMAP, PKG_MALLOC, F_MALLOC, FAST_LOCK-ADAPTIVE_WAIT
> > ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16,
> > MAX_URI_SIZE 1024, BUF_SIZE 65535
> > @(#) $Id: main.c,v 1.168.4.3 2004/06/28 15:41:21 andrei Exp $
> > main.c compiled on 12:45:14 Jul 30 2004 with gcc 3.2
> >
> > #----------------------------------------------#
> > 140 processes: 138 sleeping, 2 running, 0 zombie, 0 stopped
> > CPU states:  0.2% user,  0.7% system,  0.0% nice, 98.9% idle
> > Mem:   513972K av,  162580K used,  351392K free,       0K shrd,   45532K
> > buff
> > Swap: 2096472K av,       0K used, 2096472K free                   76892K
> > cached
> >
> >   PID USER     PRI  NI  SIZE  RSS SHARE STAT %CPU %MEM   TIME COMMAND
> >   486 mysql     15   0 16856  16M  2604 S     0.0  3.2   0:16 mysqld
> > 25492 root      24   0 12904  12M 12764 S     0.0  2.5   0:02 ser
> >
> > #----------------------------------------------#
> >
> >
> > Thanks
> > Ezequiel Colombo
> >
> > _______________________________________________
> > Serusers mailing list
> > serusers at lists.iptel.org
> > http://lists.iptel.org/mailman/listinfo/serusers
>




More information about the sr-users mailing list