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

syslogd performance on ext2 vs. ext3



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();
}


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