 |
|
 |
|
|
 |
linux eats up soo much memory |
 |
 |
|
|
03-14-05 07:45 AM
i currently have 2 machines running fedora core release 3, the first
one acts a file server and the second one acts as a router with IP
masq.
After just booting both machines up and running the 'top' command
yields
<router computer>
Mem: 288672k total, 271812k used, 16860k free, 2632k
buffers
<server computer>
Mem: 386156k total, 382552k used, 3604k free, 656k
buffers
both computers as you can see contain alot of RAM, yet it gets eaten
up sooo fast from just a BOOT!. both machines have httpd setup, and
after lookin at the %mem column on the 'top' command, i see that the
user apache has several processes running httpd.
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
5875 apache 17 0 26676 12m 8072 S 0.0 3.4 0:00.00 httpd
5876 apache 16 0 26676 12m 8068 S 0.0 3.4 0:00.00 httpd
5877 apache 16 0 26676 12m 8068 S 0.0 3.4 0:00.00 httpd
5878 apache 16 0 26676 12m 7992 S 0.0 3.4 0:00.00 httpd
5879 apache 20 0 26676 12m 7992 S 0.0 3.4 0:00.00 httpd
5880 apache 20 0 26676 12m 7992 S 0.0 3.4 0:00.00 httpd
5881 apache 20 0 26676 12m 7992 S 0.0 3.4 0:00.00 httpd
5882 apache 20 0 26676 12m 7992 S 0.0 3.4 0:00.00 httpd
This behaviour is similar on both machines, why is httpd running so
many times??
[ Post a follow-up to this message ]
|
|
|
 |
|
 |
|
 |
|
|
 |
Re: linux eats up soo much memory |
 |
 |
|
|
03-14-05 07:45 AM
"Avi" <subhas85@gmail.com> wrote in message
news:fb765208.0503132003.1f41dfcd@posting.google.com...
> i currently have 2 machines running fedora core release 3, the first
> one acts a file server and the second one acts as a router with IP
> masq.
> After just booting both machines up and running the 'top' command
> yields
>
> <router computer>
> Mem: 288672k total, 271812k used, 16860k free, 2632k
> buffers
>
> <server computer>
> Mem: 386156k total, 382552k used, 3604k free, 656k
> buffers
>
> both computers as you can see contain alot of RAM, yet it gets eaten
> up sooo fast from just a BOOT!. both machines have httpd setup, and
> after lookin at the %mem column on the 'top' command, i see that the
> user apache has several processes running httpd.
That's how linux runs , especially if you are running linux with a GUI .
Basically the file system and memory allocation and usage is totally
different to a Windows System and uses up most available memory.
Even when I run my system with 512 Mb of Ram , FC3 uses up something like
450 Mb of Ram just for running a GUI and doing minor stuff.
196 Mb of Ram is the minimum recommend requirement for FC3 running a GUI ,
256 Mb is desirable , but I have found that 512 Mb is best.
If you can , try adding more Ram to bring it up to 512 Mb.
--
Sandgroper
----------------------------------
Remove KNICKERS to Email
steveray@KNICKERSiinet.net.au
[ Post a follow-up to this message ]
|
|
|
 |
|
 |
|
 |
|
|
 |
Re: linux eats up soo much memory |
 |
 |
|
|
03-14-05 12:45 PM
It's not what it seems - Linux expands itself to use whatever memory is
available to it, then contracts itself if you need the memory for data.
That's actually a good, not bad, feature. You'll never see Windoze
doing that.
Avi wrote:
> i currently have 2 machines running fedora core release 3, the first
> one acts a file server and the second one acts as a router with IP
> masq.
> After just booting both machines up and running the 'top' command
> yields
>
> <router computer>
> Mem: 288672k total, 271812k used, 16860k free, 2632k
> buffers
>
> <server computer>
> Mem: 386156k total, 382552k used, 3604k free, 656k
> buffers
>
> both computers as you can see contain alot of RAM, yet it gets eaten
> up sooo fast from just a BOOT!. both machines have httpd setup, and
> after lookin at the %mem column on the 'top' command, i see that the
> user apache has several processes running httpd.
>
> PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
> 5875 apache 17 0 26676 12m 8072 S 0.0 3.4 0:00.00 httpd
> 5876 apache 16 0 26676 12m 8068 S 0.0 3.4 0:00.00 httpd
> 5877 apache 16 0 26676 12m 8068 S 0.0 3.4 0:00.00 httpd
> 5878 apache 16 0 26676 12m 7992 S 0.0 3.4 0:00.00 httpd
> 5879 apache 20 0 26676 12m 7992 S 0.0 3.4 0:00.00 httpd
> 5880 apache 20 0 26676 12m 7992 S 0.0 3.4 0:00.00 httpd
> 5881 apache 20 0 26676 12m 7992 S 0.0 3.4 0:00.00 httpd
> 5882 apache 20 0 26676 12m 7992 S 0.0 3.4 0:00.00 httpd
>
> This behaviour is similar on both machines, why is httpd running so
> many times??
[ Post a follow-up to this message ]
|
|
|
 |
|
 |
|
 |
|
|
 |
Re: linux eats up soo much memory |
 |
 |
|
|
03-14-05 12:45 PM
Avi wrote:
> i currently have 2 machines running fedora core release 3, the first
> one acts a file server and the second one acts as a router with IP
> masq.
> After just booting both machines up and running the 'top' command
> yields
>
> <router computer>
> Mem: 288672k total, 271812k used, 16860k free, 2632k
> buffers
>
> <server computer>
> Mem: 386156k total, 382552k used, 3604k free, 656k
> buffers
>
> both computers as you can see contain alot of RAM, yet it gets eaten
> up sooo fast from just a BOOT!. both machines have httpd setup, and
> after lookin at the %mem column on the 'top' command, i see that the
> user apache has several processes running httpd.
It is hopeless. You better get a machine with 64 Gigabytes RAM. That is
why no one can afford to run Linux anymore.
But seriously, when I first got a personal computer that unfortunately had
Windows 95 on it, I looked at a little book in a bookstore that was called
something like "Internet for Dummies." It was obsolete at the time, so I
did not buy it. But one of the things it said was that on a mailing list
or message board you should not post anything until you had read every
message on the list or board for _at least_ the preceeding week or two so
that you would know the etiquette of that particular community, and see
the Frequently Asked Questions.
This one comes up every week and must surely be in the FAQ by now. The FAQ
comes out every week as Linux Frequently Asked Questions with Answers (in
6 parts) on the comp.os.linux.misc, news.answers, and comp.answers newsgroup
s.
--
.~. Jean-David Beyer Registered Linux User 85642.
/V\ PGP-Key: 9A2FC99A Registered Machine 241939.
/( )\ Shrewsbury, New Jersey http://counter.li.org
^^-^^ 07:35:00 up 53 days, 15:53, 4 users, load average: 4.34, 4.25, 4.19
[ Post a follow-up to this message ]
|
|
|
 |
|
 |
|
 |
|
|
 |
Re: linux eats up soo much memory |
 |
 |
|
|
03-14-05 10:45 PM
subhas85@gmail.com (Avi) writes:
>i currently have 2 machines running fedora core release 3, the first
>one acts a file server and the second one acts as a router with IP
>masq.
>After just booting both machines up and running the 'top' command
>yields
>
><router computer>
>Mem: 288672k total, 271812k used, 16860k free, 2632k
>buffers
You need to understand things about how Unix operating systems
handle memory allocate to realize that these values are not
in any way unusual.
Most Unix (certainly anything in the System V Release 4 family
as well as Linux) systems are implemented using the assumption
that free (as in available) memory is pretty silly, so the
operating system will use all DRAM (up to a point) that is not
currently being used by applications to cache file data. As
soon as an application requires more DRAM, the OS will flush
any dirty file data back to disk and assign the pages to the
application (non-dirty file data will just be discarded and
the page given to the requesting application after being zero'ed).
This utilization of otherwise-unused DRAM to cache file data
generally causes a significant improvement in responsiveness and
throughput.
>
>both computers as you can see contain alot of RAM, yet it gets eaten
>up sooo fast from just a BOOT!. both machines have httpd setup, and
>after lookin at the %mem column on the 'top' command, i see that the
>user apache has several processes running httpd.
>
> PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
> 5875 apache 17 0 26676 12m 8072 S 0.0 3.4 0:00.00 httpd
> 5876 apache 16 0 26676 12m 8068 S 0.0 3.4 0:00.00 httpd
> 5877 apache 16 0 26676 12m 8068 S 0.0 3.4 0:00.00 httpd
> 5878 apache 16 0 26676 12m 7992 S 0.0 3.4 0:00.00 httpd
> 5879 apache 20 0 26676 12m 7992 S 0.0 3.4 0:00.00 httpd
> 5880 apache 20 0 26676 12m 7992 S 0.0 3.4 0:00.00 httpd
> 5881 apache 20 0 26676 12m 7992 S 0.0 3.4 0:00.00 httpd
> 5882 apache 20 0 26676 12m 7992 S 0.0 3.4 0:00.00 httpd
>
>This behaviour is similar on both machines, why is httpd running so
>many times??
It's not. What httpd does is create multiple threads of execution
all within a single address space. So the resident set size (RES)
of apache is just 12 megabytes, but it is running 8 threads within
that 12 m. For 2.4 kernels with Linux threads, you'll see what
look like process entries in ps (as above) but are really threads.
For 2.6 kernels with NPTL, you'll only see one entry for httpd.
It doesn't look like you have any memory pressure problems at all.
scott
[ Post a follow-up to this message ]
|
|
|
 |
|
 |
|
 |
|
|
 |
Re: linux eats up soo much memory |
 |
 |
|
|
03-14-05 10:45 PM
On Sun, 13 Mar 2005 20:03:32 -0800, Avi mumbled something like this:
> i see that the user apache
> has several processes running httpd.
Yes, that is so that if one process is serving a request when another
request arrives, there is a spare process to handle it. The default,
minimum number of httpd servers is actually quite small. Busy servers
could show hundreds of httpd processes.
--
Rinso
/\
/ \
/wizz\
~~~~~~~~~~~~
[ Post a follow-up to this message ]
|
|
|
 |
|
|
|
|
Sponsored Links |
 |
 |
|
|
 |
All times are GMT. The time now is 11:09 AM. |
 |
|
|
 |
|
 |
|
|
 |
|
Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
|
|
|
|
Medical and Health forum | Computer Games Reviews | Graphics design forum
|
 |
|
 |
|