Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
 

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: Virtual memory/swapspace/blah.< Next Oldest | Next Newest >
Neilo Offline





Group: Members
Posts: 12
Joined: Jan. 2005
Posted: Jan. 22 2005,14:09 QUOTE

Any way to get DSL to run some virtual memory on the HD install? Having a few problems with DSL when doing several things at once (browsing, programming & playing music). Just wondering if there is, although it is probably a stupid question since its supposed to be a liveCD not an HD install, but thought it would be worth asking.
Back to top
Profile PM 
mikshaw Offline





Group: Members
Posts: 4856
Joined: July 2004
Posted: Jan. 22 2005,20:02 QUOTE

Creating a Linux swap partition on the HD should work with either liveCD or HD install, although if the HD install is already there you'll probably need to edit fstab in order to use the swap.

--------------
http://www.tldp.org/LDP/intro-linux/html/index.html
Back to top
Profile PM WEB 
tronik Offline





Group: Members
Posts: 182
Joined: Dec. 2004
Posted: Jan. 22 2005,21:34 QUOTE

Another alternative to using a partition as a swapfile is to actually use a file as a swapfile.

First create the file, like so,
'dd if=/dev/zero of=dsl.swp count=64000 bs=1024'
will create a 64 megabyte file. (for 64 megs of swap space)

'mkswap file'
'swapon file'
Then you should have virtual memory, (look see with 'free')

This is something you can do if you're not worried about getting into the technicalities of what arrangement of partitions is the best for optimal performace on a machine. This works just nicely for some swap space =)

Enjoy.


--------------
-william
atlanta, GA, USA

DSL 1.0+2.4.27/sata : P4 2.4norwood : 512ddr2 : nvgf4ti4200-64 : 128mbLexar Jumpdrive Elite
Back to top
Profile PM WEB 
Neilo Offline





Group: Members
Posts: 12
Joined: Jan. 2005
Posted: Jan. 22 2005,21:45 QUOTE

Thanks! Now that should hopefully solve the poor performance when doin several things. By any chance I wont need to put the mkswap...etc...into a script will i?
Back to top
Profile PM 
tronik Offline





Group: Members
Posts: 182
Joined: Dec. 2004
Posted: Jan. 22 2005,21:48 QUOTE

Yes, if you plan on utilizing it as swap you'll need to do it yourself unless you can put it in /etc/fstab

Commands to run at startup can be done in /opt/bootlocal.sh ;)

Make sure you're backing up if you want it to automatically do it.
In order to stifle a race condition i always like to give it a chance to figure out whats going on, so an optional 'sleep 1' in between commands might be useful, even if it does take an extra second =)


--------------
-william
atlanta, GA, USA

DSL 1.0+2.4.27/sata : P4 2.4norwood : 512ddr2 : nvgf4ti4200-64 : 128mbLexar Jumpdrive Elite
Back to top
Profile PM WEB 
4 replies since Jan. 22 2005,14:09 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

 
reply to topic new topic new poll
Quick Reply: Virtual memory/swapspace/blah.

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code