syslogd performance on ext2 vs. ext3

Skunk Worx skunkworx at verizon.net
Sat Sep 2 05:47:11 UTC 2006


I suppose it's expected that code like the following would run some 10x 
slower on ext3 due to the journaling, but thought i'd mention it anyway.
--
SW

#include <stdio.h>
#include <syslog.h>
main()
{
   int i;
   openlog("speedtest",LOG_PID,LOG_USER);
   for(i=0;i<999;i++) {
     syslog(LOG_INFO,"%s","log number 1");
     syslog(LOG_INFO,"%s","log number 2");
   }
   closelog();
}




More information about the fedora-test-list mailing list