Changing Values in the Kernel

Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Changing Values in the Kernel
# 1  
Old 04-03-2001

I'm getting fork failed errors. I was told I needed to upgrade my swap space but also need to change some values for some parameters in the kernel and add 2 new parameters. I not sure of the correct way of doing this.
Thanks in Advance
# 2  
Old 04-04-2001
What flavour of UNIX are you running?
# 3  
Old 04-04-2001
Sun Solaris 7
# 4  
Old 04-15-2001
in Linux it is pretty easy:

this example will give you extra 32MB of swap space than you already have(use free command to see existing swap spce)

# dd if=/dev/zero of=/example/moreswap bs=1024 count=32768.
this makes an empty 32 MB file you can use for swap space.

# mkswap /example/moreswap
you have now turned "moreswap" empty file into 32MB of additional swap space.

Now to use it:
#swapon /example/moreswap

check to see how much is available by running the 'free' command. you will see you have 32MB more than you had before.

If you want this to be persistent across boots, edit the /etc/rc.d/rc.local file. add these lines to the bottom of the file:

swapon /example/moreswap

To disable:
# swapoff /example/moreswap
To remove:
# rm /moreswap

in solaris instead of this you can use(you should confirm it by some other way)

# mkfile 32m /example/moreswap
# swap -a /example/moreswap

if you want this to be persistent across boots, add following lines to your filesystem table

/example/moreswap      -      -      swap      -      no      -

hope this will help you
# 5  
Old 04-15-2001
Not sure why you need to change the kernel to setup more swap space. This is normally done independent of the kernel. mib gives an example of adding more (filesystem)swap in this thread; notice that a kernel rebuild is not required. Same is true for most OS. You create swap space and turn it on using system level utilities.

Note, there are other ways to add swap, including disk partition raw swap space. You create this with a disk formating utilility (such as fdisk) and 'turn-it-on' in a similar manner.

[Edited by Neo on 04-15-2001 at 04:25 PM]
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Changing values in the first column.

I have a file which looks like this: 1 3 5 5 3 2 1 5 3 6 3 2 0 5 6 3 2 9 0 4 5 6 4 9 In the first column, instead of 1, I want to place +1 and instead of 0, I want -1 to be put. So the generated file should look like this: +1 3 5 5 3 2 +1 5 3 6 3 2 -1 5 6 3 2 9 -1 4 5 6 4 9 Just to... (9 Replies)
Discussion started by: shoaibjameel123
9 Replies

2. HP-UX

Changing Dynamic Tunable parameters in the kernel

To fix an "issue" we're having I need to update SHMMAX from 1GB to 2Gb, it's a dynamic parameter so am just wondering how flexible it really is. As Oracle is running on the server do I need to shut that down to change the parameter or will it just take the change on the fly? Also how would I... (6 Replies)
Discussion started by: Turlock
6 Replies

3. Shell Programming and Scripting

Changing and swapping the Values in the files

Hi all we have a file ONE like this 12345 98765 67222 74252 76991 90091 and we have one more file TWO like huiiii 67jjjj u988 99999 uj99j 98765 hujg 7yhh ij999 78688 ijo99 74252 Now i want create THREE file which is like huiiii 67jjjj u988 12345 uj99j 98765 hujg 7yhh ij999... (2 Replies)
Discussion started by: polineni
2 Replies

4. Shell Programming and Scripting

sed/awk changing values

Can somebody help me out and provide me with a SED or AWK solution that converts TO_DATE CLAUSE -> TIMESTAMP I need to keep the PARTION value (HISTORY_20110417) and DATE/TIME value (2011-04-18 00:00:00) the same for every line PARTITION HISTORY_20110417 VALUES LESS THAN (TO_DATE('... (3 Replies)
Discussion started by: BeefStu
3 Replies

5. Solaris

check the utilization of kernel values ?

Any native Solaris commands/scripts to check the utilization of kernel tables/limits in Solaris ? (like equivalent command in HPUX is kcusage) (2 Replies)
Discussion started by: thamurali
2 Replies

6. Solaris

Which file is read by kernel to set its default system kernel parameters values?

Hi gurus Could anybody tell me which file is read by kernel to set its default system kernal parameters values in solaris. Here I am not taking about /etc/system file which is used to load kernal modules or to change any default system kernal parameter value Is it /dev/kmem file or something... (1 Reply)
Discussion started by: girish.batra
1 Replies

7. Shell Programming and Scripting

Changing values with increasing numbers!

Hi all, i have a command named "vmchange" and i must use it for thousands of data which must be changed. For example, vmchange -m N0001 vmchange -m N0002 vmchange -m N0003 ... ... vmchange -m N0100 How can i do that in awk or bash script? Any help would be greatly appreciated.. ... (5 Replies)
Discussion started by: oduth
5 Replies

8. UNIX for Dummies Questions & Answers

kernel parameter values

Hi All Need to find kernel parameter values of our UNIX box. /filesys1/tmp>uname -a HP-UX hps1_dc B.11.11 U 9000/800 1681349356 unlimited-user license /filesys1/CDBLprodrun/tmp> Can anyone help me with the cmd to find kernel parameter values? Thanks in advance. (1 Reply)
Discussion started by: mhbd
1 Replies

9. Programming

kernel values related to mmap

Hi there... I am maitaining an archaic application which is using mmap for file transfering/routing. There are over 500 instances of the application running without any issues for almost 2 decade. Now, the problem is that the on one particular server (HP-UX 11), sometimes the mmap is failing... (4 Replies)
Discussion started by: tobsinte
4 Replies
Login or Register to Ask a Question