Is there a way to keep asterisk in RAM and tell linux not to swap it out (ever). There are times when delays are noticed and I presume its due to linux swapping out the program. As if I call right back in then everything responds right away. Wait awhile and the same thing might occur. How can I keep asterisk always in RAM? I use CentOS 5. Thanks, jerry
Disable swap space. swapoff -a Jerry Geis wrote:> Is there a way to keep asterisk in RAM > and tell linux not to swap it out (ever). > > There are times when delays are noticed and I presume > its due to linux swapping out the program. As if I call right back in > then everything responds right away. Wait awhile and the same thing > might occur. > > How can I keep asterisk always in RAM? > > I use CentOS 5. > > Thanks, > > jerry > > _______________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users-- Alex Balashov - Principal Evariste Systems Web : http://www.evaristesys.com/ Tel : (+1) (678) 954-0670 Direct : (+1) (678) 954-0671
Next question will be "How can I keep my server from crashing?" :) (add more RAM... which may have been a good answer for question 1...) j On Tue, 24 Nov 2009, Alex Balashov wrote:> Disable swap space. > > swapoff -a > > Jerry Geis wrote: > >> Is there a way to keep asterisk in RAM >> and tell linux not to swap it out (ever). >> >> There are times when delays are noticed and I presume >> its due to linux swapping out the program. As if I call right back in >> then everything responds right away. Wait awhile and the same thing >> might occur. >> >> How can I keep asterisk always in RAM? >> >> I use CentOS 5. >> >> Thanks, >> >> jerry >> >> _______________________________________________ >> -- Bandwidth and Colocation Provided by http://www.api-digital.com -- >> >> asterisk-users mailing list >> To UNSUBSCRIBE or update options visit: >> http://lists.digium.com/mailman/listinfo/asterisk-users > > > -- > Alex Balashov - Principal > Evariste Systems > Web : http://www.evaristesys.com/ > Tel : (+1) (678) 954-0670 > Direct : (+1) (678) 954-0671 > > _______________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >
I was proceeding from the "give them enough rope to hang themselves" theory of technical support, which calls for doing just that when users insist on framing their question in terms of a solution they have already made up their mind on without examining whether they are asking the right question to begin with, or considering their problem in a larger context. Jeff LaCoursiere wrote:> Next question will be "How can I keep my server from crashing?" :) > > (add more RAM... which may have been a good answer for question 1...) > > j > > On Tue, 24 Nov 2009, Alex Balashov wrote: > >> Disable swap space. >> >> swapoff -a >> >> Jerry Geis wrote: >> >>> Is there a way to keep asterisk in RAM >>> and tell linux not to swap it out (ever). >>> >>> There are times when delays are noticed and I presume >>> its due to linux swapping out the program. As if I call right back in >>> then everything responds right away. Wait awhile and the same thing >>> might occur. >>> >>> How can I keep asterisk always in RAM? >>> >>> I use CentOS 5. >>> >>> Thanks, >>> >>> jerry >>> >>> _______________________________________________ >>> -- Bandwidth and Colocation Provided by http://www.api-digital.com -- >>> >>> asterisk-users mailing list >>> To UNSUBSCRIBE or update options visit: >>> http://lists.digium.com/mailman/listinfo/asterisk-users >> >> -- >> Alex Balashov - Principal >> Evariste Systems >> Web : http://www.evaristesys.com/ >> Tel : (+1) (678) 954-0670 >> Direct : (+1) (678) 954-0671 >> >> _______________________________________________ >> -- Bandwidth and Colocation Provided by http://www.api-digital.com -- >> >> asterisk-users mailing list >> To UNSUBSCRIBE or update options visit: >> http://lists.digium.com/mailman/listinfo/asterisk-users >> > > _______________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users-- Alex Balashov - Principal Evariste Systems Web : http://www.evaristesys.com/ Tel : (+1) (678) 954-0670 Direct : (+1) (678) 954-0671
On Tue, Nov 24, 2009 at 08:21:43AM -0500, Jerry Geis wrote:> Is there a way to keep asterisk in RAM > and tell linux not to swap it out (ever). > > There are times when delays are noticed and I presume > its due to linux swapping out the program. As if I call right back in > then everything responds right away. Wait awhile and the same thing > might occur. > > How can I keep asterisk always in RAM?Theoretically - yes. Practically - some other component of the system will swap out and cause basically the same performance issues. What else takes much memory on that system? -- Tzafrir Cohen icq#16849755 jabber:tzafrir.cohen at xorcom.com +972-50-7952406 mailto:tzafrir.cohen at xorcom.com http://www.xorcom.com iax:guest at local.xorcom.com/tzafrir
On Tue, Nov 24, 2009 at 11:21 AM, Jerry Geis <geisj at pagestation.com> wrote:> Is there a way to keep asterisk in RAM > and tell linux not to swap it out (ever). > > There are times when delays are noticed and I presume > its due to linux swapping out the program. As if I call right back in > then everything responds right away. Wait awhile and the same thing > might occur. > > How can I keep asterisk always in RAM? > >How much RAM your system have? Concurrent calls? Write or encode calls on disk? You have other softwares (like databases) running on same machine? Maybe, you shoul run the vmstat, ps, top and other tools to detect the bootleneck on your system, and read about " kernel swappiness": http://kerneltrap.org/node/3000 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20091124/ad0069a6/attachment.htm
On Tue, Nov 24, 2009 at 2:36 PM, jefferson alexandre <jefferson.alexandre at gmail.com> wrote:> On Tue, Nov 24, 2009 at 11:21 AM, Jerry Geis <geisj at pagestation.com> wrote: >> >> Is there a way to keep asterisk in RAM >> and tell linux not to swap it out (ever).On a closely related note, has anyone built a normal (not embedded) system on SSD? It might help if it works well with linux. It seems to make a huge difference with OS like OS X. /r
On Tuesday 24 November 2009 07:21:43 Jerry Geis wrote:> Is there a way to keep asterisk in RAM > and tell linux not to swap it out (ever). > > There are times when delays are noticed and I presume > its due to linux swapping out the program. As if I call right back in > then everything responds right away. Wait awhile and the same thing > might occur. > > How can I keep asterisk always in RAM?http://asterisk.drunkcoder.com/patches/20091124__dontswap.diff.txt And run with -S flag. -- Tilghman Lesher Digium, Inc. | Senior Software Developer twitter: Corydon76 | IRC: Corydon76-dig (Freenode) Check us out at: www.digium.com & www.asterisk.org