LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-20-2005, 07:19 AM   #1
Hum4ngus
LQ Newbie
 
Registered: Jun 2005
Distribution: Gentoo
Posts: 27

Rep: Reputation: 15
Question Gentoo swap not used.


Me and a friend have a gentoo linux box.
we use it for mail server, webhosting etc.
sometimes I upload big files to that server (its in my local network) then i look at my phpinfo to see how many disk space i have left.
now what bothers me is that it used 99% of my ram and 0% swap space.
does anyone know a solution to let gentoo use the swap space?
 
Old 06-20-2005, 07:25 AM   #2
Hammett
Senior Member
 
Registered: Aug 2003
Location: Barcelona, Catalunya
Distribution: Gentoo
Posts: 1,042

Rep: Reputation: 54
AFAIK the use of swap is totally automatical. If the system can function normally without using swap, it will do that. System will only use swap when needed.
Also, keep in mind that that 99% use of RAM includes the cached and buffered ram, so that 99% is normal.
 
Old 06-20-2005, 07:28 AM   #3
Hum4ngus
LQ Newbie
 
Registered: Jun 2005
Distribution: Gentoo
Posts: 27

Original Poster
Rep: Reputation: 15
and when i upload to my server its going at a speed of 1 mpbs (when i upload to another windows system it goes at an average of 5mbps). so i thought uploading to my server went slow because of the 99% use of ram. and when my upload is done, the ram stays at 99%. why is that?
 
Old 06-20-2005, 07:44 AM   #4
Hammett
Senior Member
 
Registered: Aug 2003
Location: Barcelona, Catalunya
Distribution: Gentoo
Posts: 1,042

Rep: Reputation: 54
Linux manages ram way different from windows. Linux will always optimize your ram by using it caching and buffering files, taht's why you always have 99% used ram. When more ram is needed, Linux is freeing cached ram.
File transfers is not a process eating ram (AFAIK). I never had more used ram because I was transfering files with an ftp program, so I think the reason of that slowness is due to other things.
 
Old 06-20-2005, 07:44 AM   #5
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
Because linux uses RAM aggresively. It doesn't free up memory right away like windows. It just caches things until another app needs the space. Its actually more efficient.

I don't know why uploading to the linux server is 5 times slower then uploading to the windows server. What do you have running on the linux server? What kind of disks do you have?

Slower disks equal slower writing time which could make it look like your network is slow.
 
Old 06-20-2005, 08:40 AM   #6
Hum4ngus
LQ Newbie
 
Registered: Jun 2005
Distribution: Gentoo
Posts: 27

Original Poster
Rep: Reputation: 15
I have apache running on my linux box, it has 2 7200 rpm 80 gb drives and the type = "xfs"
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux swap / solaris not appearing as swap in Ubuntu? Erik_the_Red Linux - Newbie 1 07-30-2005 01:57 PM
pkg-config error with emerge -aD gnome-python on Gentoo 2.6.9-gentoo-r6 ghrellin Linux - Software 2 12-22-2004 07:37 PM
How to unmount actual swap and mount a new(bigger) swap space? isaac Linux - Newbie 1 06-06-2004 02:23 AM
Dual boot w/ Gentoo/xp pro vs. gentoo-invalid partition table bobbear Linux - Software 3 02-10-2004 05:28 PM
Difference between Swap Virtrual memory and Swap Parition Nappa Slackware 4 11-27-2003 08:58 PM


All times are GMT -5. The time now is 11:03 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration