LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 08-16-2004, 10:58 AM   #1
VeroL
LQ Newbie
 
Registered: Aug 2004
Posts: 3

Rep: Reputation: 0
linux red hat 7.1 kernel variables


Hello,


I have a linux 7.1 kernel 2.4.2-2 machine and i must change the values of certain kernel variables. I have modified the values of some variables that are in the following files:
/usr/src/linux/include/asm/shmparam.h
/usr/src/linux/include/linux/sem.h
/usr/src/linux/include/linux/msg.h

but i don't know what to do in order to have these changes taken into account by the system? Is it absolutely necessary to recompile the kernel (I'd rather not to...)?

Any help would be welcome.
 
Old 08-16-2004, 11:29 AM   #2
Oliv'
Senior Member
 
Registered: Jan 2004
Location: Montpellier (France)
Distribution: Gentoo
Posts: 1,014

Rep: Reputation: 36
Hello,

If you make change in these header files, you need to recompile your kernel... A way not to recompile it is to check wether you can make these changes thanks to /proc directory...

Oliv'
 
Old 08-16-2004, 11:33 AM   #3
VeroL
LQ Newbie
 
Registered: Aug 2004
Posts: 3

Original Poster
Rep: Reputation: 0
What do you mean by "make these changes thanks to /proc directory?" I don't understand, sorry. Are there any special files that i must modify in the /proc directory?
 
Old 08-16-2004, 11:36 AM   #4
amosf
Senior Member
 
Registered: Jun 2004
Location: Australia
Distribution: Mandriva/Slack - KDE
Posts: 1,672

Rep: Reputation: 46
Compiling the kernel is not a big deal. Changing variables, however, might lead to unexpected results. You would have to compile the kernel to make any changes have any effect.

That kernel is also fairly old. You should d/l a more recent kernel, like 2.4.27
 
Old 08-16-2004, 11:48 AM   #5
Oliv'
Senior Member
 
Registered: Jan 2004
Location: Montpellier (France)
Distribution: Gentoo
Posts: 1,014

Rep: Reputation: 36
Well, /proc directory contains some file that can dynamically modify kernel behaviour (and other files that show system info). For example:
Code:
echo 1 > /proc/sys/net/ipv4/icmp_echo_ignore_all
will disable ICMP_ECHO_REPLY, so you'll not respond to ping anymore...
So have a look in /proc/sys/kernel/ ... You may find interesting file. The only problem is to know/find what to put in which file.

Oliv'
 
Old 08-17-2004, 04:54 AM   #6
VeroL
LQ Newbie
 
Registered: Aug 2004
Posts: 3

Original Poster
Rep: Reputation: 0
Thank you, it seems more clear now but I still have questions.

The variables I am looking for are:
msgmap,
msgmax,
msgmnb,
msgseg,
msgssz,
msgtql,
semmap,
semmni,
semmns,
semmsl,
shmmni,
shmmax.

I found files (that contain values) for msgmax, msgmnb, msgmni, shmmni, shmmax in the /proc/sys/kernel directory but I can't find any file for the other variables. Does that mean that the kernel uses default values for them? If yes, is there a way to know these values and if necessary to modify them?
 
Old 08-17-2004, 09:07 AM   #7
Oliv'
Senior Member
 
Registered: Jan 2004
Location: Montpellier (France)
Distribution: Gentoo
Posts: 1,014

Rep: Reputation: 36
Quote:
Does that mean that the kernel uses default values for them?

I think yes... but be careful, for example /proc/sys/kernel/sem file contains 4 values. For other values, if you really need to change them, I think that you have to modify kernel source code and so recompile kernel. But don't worry, kernel recompilation is quite simple

Oliv'
 
  


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
Red Hat custom Kernel compilation mini-How-To for Red Hat 8-9 Thetargos Red Hat 431 04-13-2007 06:19 AM
Red Hat Linux 9 Kernel Development Picture trkc Linux - General 2 09-14-2005 02:51 PM
kernel 2.6.11 on Red Hat Linux 9 x13729388 Linux - Newbie 6 04-11-2005 08:11 AM
Red Hat Enterprise Linux Kernel 2.4.22 ? crystaly Linux - Hardware 0 10-14-2004 03:43 PM
some red hat Linux kernel problem jack1234 Linux - Newbie 0 02-28-2004 01:24 AM

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

All times are GMT -5. The time now is 05:41 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration