The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Converting Binary decimal coded values to Ascii Values gaur.deepti UNIX for Advanced & Expert Users 3 04-02-2008 01:33 PM
kernel parameter values mhbd UNIX for Dummies Questions & Answers 1 03-21-2008 07:50 AM
max number of slabs per kernel module (kernel 2.6.17, suse) Brendan Kennedy SuSE 4 01-23-2008 09:40 AM
kernel values related to mmap tobsinte High Level Programming 4 07-20-2007 07:15 AM
Kernel panic - not syncing: cannot execute a PAE-enabled kernel on PAE-less CPU dave043 Linux 2 05-10-2007 02:57 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 04-03-2001
dman110168 dman110168 is offline
Registered User
  
 

Join Date: Oct 2000
Location: Boston
Posts: 13
Question

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 (permalink)  
Old 04-04-2001
alwayslearningunix
Guest
  
 

Posts: n/a
Bits: 0 [Banking]
What flavour of UNIX are you running?
  #3 (permalink)  
Old 04-04-2001
dman110168 dman110168 is offline
Registered User
  
 

Join Date: Oct 2000
Location: Boston
Posts: 13
Sun Solaris 7
  #4 (permalink)  
Old 04-15-2001
mib mib is offline
Registered User
  
 

Join Date: Jan 2001
Location: Calicut
Posts: 228
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 (permalink)  
Old 04-15-2001
Neo's Avatar
Neo Neo is online now Forum Staff  
Administrator
  
 

Join Date: Sep 2000
Location: Asia Pacific
Posts: 6,731
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]
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 03:45 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0