Operating System - Linux
1753536 Members
5485 Online
108795 Solutions
New Discussion юеВ

kernel parameters in linux

 
Nagashayana S.H.
Occasional Contributor

kernel parameters in linux

1)How can we configure kernel parameters in linux os?
2)how can we know how much memory space is required by each individual part in linux os?
5 REPLIES 5
Stuart Browne
Honored Contributor

Re: kernel parameters in linux

1) Kernel parameters are generally configured using the '/proc/sys/' structure, and 'sysctl' (see the man page and '/etc/sysctl.conf').

Some parameters can't be done this way, and need to be overridden using the boot loader (usually grub), using the 'append' lines in '/boot/grub/grub.conf'.

What settings are you wanting to tweak?

2) You're wondering how much memory individual componants of the kernel are taking up, as against how much a process is?

Using 'ps' is good for most processes. If you're running a modular kernel, 'lsmod' is your friend for finding out how much individual drivers are using.

If you're running a monolithic kernel, err, well.. Not sure.. ;)
One long-haired git at your service...
Steven E. Protter
Exalted Contributor

Re: kernel parameters in linux

Shalom,

There are some commonalities between distributions.I will speak of what I know which is Red Hat based Linux.

/etc/sysctl.conf contains permanent kernel parameters which you can customize to your hearts content.

Overwriting individual files in
/proc/sys/kernel

Can temporarily change things.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Tor-Arne Nostdal
Trusted Contributor

Re: kernel parameters in linux

Perhaps you could state which linux os you run...?

The answers you could expect to get without knowing more - is therefore very general answers.

Some os's have system administrator tools which give you a user interface to changing system settings.

You need to specify a bit more to get more specific answers

/Tor-Arne
I'm trying to become President of the state I'm in...
Sitarama.H.N
Advisor

Re: kernel parameters in linux

Hi,
Please go through this below link this may help u in configuring the kernel parameters

http://linux.die.net/man/8/sysctl
Jeeshan
Honored Contributor

Re: kernel parameters in linux

1)to change kernel parameters in linux OS edit file in /etc/sysctl.conf and you can run it online.

2)What is your point? Is it application or any other software?
if It's oracle DB server it will use most of your memory.
Others application use their needed.

But you can minimize your memory consumption by deactivating background services which is not needed. Unnecessary background services will occupied your system resources.
a warrior never quits