[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] logrotate locks up swap space on RAQ3



I commented out the analyze_logs stuff out of the split_logs perl script and this morning I didn't get the "swap" leak. I also didn't get the huge spike in swap usage that I had been getting. Since I wasn't using the stat stuff anyway I think that fixed the problem.

[admin@www sbin]$ diff split_logs.orig split_logs
125c125,127
< analyze_logs ($log_type);
---
> #pf 11-Feb-2003 -- commented out in an attempt to reduce
> #pf 11-Feb-2003 -- swap usage when running logrotate
> #analyze_logs ($log_type);
128c130,132
< generate_tabs( @domains );
---
> #pf 11-Feb-2003 -- commented out in an attempt to reduce
> #pf 11-Feb-2003 -- swap usage when running logrotate
> #generate_tabs( @domains );
131c135,137
< create_reports($log_type);
---
> #pf 11-Feb-2003 -- commented out in an attempt to reduce
> #pf 11-Feb-2003 -- swap usage when running logrotate
> #create_reports($log_type);


Paul

At 10:14 PM 2/11/2003 -0800, you wrote:
>-----BEGIN PGP SIGNED MESSAGE-----
>Hash: SHA1
>
>> We've got a RAQ3. Each day the cron.daily runs the logrotate job at
>> 4am and no other daily jobs. As I've poked around I set up a reboot
>> at 8am and noticed that after logrotate runs, it causes a spike in
>> swap usage to 120M which declines but just down to 10M.  The reboot
>> at 8am resets things and we don't end up using swap space until the
>> next morning at 4am.
>>
>> Does anyone have any ideas about what might be causing the memory
>> leak?
>
>I don't think it's a leak.  The RAM is being used up as logrotate/ 
>split_logs plows through all your log files.  High traffic sites with 
>large logfiles take more time (and more RAM) to process.
>
>- -- 
>Bruce Timberlake
>
>-----BEGIN PGP SIGNATURE-----
>Version: GnuPG v1.2.1 (GNU/Linux)
>
>iD8DBQE+SeZhvLA2hUZ9kgwRApE4AJ9RfTYOyc4W4jpN26OOJWtMF+cVCgCfVVEA
>q4Q6J2G43Anxfqk0x7+HgsU=
>=iGs2
>-----END PGP SIGNATURE-----
>
>_____________________________________
>cobalt-users mailing list
>cobalt-users@xxxxxxxxxxxxxxx
>To subscribe/unsubscribe, or to SEARCH THE ARCHIVES, go to:
>http://list.cobalt.com/mailman/listinfo/cobalt-users