You are not logged in.

#1 2010-07-23 07:17:33

begbie
Member
From: Poland
Registered: 2010-04-28
Posts: 39

[SOLVED]Openbox huge X mem usage after some time

After an hour, maybe two of work on my Arch with openbox, memory usage goes to even 99% without any reason (even when I don't run any applications, just conky). After reboot memory is normal again, around 6%.

I guess it's X (still learning), command of process is /usr/bin/X -nolisten tcp

Maybe it's not Arch/Openbox issue but my ram? hmm

Last edited by begbie (2010-07-23 20:39:29)

Offline

#2 2010-07-23 07:49:18

bharani
Member
From: Karaikudi, India
Registered: 2009-07-12
Posts: 202

Re: [SOLVED]Openbox huge X mem usage after some time

Run htop and see which program is using memory.

edit.
How much RAM you have?.

Last edited by bharani (2010-07-23 07:49:54)


Tamil is my mother tongue.

Offline

#3 2010-07-23 08:45:26

begbie
Member
From: Poland
Registered: 2010-04-28
Posts: 39

Re: [SOLVED]Openbox huge X mem usage after some time

I have 2gb ram, so it's not the issue in openbox. wink

/usr/bin/X -nolisten tcp  is eating memory.

Openbox is acting crazy for me, dunno why. Not only mem usage, tint2 and most of docks are crashing after a while and crash all open apps too. I guess I will soon try out fluxbox or something (flux is most simillar to openbox, right? I mean default settings etc). Once I had pekwm and it was running fine.

Offline

#4 2010-07-23 10:11:08

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: [SOLVED]Openbox huge X mem usage after some time

Your memory will be used to cache data and applications by the kernel. That memory is always available for 'active' use though. Is that what you're referring to, or is X really eating all your RAM? If it's the latter then you have a memleak. Your system is up to date, no?


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

#5 2010-07-23 10:19:47

begbie
Member
From: Poland
Registered: 2010-04-28
Posts: 39

Re: [SOLVED]Openbox huge X mem usage after some time

Is memory leak something to handle then? How can it be fixed?

Yes, it's up to date.

Offline

#6 2010-07-23 12:08:04

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: [SOLVED]Openbox huge X mem usage after some time

A memleak is caused by a problem in the code.


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

#7 2010-07-23 12:55:59

begbie
Member
From: Poland
Registered: 2010-04-28
Posts: 39

Re: [SOLVED]Openbox huge X mem usage after some time

Uncle google told me that sometimes it's happening by some gtk engine (in openbox), I changed it from aurora to raleigh and so far it's normal again. But I will wait couple of hours before saying hurray.

Btw, it's good to be back in Arch world, I was on ubuntu for a while again, but once you taste that distro, there's no way back. roll

Now I can be more clear about my problem: I've noticed that every application that I run "add" some memory usage to process with command  "/usr/bin/X -nolisten tcp" until whole mem usage reach 99% and everything is running veeery slow. Shouldn't memory "clean" itself or something after closing of every application? (sorry if it sounds stupid, still learning).

I use raleigh now, but it's not that after all that cause it. Thank you for every answer and your time.

I love openbox and I won't give up, still googling about it. neutral

Last edited by begbie (2010-07-23 14:11:39)

Offline

#8 2010-07-23 14:09:20

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: [SOLVED]Openbox huge X mem usage after some time

What engine are you using? I'm using the murrine engine. RAM usage will increase the longer your system is up though.


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

#9 2010-07-23 14:13:03

begbie
Member
From: Poland
Registered: 2010-04-28
Posts: 39

Re: [SOLVED]Openbox huge X mem usage after some time

I understand increase, but not until it reach 99% and stuck on that until reboot. hmm

30 minutes of uptime - around 30% mem usage, after 1.5hours it's 53%. With only MOC running to be precise.

Last edited by begbie (2010-07-23 15:27:25)

Offline

#10 2010-07-23 19:01:13

begbie
Member
From: Poland
Registered: 2010-04-28
Posts: 39

Re: [SOLVED]Openbox huge X mem usage after some time

Ok, I finally found it. smile I found those commands, first one helped and from 70% of mem usage it become 22%. Finally I can enjoy my openbox setup. I must first login as root with su command, get permission denied when doing sudo <command>, but will think about it later.

To free pagecache:
# echo 1 > /proc/sys/vm/drop_caches

To free dentries and inodes:
# echo 2 > /proc/sys/vm/drop_caches

To free pagecache, dentries and inodes:
echo 3 > /proc/sys/vm/drop_caches

Ok, I've managed to make this command to run every 15 minutes or so... I guess I must live with that "solution".

Last edited by begbie (2010-07-23 22:37:32)

Offline

Board footer

Powered by FluxBB