LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 09-23-2003, 03:49 PM   #1
mfeat
Member
 
Registered: Aug 2003
Location: Akron, OH
Distribution: Fedora Core 3
Posts: 185

Rep: Reputation: 30
Easy Question for anyone with Redhat V9


I was adjusting the bdflush parameters with the Kernel Tuning app and figured out, too late, that there's no "reset to default" function. It's so unlike me to mess with something like that without recording the initial values first, but I did.

I would greatly appreciate it if someone could tell me the default values for Redhat V9, the app is on the menu under System Tools -> More System Tools -> Kernel Tuning. Within the app, it's under Virtual Memory -> bdflush. The parameters are:

Activate bdflush when % dirty
Dirty blocks to write per wake cycle
Try to reclaim n buffers on refill
Dirty buffer threshold
Time to age normal buffer before flush
Time to age superblock before flush
 
Old 09-23-2003, 04:10 PM   #2
usernamenumber
Member
 
Registered: Sep 2003
Location: Somerville, MA
Distribution: Fedora/RHEL currently. Red Hat, Slackware, Debian, SuSe and Mandrake at other times
Posts: 104

Rep: Reputation: 15
Re: Easy Question for anyone with Redhat V9

Activate bdflush when % dirty = 50
Dirty blocks to write per wake cycle = 500
Try to reclaim n buffers on refill = 0
Dirty buffer threshold = 0
Time to age normal buffer before flush = 3000
Time to age superblock before flush = 80

Have fun. ;P
 
Old 09-23-2003, 04:21 PM   #3
mfeat
Member
 
Registered: Aug 2003
Location: Akron, OH
Distribution: Fedora Core 3
Posts: 185

Original Poster
Rep: Reputation: 30
Thank-you!
 
Old 09-23-2003, 05:13 PM   #4
usernamenumber
Member
 
Registered: Sep 2003
Location: Somerville, MA
Distribution: Fedora/RHEL currently. Red Hat, Slackware, Debian, SuSe and Mandrake at other times
Posts: 104

Rep: Reputation: 15
Also, the following occurs to me:

The redhat-config-proc tool you were using makes changes to the /proc/sys directory. Proc and all of its subdirs are not actually resident on your hard disk, but are generated dynamically by the kernel in RAM. As such, any changes you make do not survive a reboot. The way changes are made persistent across reboots is to modify /etc/sysctl.conf, which is referenced at boot time by rc.sysinit. This is (I assume) what redhat-config-proc does when you tell it to save settings.

In other words, if you back up the default sysctl.conf file, any changes you make can be easily undone by restoring /etc/sysctl.conf and rebooting the system. No need for tedious recording of all the values you change.

The contents of the default /etc/sysctl.conf file are attached for your convenience.

-----------
# Kernel sysctl configuration file for Red Hat Linux
#
# For binary values, 0 is disabled, 1 is enabled. See sysctl(8) and
# sysctl.conf(5) for more details.

# Controls IP packet forwarding
net.ipv4.ip_forward = 0

# Controls source route verification
net.ipv4.conf.default.rp_filter = 1

# Controls the System Request debugging functionality of the kernel
kernel.sysrq = 0

# Controls whether core dumps will append the PID to the core filename.
# Useful for debugging multi-threaded applications.
kernel.core_uses_pid = 1

Last edited by usernamenumber; 09-23-2003 at 05:16 PM.
 
Old 09-24-2003, 11:45 AM   #5
mfeat
Member
 
Registered: Aug 2003
Location: Akron, OH
Distribution: Fedora Core 3
Posts: 185

Original Poster
Rep: Reputation: 30
Noted.

One issue that came up when I entered the values:

Activate bdflush when % dirty = 50
Dirty blocks to write per wake cycle = 500
Try to reclaim n buffers on refill = 0
Dirty buffer threshold = 0
Time to age normal buffer before flush = 3000
Time to age superblock before flush = 80

is that the two that were zero automatically changed to 64 & 256 respectively, and the superblock flush changed from 80 to 100.

Another thing I noticed is that there are 7 entries on the bdflush
line in /etc/sysctl.conf even though the there are only 6 shown in the app.

vm.bdflush =50 500 64 256 500 3000 100
 
Old 09-24-2003, 12:02 PM   #6
usernamenumber
Member
 
Registered: Sep 2003
Location: Somerville, MA
Distribution: Fedora/RHEL currently. Red Hat, Slackware, Debian, SuSe and Mandrake at other times
Posts: 104

Rep: Reputation: 15
Interesting. Well, I'm afraid I'm not enough of a kernel tweaking expert to offer much more than this:

1) If you replace sysctl.conf and reboot, you'll definately come back up with the out-of-the-box defaults.

2) The reference guide (or maybe the customization guide) has a chapter that covers just about every /proc/sys/* file, what it's for and what values/syntax it accepts. Both guides are available online in the docs and support section of Red Hat's website.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Easy question snowbird122 Linux - Newbie 2 09-12-2004 12:10 AM
Easy question Brill Linux - Software 1 06-11-2004 03:52 PM
Easy Question?? BlandoCal Linux - Hardware 1 10-05-2003 11:03 PM
Another Easy Question relic5 Linux - Software 3 09-28-2003 01:38 PM
Very Easy Question linuxcam Linux - General 4 12-20-2001 01:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 09:51 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration