Solved

How do I make sure event are written immediately and not buffered in Centos 5.x

Posted on 2011-02-28
3
261 Views
Last Modified: 2012-05-11
I believe that Centos buffers logs for many services (it might be the service itself, I don't know) and I want to make sure that when Apache sees an error it is written right away, the same with sshd,e tc.

Is there a way to change the buffering settings?
0
Comment
Question by:rduval
  • 2
3 Comments
 
LVL 12

Expert Comment

by:mccracky
ID: 35008144
Assuming you have the ext3 file system, you are going to be looking at the "commit" interval.  By default, it is set to sync data to the disk every five (5) seconds.  

You can change that in /etc/fstab for partitions that aren't root, but need to add the option to the kernel line (in GRUB) for the root partition.  

You probably also should read this:
http://www.westnet.com/~gsmith/content/linux-pdflush.htm
0
 

Author Comment

by:rduval
ID: 35010832
What would that line be in GRUB (in the .conf I presume?)
0
 
LVL 12

Accepted Solution

by:
mccracky earned 500 total points
ID: 35011144
to change it off the default 5 seconds, it should just be appending "rootflags=commit=3" or the like to the end of the kernel line.  See, for example: http://blog.loxal.net/2008/01/tuning-ext3-for-performance-without.html
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

831 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question