LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-03-2002, 06:17 AM   #1
aslamg
LQ Newbie
 
Registered: Aug 2002
Location: Birmingham, UK
Distribution: Redhat 7.3
Posts: 11

Rep: Reputation: 0
Changing Kernel Parameters


Hi

Does anyone out there know how to change kernel parameters and then recompile the kernel ?

I need to do this before I can install Oracle8i.

I am using RH 7.3

Thanks

Aslam
 
Old 09-03-2002, 07:31 AM   #2
hanzerik
Member
 
Registered: Jan 2002
Location: Cheyenne Wyoming
Distribution: Debian/Raspbian/Mint
Posts: 717

Rep: Reputation: 32
A little more specific on your question please. Didnt give us much to go on.
 
Old 09-03-2002, 07:47 AM   #3
neo77777
LQ Addict
 
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Rep: Reputation: 56
cd /usr/src/linux
make menuconfig ----------> re-configure your kernel and recompile it http://tldp.org/HOWTO/Kernel-HOWTO.html
 
Old 09-03-2002, 07:56 AM   #4
aslamg
LQ Newbie
 
Registered: Aug 2002
Location: Birmingham, UK
Distribution: Redhat 7.3
Posts: 11

Original Poster
Rep: Reputation: 0
Changing Kernel Parameters

Hi

I am trying to change the following parameters :
SHMMAX to 128
SHMMIN to 1
SHMMIN to 100
SHMSEG to 10
SEMMNI to 100
SEMMSL to 128
SEMMNS to 128
SEMOPM to 100
SEMVMX 32767

I dont know how to do this in RedHat 7.3 Linux.

In SCO UNIX however I use

/etc/conf/bin/idtune SHMMAX 128
to change the value of the kernel parameter.

I assume that I would have to do something similar ?

Aslam
 
Old 09-03-2002, 08:08 AM   #5
aslamg
LQ Newbie
 
Registered: Aug 2002
Location: Birmingham, UK
Distribution: Redhat 7.3
Posts: 11

Original Poster
Rep: Reputation: 0
Change kernel Parameters

HI

I have had a look at /usr/src/linux but I cannot find where I need to set these values ?

Any help ?

Aslam
 
Old 09-03-2002, 08:34 AM   #6
neo77777
LQ Addict
 
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Rep: Reputation: 56
I thought about different params, sorry. look under
/proc/sys/kernel
there are entries for shm and sem. You can use echo "param">/proc/sys/kernel/file
Let me look how to get it set permanently on boot up, instead of echoing the parameters into /proc
 
Old 09-03-2002, 08:53 AM   #7
dwd
Member
 
Registered: Aug 2002
Distribution: RedHat / Debian / Ubuntu
Posts: 35

Rep: Reputation: 15
On RedHat, there's a handy file called /etc/sysctl.conf into which you can put the options in sysctl format.

Essentially, sysctl format is the same as the /proc/sys/ layout, but with the '/' changed to a '.'.

So for the max SvsV shm segment size, you can either play with the file:

/proc/sys/kernel/shmmax

Or the sysctl variable:

kernel.shmmax

However, exactly what this actually is is beyond my knowledge by quite a way. Some of these cannot be altered, some can be but will have no effect. Some will actually work, and changing others may force a kernel panic.

They're documented, at least usually, in the /usr/src/linux-*/Documentation/sysctl/ directory of your kernel source tree, or in the /usr/share/doc/kernel-*/sysctl/ if you have installed the kernel-doc package.
 
Old 09-03-2002, 08:56 AM   #8
neo77777
LQ Addict
 
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Rep: Reputation: 56
I was going to suggest the same, thanks dwd
 
Old 09-03-2002, 09:36 AM   #9
aslamg
LQ Newbie
 
Registered: Aug 2002
Location: Birmingham, UK
Distribution: Redhat 7.3
Posts: 11

Original Poster
Rep: Reputation: 0
Changing kernel Parmaters

I have had a look at the doc's, but I am not sure whether I will need to create other entries such as

kernel.semmni and other's just to see what would happen.

As this is a test box I can always reinstall.

What do you think ?
 
Old 09-03-2002, 10:37 AM   #10
neo77777
LQ Addict
 
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Rep: Reputation: 56
Why not, as long as it is not a critical situation there is always room for experimentation
 
Old 09-03-2002, 05:16 PM   #11
neo77777
LQ Addict
 
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Rep: Reputation: 56
Forgot to mention, there is no need to double post, if want to correct something in your original post use edit button at the right buttom corner of the post frame.
 
Old 09-04-2002, 02:36 AM   #12
aslamg
LQ Newbie
 
Registered: Aug 2002
Location: Birmingham, UK
Distribution: Redhat 7.3
Posts: 11

Original Poster
Rep: Reputation: 0
Thanks all for your help, I will try and add to this thread what my findings are.
 
Old 01-19-2006, 08:44 PM   #13
huykhoi
LQ Newbie
 
Registered: Nov 2005
Posts: 11

Rep: Reputation: 0
Have I got to reboot my computer to finish the changes after configuring kernel parameters?
 
Old 01-20-2006, 02:57 AM   #14
dwd
Member
 
Registered: Aug 2002
Distribution: RedHat / Debian / Ubuntu
Posts: 35

Rep: Reputation: 15
If you only change the sysctl settings in the file /etc/sysctl.conf, then yes, those are only acted upon on boot. (This file exists on RedHat derivatives, and Debian derivatives - I think it's pretty much universal).

If you only change them in the /proc/sys filesystem, then no, those are acted upon immediately, and the new values are lost when you reboot.

So really, you need to do both.

Incidentally, "cat /proc/sys/....." will give you the current value that's actually being used - I don't think we ever made this clear - stuff in /proc/ isn't on your hard disk, it's a kind of view into the kernel of its current structures and Stuff. Changing the values here (usually with "echo 1 >/proc/sys/..." or similar) actually changes the live setting in the kernel, and not any file at all. Reading the file is actually reading the setting directly from the kernel.

For obvious reasons, you can't create a new setting by creating a new file. Although that'd be a very impressive patch. :-)
 
  


Reply



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
changing objects parameters via getters inside functions in c++? markhod Programming 1 03-08-2005 05:30 AM
Confuguring Kernel Parameters: tgrier Linux - Software 3 11-26-2004 11:12 AM
kernel configuration parameters alaios Fedora 4 11-18-2004 12:33 AM
ALSA kernel 2.6 parameters daste Linux - Software 1 02-25-2004 10:49 AM
Changing Kernel Parameters aslamg Linux - Newbie 2 09-03-2002 05:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:53 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