On Fri, Apr 4, 2014 at 2:12 PM, Bruno Friedmann <bruno@ioda-net.ch> wrote:
On Friday 04 April 2014 09.31:38 Claudio Freire wrote:
On Fri, Apr 4, 2014 at 8:38 AM, Bruno Friedmann <bruno@ioda-net.ch> wrote:
time journalctl --verify
real 2m20.742s user 2m6.646s sys 0m12.043s
You obviously have a much speedier system than mine (which doesn't really surprise me as my computer is 11 years old). Is this an SSD? Out of curiosity, how long does it take to just verify the active journal file?
It's already a old computer 3 years old i7-2nd generation with 16GB Ram and a 480GB Corsair SSD GT-Force3 (6gbs sata)
2 minutes on an SSD?
That's completely unworkable for rotating media (they're *orders of magnitude* slower for random access). For 2.9GB of logs ?
It depends on whether they're loaded sequentially or randomly, but judging from the OP, it's random, and random is on average 2MB/s on modern rotating rust (resulting in 24.7 minutes runtime for 2.9GB).
Can you test that on rotating media please? A great deal of us are still using spinning rust for our storage needs, testing on SSD and calling it representative is probably as wrong as you can get.
Well if only I've still rotating rust for system. I've chosen journald exclusively cause I know some report of being perhaps slow on rust and all system here are now powered on ssd. (Tired of sector defects & co)
Can you not copy into rotating rust and verify the copy? Flush your cache first with: sudo sync sudo sysctl -w vm.drop_caches=3 sudo sysctl -w vm.drop_caches=0
I also have decided to export them to external storage in plain text mode for archiving purpose. Rotating the journal is also a nice way to get perf back. Afterall we also rotate text log files and compress them. .. for example I've rotated my log this morning and now du -sh /var/log/journal/32aed2336d02ef306e8c3ca25103d7ee 3.7M /var/log/journal/32aed2336d02ef306e8c3ca25103d7ee
time journalctl --verify --system PASS: /var/log/journal/32aed2336d02ef306e8c3ca25103d7ee/system.journal
real 0m0.041s user 0m0.035s sys 0m0.006s
Look like there's some good practices to be determined.
Indeed -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org