Re: logrotate(8) and copytruncate as default

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

 



   Hi,
----- Original Message -----
> From: Jan Kaluza <jkaluza@xxxxxxxxxx>
> Subject: Re: logrotate(8) and copytruncate as default
> Right now, without locking, logrotate would loss more messages if the
> logs are big, because copying takes more time. It would be interesting
> to mention the file size in your tests too. But as I said, if the
> exclusive lock pauses the writing operations to the lock file, you
> won't be able to reproduce it with your current reproducer.

   I can understand, if log files run into GBs, copying those would take time,
and till that time kernel will have to buffer those suspended write operations
and corresponding data.


I'll try another experiment. Let's let the first command create large(1-2 GB) log file,
and then do flock, followed by copy-truncate.


---
Regards
   -Prasad
http://feedmug.com
-- 
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/devel





[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux