On my daily driver Dell Inspiron laptop I have been testing Kubuntu
10.10. Both alphas hammer the memory terribly:
merkat1@dcl:~$ free -m
total used free shared buffers cached
Mem: 2011 1927 83 0 0 1228
-/+ buffers/cache: 699 1312
Swap: 2863 0 2862
merkat1@dcl:~$
Are you asking because of the numbers, or are you asking because your
system is doing something weird (like running slowly?)
You aren't using any swap, so you aren't using all the RAM. The free
output looks like it should look.
Linux tends to cache a lot of data in RAM until you either use that
data again, or a running application needs that RAM for some reason,
then the cached areas are flushed and the freed RAM is allocated to
whatever process uses it.
It's quite normal to see memory usage at near 100%. In fact, you
should learn a little about the output of FREE...
You have 2011 MB, with 1927 MB used. And 1228MB cached. So, that
means you are really only using 1927 - 1228 = 699MB...
Here, this is an old post, (2003) but it explains it fairly well:
http://aplawrence.com/Bofcusm/2118.html
Cheers,
Jeff
--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
07-02-2010, 02:11 PM
Markus Schönhaber
What is hammering my memory?
02.07.2010 16:00, Dotan Cohen:
> On my daily driver Dell Inspiron laptop I have been testing Kubuntu
> 10.10. Both alphas hammer the memory terribly:
> merkat1@dcl:~$ free -m
> total used free shared buffers cached
> Mem: 2011 1927 83 0 0 1228
> -/+ buffers/cache: 699 1312
> Swap: 2863 0 2862
> merkat1@dcl:~$
Hm, only roughy 1/3 of the RAM is actually used by "programs". The vast
majority is used as cache.
[...]
> What might be eating all that memory? Thanks.
I consider what you observe to be pretty normal.
Linux assumes that if you put all those nifty RAM modules into your
machine, you want them to be actually used ;-)
--
Regards
mks
--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
07-02-2010, 02:11 PM
Chan Chung Hang Christopher
What is hammering my memory?
Dotan Cohen wrote:
> On my daily driver Dell Inspiron laptop I have been testing Kubuntu
> 10.10. Both alphas hammer the memory terribly:
> merkat1@dcl:~$ free -m
> total used free shared buffers cached
> Mem: 2011 1927 83 0 0 1228
> -/+ buffers/cache: 699 1312
> Swap: 2863 0 2862
>
> What might be eating all that memory? Thanks.
>
The Linux kernel. It's normal. Most of your chewed up memory is taken up
by the page cache. Nothing to worry about. The kernel will automatically
free up memory as needed. The page cache attempts to save you from
having to operate at hard disk speed (milliseconds) as opposed to RAM
speed (microseconds) so if you want a culprit, it is the kernel. If you
are really not happy about it using memory, set swappiness to zero.
--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
07-02-2010, 02:13 PM
Chan Chung Hang Christopher
What is hammering my memory?
J wrote:
--snip--
Dotan's question and J's answer.
--snip--
>
Bah, too many people reading the list at this time. No need to bother.
/me heads off to sleep.
--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
07-02-2010, 04:20 PM
Dotan Cohen
What is hammering my memory?
On 2 July 2010 17:07, J <dreadpiratejeff@gmail.com> wrote:
> On Fri, Jul 2, 2010 at 10:00, Dotan Cohen <dotancohen@gmail.com> wrote:
>> On my daily driver Dell Inspiron laptop I have been testing Kubuntu
>> 10.10. Both alphas hammer the memory terribly:
>> merkat1@dcl:~$ free -m
>> * * * * * * total * * * used * * * free * * shared * *buffers * * cached
>> Mem: * * * * *2011 * * * 1927 * * * * 83 * * * * *0 * * * * *0 * * * 1228
>> -/+ buffers/cache: * * * *699 * * * 1312
>> Swap: * * * * 2863 * * * * *0 * * * 2862
>> merkat1@dcl:~$
>
> Are you asking because of the numbers, or are you asking because your
> system is doing something weird (like running slowly?)
>
Sorry, I should have been clear. The system is very sluggish.
Switching windows and typing is very slow. There are no video
artefacts so I don't suspect the video drivers. The system runs great
in 9.10.
> Here, this is an old post, (2003) but it explains it fairly well:
>
> http://aplawrence.com/Bofcusm/2118.html
>
Thanks, that was informative. Well, actually, I already did know that,
but it was well said.
--
Dotan Cohen
http://gibberish.co.il
http://what-is-what.com
--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
07-02-2010, 04:21 PM
Dotan Cohen
What is hammering my memory?
On 2 July 2010 17:11, Chan Chung Hang Christopher
<christopher.chan@bradbury.edu.hk> wrote:
> The Linux kernel. It's normal. Most of your chewed up memory is taken up
> by the page cache. Nothing to worry about. The kernel will automatically
> free up memory as needed. The page cache attempts to save you from
> having to operate at hard disk speed (milliseconds) as opposed to RAM
> speed (microseconds) so if you want a culprit, it is the kernel. If you
> are really not happy about it using memory, set swappiness to zero.
>
I'll ask a different question, then. What could be causing the system
to be so sluggish? I see nothing in top that looks to be a hog.
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
894 root 20 0 154m 43m 3432 S 3 2.2 8:59.43 Xorg
14627 merkat1 20 0 125m 25m 15m S 2 1.3 1:53.45 kpackagekitsmar
26773 merkat1 20 0 85464 18m 11m S 2 0.9 0:00.81 plugin-containe
26718 merkat1 20 0 122m 20m 15m S 1 1.0 0:01.03 konsole
5118 merkat1 20 0 243m 34m 22m S 1 1.7 7:52.16 kwin
26747 merkat1 20 0 253m 80m 26m S 1 4.0 0:10.06 firefox-bin
1469 root 20 0 3708 1052 896 S 0 0.1 0:03.69 hald-addon-inpu
1624 merkat1 20 0 297m 67m 29m S 0 3.3 1:59.53 plasma-desktop
1696 merkat1 20 0 2400 1040 728 S 0 0.1 0:07.65 ksysguardd
26737 merkat1 20 0 2620 1132 836 R 0 0.1 0:00.45 top
1 root 20 0 2872 1572 1192 S 0 0.1 0:00.58 init
2 root 20 0 0 0 0 S 0 0.0 0:00.00 kthreadd
3 root 20 0 0 0 0 S 0 0.0 0:00.34 ksoftirqd/0
4 root RT 0 0 0 0 S 0 0.0 0:00.02 migration/0
5 root RT 0 0 0 0 S 0 0.0 0:00.00 watchdog/0
--
Dotan Cohen
http://gibberish.co.il
http://what-is-what.com
--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
07-02-2010, 04:22 PM
Dotan Cohen
What is hammering my memory?
2010/7/2 Markus Schönhaber <ubuntu-users@list-post.mks-mail.de>:
> 02.07.2010 16:00, Dotan Cohen:
>
>> On my daily driver Dell Inspiron laptop I have been testing Kubuntu
>> 10.10. Both alphas hammer the memory terribly:
>> merkat1@dcl:~$ free -m
>> * * * * * * *total * * * used * * * free * * shared * *buffers * * cached
>> Mem: * * * * *2011 * * * 1927 * * * * 83 * * * * *0 * * * * *0 * * * 1228
>> -/+ buffers/cache: * * * *699 * * * 1312
>> Swap: * * * * 2863 * * * * *0 * * * 2862
>> merkat1@dcl:~$
>
> Hm, only roughy 1/3 of the RAM is actually used by "programs". The vast
> majority is used as cache.
>
> [...]
>
>> What might be eating all that memory? Thanks.
>
> I consider what you observe to be pretty normal.
>
> Linux assumes that if you put all those nifty RAM modules into your
> machine, you want them to be actually used ;-)
>
Then what should I check to see what is causing the system to be sluggish?
--
Dotan Cohen
http://gibberish.co.il
http://what-is-what.com
--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
07-02-2010, 04:41 PM
Chan Chung Hang Christopher
What is hammering my memory?
Dotan Cohen wrote:
> On 2 July 2010 17:11, Chan Chung Hang Christopher
> <christopher.chan@bradbury.edu.hk> wrote:
>> The Linux kernel. It's normal. Most of your chewed up memory is taken up
>> by the page cache. Nothing to worry about. The kernel will automatically
>> free up memory as needed. The page cache attempts to save you from
>> having to operate at hard disk speed (milliseconds) as opposed to RAM
>> speed (microseconds) so if you want a culprit, it is the kernel. If you
>> are really not happy about it using memory, set swappiness to zero.
>>
>
> I'll ask a different question, then. What could be causing the system
> to be so sluggish? I see nothing in top that looks to be a hog.
>
Now that one is a hard one to answer.
Is it GTK apps? KDE apps calling GTK apps/dialogs? Switching desktop
spaces or windows?
Those could be caused by dbus troubles or other stuff and they are hard
to track down. Right now, I have a problem with sudo. It works not too
long after start up but afterwards, it stops working. All I can say is,
all these random problems are making me more and more inclined to run
something else other than Ubuntu.
So, where and when do you encounter sluggishness again?
--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
07-02-2010, 04:47 PM
J
What is hammering my memory?
On Fri, Jul 2, 2010 at 12:20, Dotan Cohen <dotancohen@gmail.com> wrote:
> Sorry, I should have been clear. The system is very sluggish.
> Switching windows and typing is very slow. There are no video
> artefacts so I don't suspect the video drivers. The system runs great
> in 9.10.
Usually, sluggishness isn't memory. It's CPU or disk I/O. If your
system becomes sluggish because of RAM utilization, you'll know it
immediately because your hard disk light will stay lit up solid as the
kernel continuously swaps in and out...
However, thats not to be confused very heavy disk I/O which can also
cause sluggishness.
My guess, and always my first guess, is Firefox. When your system
starts acting like that, kill off firefox and see if it doesn't get
back to normal. Most of the time, when I experience this, it's
because of some page with either Flash or Java that just causes FF to
slowly suck the life out of everything around it. IN some cases, it
gets so bad I have to drop to a shell and pkill firefox...
Also, you said you are running 10.10, which is in alpha. It's a
development version... expect bugs, no?
--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users