Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
is swapspace *really* necessary?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
jimlynch11
Guru
Guru


Joined: 21 Feb 2003
Posts: 590
Location: massachusetts

PostPosted: Tue May 06, 2003 5:46 am    Post subject: is swapspace *really* necessary? Reply with quote

id like to have a fat32 shared partition to transport files between my linux partition and my winxp ntfs (which doesnt have write support). iv tried using partition magic to create a logical partition, but it fails every time.

well i was thinking about it, and i have never once seen my swap space in use on my gkrellm resources monitor. I have 384 MB of ram, and usually i have at least 150 MB of free ram (even when having several desktops and apps going). swapspace is beginning to seem useless to me, because i have never had a problem running out of physical memory.

would it be crazy for me to simply reformat this partition into FAT32, use it as my shared drive, and go on without any swapspace?

any ideas, tips, or possible other solutions are more than welcome
Back to top
View user's profile Send private message
guero61
l33t
l33t


Joined: 14 Oct 2002
Posts: 811
Location: Behind you

PostPosted: Tue May 06, 2003 5:52 am    Post subject: Reply with quote

Anyone correct me if I'm wrong here --

As of (I think) kernel 2.4, you are no longer required to have swap space. If you feel comfortable not having that space (that's your own call) I'd say go for it. If nothing else, you can always reformat it as swap -- kind of a temporary space on your HD for whatever purpose you need at the time.
Back to top
View user's profile Send private message
dice
Guru
Guru


Joined: 21 Apr 2002
Posts: 577

PostPosted: Tue May 06, 2003 5:55 am    Post subject: Reply with quote

It is not necessary to have a swap partition. You can use a file as swap.

Edit: I suppose instructions would be nice.

Code:
entropy root # dd if=/dev/zero of=file.swp bs=1024 count=512000
512000+0 records in
512000+0 records out
entropy root # du -sh file.swp
500M    file.swp
entropy root # mkswap file.swp
Setting up swapspace version 1, size = 524283 kB
entropy root # free
             total       used       free     shared    buffers     cached
Mem:       1035228    1026028       9200          0      97228     640872
-/+ buffers/cache:     287928     747300
Swap:       529160      19500     509660
entropy root # swapon file.swp
entropy root # free
             total       used       free     shared    buffers     cached
Mem:       1035228    1026360       8868          0      97232     641072
-/+ buffers/cache:     288056     747172
Swap:      1041152      19500    1021652


Last edited by dice on Tue May 06, 2003 6:00 am; edited 2 times in total
Back to top
View user's profile Send private message
splooge
l33t
l33t


Joined: 30 Aug 2002
Posts: 636

PostPosted: Tue May 06, 2003 5:57 am    Post subject: Reply with quote

The rule of thumb on older machines was 2x the amount of ram for swap space. Now that your average machine has 512mb ram I think that requirement has been extremely relaxed.

I personally never use more than 120k swap space, I don't even know why I have any space dedicated to it at all. Although I would never argue the fact that disk swap isn't a necessity especially on a server maybe I do believe I will make my next desktop without any swap space at all to see how it goes.
_________________
http://get.a.clue.de
Back to top
View user's profile Send private message
jimlynch11
Guru
Guru


Joined: 21 Feb 2003
Posts: 590
Location: massachusetts

PostPosted: Tue May 06, 2003 6:05 am    Post subject: Reply with quote

ok thanks for the quick replies guys...i think ill give it a go

how do i reformat it as FAT32 within linux? or is that something I have to do from the M$ side?
Back to top
View user's profile Send private message
dice
Guru
Guru


Joined: 21 Apr 2002
Posts: 577

PostPosted: Tue May 06, 2003 6:17 am    Post subject: Reply with quote

jimlynch11 wrote:
ok thanks for the quick replies guys...i think ill give it a go

how do i reformat it as FAT32 within linux? or is that something I have to do from the M$ side?


Code:
*  app-admin/dosfstools
      Latest version available: 2.8-r3
      Latest version installed: [ Not Installed ]
      Size of downloaded files: 64 kB
      Homepage:    ftp://ftp.uni-erlangen.de/pub/Linux/LOCAL/dosfstools/
      Description: dos filesystem tools


Looks like that may help.
Back to top
View user's profile Send private message
jimlynch11
Guru
Guru


Joined: 21 Feb 2003
Posts: 590
Location: massachusetts

PostPosted: Tue May 06, 2003 3:00 pm    Post subject: Reply with quote

thanks dice, ill give it an emerge
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum