-
How to configure disk cache, swap size
I am trying to configure the swap size and disk cache in suse 8.0. My windows set up allows me to do this painlessly, I have made my disk cache size 40meg and I have 256MB memory and find that the swap file is never used and my system runs like lightning. I would apreciate some help in how to do this in suse 8.0 KDE. thanks..
-
I'm a bit hazy on the details so maybe someone else can provide more detail but windows and linux are very different animals.
Windows likes to use a swap file but there is no such thing on Linux. There are swap partitions where the os will swap info out to if it wants to (see this using the command free) but it prefers to use RAM so if there is enough it won't swap out at all. To change the swap partition will obviously mean altering the partitions on your drive.
The Debian site has some very good docs on setting up partitions. www.debian.org.
http://www.debian.org/
Why pirate software when Linux is so cheap?
-
thanks for your reply, I`ll give it a look. i`m more interested though in altering the disk cache size. it seems my system is eating a huge amount of ram for this...and its slowing my system down....good news though...i installed the new nvidia drivers for my ageing tnt2 and now it has 3d capability...excellent..the rpm`s where a breeze to install...thanks
-
Actually there are swap files in Linux too. I have a 256MB swap file I created like thus:
dd if=/dev/zero of=/boot/.swap bs=1024 count=245000
NOTE the above command can take a while to complete, so be patient.
mkswap /boot/.swap
swapon /boot/.swap
Then edit /etc/fstab and change swap like this
/boot/.swap swap swap defaults 0 0
Thats about it.
For more details:
man swapon
man mkswap
-
thanks a lot for the reply..what about the disk cache..i think this is where my problem lies...thanks again
-
The disk cache should actually speed up your system.
The portion of the cache is released whenever a application needs the memory for itself.
I'm not sure on this, but you might have to change some of the kernel source parms and recompile the kernel to change the disk cache allocation.
-
i dont think i`m quite up to that job just yet..i didnt know if there was a program to do this just like cache man in windows or something like that...thanks again i think i can live with it until i gain more knowledge
-
Originally posted by fiery_pheonix:
<STRONG>i dont think i`m quite up to that job just yet..i didnt know if there was a program to do this just like cache man in windows or something like that...thanks again i think i can live with it until i gain more knowledge</STRONG>
Don't feel too bad. I wouldn't know how to do that myself either.
I just have a feeling it's not a easy task to do.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|