Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How much does metalog improve disk I/O?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
kashani
Advocate
Advocate


Joined: 02 Sep 2002
Posts: 2032
Location: San Francisco

PostPosted: Wed Sep 15, 2004 11:31 pm    Post subject: How much does metalog improve disk I/O? Reply with quote

I've finally put out enough fires at work that I can start dusting off some research projects. One that came up today is that disk I/O tends to be one of our performance bottlenecks. We generally get around this by using a RAID card with a hefty cache to buffered the disk reads and writes. And also by putting the OS and logging on a single disk and putting content on a second drive. Both seem to work well especially in tandem and generally solve the problem for us, but we have to spend an extra $300-500 per server depending on the config.

It is my understanding that metalog, a common syslogd replacement, has a caching system. Instead of constantly writing to disk it hold it in RAM and then dumps out by blocks which is more efficient. The $64 question is:

Does this really increase performance significantly?

Ideally I'd like to hear from someone who generates around 1 GB of weblogs per day per server and has seen metalog increase system performance around at least 10-20% by decreasing disk I/O due to logging.

kashani
_________________
Will personally fix your server in exchange for motorcycle related shop tools in good shape.
Back to top
View user's profile Send private message
fleed
l33t
l33t


Joined: 28 Aug 2002
Posts: 756
Location: London

PostPosted: Thu Sep 16, 2004 9:58 am    Post subject: Reply with quote

Sorry dude, no such experience. But you might also want to have a look at syslog-ng. While it's setup is more involved, I get the feeling it lets you control your syslog much better.
Back to top
View user's profile Send private message
kashani
Advocate
Advocate


Joined: 02 Sep 2002
Posts: 2032
Location: San Francisco

PostPosted: Thu Sep 16, 2004 4:37 pm    Post subject: Reply with quote

syslog-ng is what I normally use, but in this case all I care about is getting better disk I/O. Hell I'd turn off logging completely if I could get away with it.

kashani
_________________
Will personally fix your server in exchange for motorcycle related shop tools in good shape.
Back to top
View user's profile Send private message
fleed
l33t
l33t


Joined: 28 Aug 2002
Posts: 756
Location: London

PostPosted: Fri Sep 17, 2004 11:10 am    Post subject: Reply with quote

You probably have but... have you thought about dedicating a machine solely for logging? So you just send your logs over the network to that machine from all the other ones?
Back to top
View user's profile Send private message
mirko_3
l33t
l33t


Joined: 02 Nov 2003
Posts: 605
Location: Birreria

PostPosted: Fri Sep 17, 2004 12:07 pm    Post subject: Reply with quote

Note that metalog now turns buffering off by default - I read that somewhere, maybe upgrading. Just something to look at, if you don't notice a performance increase..
_________________
Non fa male! Non fa male!
Back to top
View user's profile Send private message
kashani
Advocate
Advocate


Joined: 02 Sep 2002
Posts: 2032
Location: San Francisco

PostPosted: Fri Sep 17, 2004 6:12 pm    Post subject: Reply with quote

fleed wrote:
You probably have but... have you thought about dedicating a machine solely for logging? So you just send your logs over the network to that machine from all the other ones?


That's also something we're thinking about, but has very little bearing on the original question. Besides relative performance of the logger is of greater importance if I'm tossing 30-40 GB of logs to a central server.

kashani
_________________
Will personally fix your server in exchange for motorcycle related shop tools in good shape.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum