From: vuph <vu...@ca...> - 2002-09-23 16:39:18
|
Hi, I know how Linux system manage buffer/cache. I have already checked all perl modules is needed by webmin. Then, it work ok. Thanks, --PHAM HUY VU-- ----- Original Message ----- From: "Joe Cooper" <jo...@sw...> To: <web...@li...> Sent: Monday, September 23, 2002 6:40 PM Subject: Re: "miniserv.pl" and buffer-increasement > Oh, you didn't mention you were using an alternate C library. > > Regardless, what do you expect the buffer to do? The job of the > buffer/cache layer is to buffer disk I/O so that you don't have to wait > for disks to do their job. It should go up very rapidly on the start of > any new program, or while saving out anything to disk. Have you never > watched buffer on a normal Linux system running with glibc, or any Unix > with a properly functioning VM layer? > > If it doesn't level off at a reasonable level (i.e. with 3-6MB of free > RAM) or you see some indication of a leak (buffer increasing is not an > indication of a leak), then you'll need to take it up with the library > people. Webmin does not do memory management--it is a perl program, and > perl handles memory management behind the scenes for perl programs. And > since perl on other C libs does not have any reproduceable leaks that I > know of, it will be a bug in the memory management functions of the C > lib you are using. > > vuph wrote: > > Hi all, > > > > > >>What do you mean you have "ported". As far as I know, Webmin runs as-is > >>on perl 5.00503. It certainly causes no problems on the Solaris box I > >>administer with that perl version. > >> > >>And what buffers are you speaking of? > > > > > > I compiled perl5.00503 with uclibc ( www.uclibc.org ) > > [root@vuph webmin]# ldd /usr/bin/perl > > libdl.so.0 => /usr/i386-linux-uclibc/lib/libdl.so.0 (0x0x40006000) > > libm.so.0 => /usr/i386-linux-uclibc/lib/libm.so.0 (0x0x40009000) > > libcrypt.so.0 => /usr/i386-linux-uclibc/lib/libcrypt.so.0 > > (0x0x40017000) > > libc.so.0 => /usr/i386-linux-uclibc/lib/libc.so.0 (0x0x4002c000) > > ld-uClibc.so.0 => /usr/i386-linux-uclibc/lib/ld-uClibc.so.0 > > (0x0x40000000) > > ----------------- > > During webmin running system buffer always increase > > [root@vuph webmin]# free > > total used free shared > > buffers cached > > Mem: 58004 34084 23920 0 5464 > > 12820 > > -/+ buffers/cache: 15800 42204 > > Swap: 530104 5644 524460 > > ////////////////After 1 second > > [root@vuph webmin]# free > > total used free shared > > buffers cached > > Mem: 58004 34092 23912 0 5472 > > 12820 > > -/+ buffers/cache: 15800 42204 > > Swap: 530104 5644 524460 > > ///////////////////After 15 seconds > > [root@vuph webmin]# free > > total used free shared > > buffers cached > > Mem: 58004 34220 23784 0 5600 > > 12820 > > -/+ buffers/cache: 15800 42204 > > Swap: 530104 5644 524460 > > -------------------- > > Buffer: 5464->5472->5600 > > The buffer increase very fast > > --------------------- > > After I have stoped webmin, the buffer also increase > > [root@vuph webmin]# /etc/webmin/stop > > Stopping Webmin server in /usr/local/webmin > > [root@vuph webmin]# free > > total used free shared buffers cached > > Mem: 58004 32396 25608 0 5732 12984 > > -/+ buffers/cache: 13680 44324 > > Swap: 530104 5644 524460 > > -------------------------------------------------------------------------- -- > > -- > > > > Thanks > > --PHAM HUY VU-- > > > > > > > > ------------------------------------------------------- > > This sf.net email is sponsored by:ThinkGeek > > Welcome to geek heaven. > > http://thinkgeek.com/sf > > - > > Forwarded by the Webmin mailing list at web...@li... > > To remove yourself from this list, go to > > http://lists.sourceforge.net/lists/listinfo/webadmin-list > > > -- > Joe Cooper <jo...@sw...> > Web caching appliances and support. > http://www.swelltech.com > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > - > Forwarded by the Webmin mailing list at web...@li... > To remove yourself from this list, go to > http://lists.sourceforge.net/lists/listinfo/webadmin-list |