Gentoo Forums
Gentoo Forums
Quick Search: in
The memory footprint of my laptop has dropped by 23%
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
Shining Arcanine
Veteran
Veteran


Joined: 24 Sep 2009
Posts: 1110

PostPosted: Sun Mar 21, 2010 8:48 pm    Post subject: The memory footprint of my laptop has dropped by 23% Reply with quote

When I ran KDE 4.3.5, the memory footprint of my laptop was 180MB when I would log in via KDM and open konsole to run "watch -n 0.5 free". After I upgraded to KDE 4.4.0, this increased to about 203MB. This alarmed me, so I put stuff I used to compile into the kernel into modules to reduce the system's memory footprint, which reduced it to 193MB. This remained largely uncharged for a while. I run my system with packages from the testing tree and frequently apply updates, so while I do not know what change caused this, today I logged into my system and noticed that memory usage had dropped by 23% to 148MB. I remember recently seeing updates recompile some things with -static-libs USE flags, but I did not notice a difference then, so I didn't think there had been any change.

This is a very pleasant surprise, especially since it brings KDE's memory footprint into territory that I believe it has not occupied since KDE 3.5.x. Does anyone know where the change in memory utilization originated?
Back to top
View user's profile Send private message
Shining Arcanine
Veteran
Veteran


Joined: 24 Sep 2009
Posts: 1110

PostPosted: Mon Mar 22, 2010 10:32 pm    Post subject: Reply with quote

It just dropped another 6% to 139MB at boot. I do not know what the latest updates are doing behind the scenes, but I like it. :D
Back to top
View user's profile Send private message
Shining Arcanine
Veteran
Veteran


Joined: 24 Sep 2009
Posts: 1110

PostPosted: Tue Mar 23, 2010 1:06 am    Post subject: Reply with quote

I figured out why the memory footprint of my laptop dropped so significantly. Apparently, one of the updates switched opengl to the x11 driver, so Nvidia's GLX driver was not being loaded and compositing was off. :/
Back to top
View user's profile Send private message
Dont Panic
Apprentice
Apprentice


Joined: 20 Jun 2007
Posts: 226
Location: SouthEast U.S.A.

PostPosted: Tue Mar 23, 2010 2:22 am    Post subject: Reply with quote

But how could you not notice right away that your wobbly windows weren't working? :D
Back to top
View user's profile Send private message
Cyker
Veteran
Veteran


Joined: 15 Jun 2006
Posts: 1427

PostPosted: Tue Mar 23, 2010 9:37 am    Post subject: Reply with quote

Aww :(

(Compositing needs 50MB RAM??!! :shock:)
Back to top
View user's profile Send private message
Sadako
Advocate
Advocate


Joined: 05 Aug 2004
Posts: 3744
Location: sleeping in the bathtub

PostPosted: Tue Mar 23, 2010 2:44 pm    Post subject: Reply with quote

Cyker wrote:
Aww :(

(Compositing needs 50MB RAM??!! :shock:)
Try nouveau. :P

Seriously, if it bothers you, the open source graphics stack should have a lighter memory footprint than the binary blob, and nouveau being KMS-only should help too, on my ati hardware enabling KMS reduces memory consumption fairly significantly.
_________________
"You have to invite me in"
Back to top
View user's profile Send private message
Dont Panic
Apprentice
Apprentice


Joined: 20 Jun 2007
Posts: 226
Location: SouthEast U.S.A.

PostPosted: Tue Mar 23, 2010 3:41 pm    Post subject: Reply with quote

That brings up an interesting question.

How much of the 50 MB was due to nvidia-drivers, and how much was due to compositing?

My nvidia module only shows 10 MB used (based on the output of lsmod).
Back to top
View user's profile Send private message
Shining Arcanine
Veteran
Veteran


Joined: 24 Sep 2009
Posts: 1110

PostPosted: Tue Mar 23, 2010 6:43 pm    Post subject: Reply with quote

Dont Panic wrote:
But how could you not notice right away that your wobbly windows weren't working? :D


I do not have wobbly windows enabled in KDE. I tried it at one point, but the wobbles felt unnatural and I did not have time to calibrate it to have a more natural feel, so I just left it off.
Back to top
View user's profile Send private message
Cyker
Veteran
Veteran


Joined: 15 Jun 2006
Posts: 1427

PostPosted: Tue Mar 23, 2010 8:38 pm    Post subject: Reply with quote

Hopeless wrote:
Cyker wrote:
Aww :(

(Compositing needs 50MB RAM??!! :shock:)
Try nouveau. :P

Seriously, if it bothers you, the open source graphics stack should have a lighter memory footprint than the binary blob, and nouveau being KMS-only should help too, on my ati hardware enabling KMS reduces memory consumption fairly significantly.


I thought he was talking about KDE's footprint, not the X driver footprint!
Back to top
View user's profile Send private message
Sadako
Advocate
Advocate


Joined: 05 Aug 2004
Posts: 3744
Location: sleeping in the bathtub

PostPosted: Tue Mar 23, 2010 8:52 pm    Post subject: Reply with quote

Cyker wrote:
I thought he was talking about KDE's footprint, not the X driver footprint!
Yeah, so did he at first, but you were both wrong.

:P
_________________
"You have to invite me in"
Back to top
View user's profile Send private message
Dont Panic
Apprentice
Apprentice


Joined: 20 Jun 2007
Posts: 226
Location: SouthEast U.S.A.

PostPosted: Tue Mar 23, 2010 10:32 pm    Post subject: Reply with quote

This thread piqued my curiosity to see how much swapping between nv and nvidia would affect a non-compositing wm.

I use simple, good-old-fashioned, non-compositing IceWM as my primary window manager.

I'm using x11-drivers/nvidia-drivers-190.53-r1 with a nVidia GeForce 7600 GS video card.

I rebooted clean once to nvidia-drivers, then reconfigured to use the nv drivers (making sure the nvidia module was now blacklisted), and rebooted again.

Both had 24 bit color depth at 1024x768 resolution.

In my simpler non-compositing test, the nvidia-drivers boot required 14,728 kbyte more memory than the nv drivers boot.
Back to top
View user's profile Send private message
Shining Arcanine
Veteran
Veteran


Joined: 24 Sep 2009
Posts: 1110

PostPosted: Wed Mar 24, 2010 12:52 am    Post subject: Reply with quote

It could be that this is a KDE thing. Perhaps someone should file a bug report at KDE's bugzilla. Presently, I do not have an account to file the report myself and I also lack the time to check if the report would be a duplicate before posting it. :/
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