~100% CPU usage in Ubuntu 7.10

General area for talk about ZSNES. The best place to ask for related questions as well as troubleshooting.

Moderator: ZSNES Mods

Post Reply
jimsheep
New Member
Posts: 7
Joined: Wed Jun 25, 2008 4:00 am

~100% CPU usage in Ubuntu 7.10

Post by jimsheep »

couldn't find this anywhere else.

the subject line is essentially self-descriptive. i disabled compiz and all the other flashy bits (including the flashy bits in zsnes), and i have a bare minimum in the background. the system monitor tells me that Xgl is taking up most of the processor. as soon as i close zsnes, cpu usage returns to its normal ~8%.

hardware details:

AMD Athlon 64 3500+
2GB RAM
ATI Radeon X800
Sound Blaster Audigy 2EX
adventure_of_link
Locksmith of Hyrule
Posts: 3634
Joined: Sun Aug 08, 2004 7:49 am
Location: 255.255.255.255
Contact:

Post by adventure_of_link »

what version of ZSNES are you using?
<Nach> so why don't the two of you get your own room and leave us alone with this stupidity of yours?
NSRT here.
jimsheep
New Member
Posts: 7
Joined: Wed Jun 25, 2008 4:00 am

Post by jimsheep »

1.51
grinvader
ZSNES Shake Shake Prinny
Posts: 5632
Joined: Wed Jul 28, 2004 4:15 pm
Location: PAL50, dood !

Post by grinvader »

Have you disabled both autoframeskip and vsync ?
皆黙って俺について来い!!

Code: Select all

<jmr> bsnes has the most accurate wiki page but it takes forever to load (or something)
Pantheon: Gideon Zhi | CaitSith2 | Nach | kode54
jimsheep
New Member
Posts: 7
Joined: Wed Jun 25, 2008 4:00 am

Post by jimsheep »

yes, yes i have.
grinvader
ZSNES Shake Shake Prinny
Posts: 5632
Joined: Wed Jul 28, 2004 4:15 pm
Location: PAL50, dood !

Post by grinvader »

Well you might want to enable one of them. Oh, triple buffering would work too.

Vsync will require your monitor refreshing a multiple of 60Hz (for NTSC games) or 50Hz (for PAL games), so you're probably better off with the other options.

Edit: ah wait, ubuntu. Disregard triple buffering.
皆黙って俺について来い!!

Code: Select all

<jmr> bsnes has the most accurate wiki page but it takes forever to load (or something)
Pantheon: Gideon Zhi | CaitSith2 | Nach | kode54
jimsheep
New Member
Posts: 7
Joined: Wed Jun 25, 2008 4:00 am

Post by jimsheep »

hang on. maybe i didn't disable vsync or autoframeskip.

/me is a novice

where do i find those? i looked through both the zsnesl.cfg and zmovie.cfg and found nothing. i looked at xorg.conf and found nothing. this may be a case of rtfm or an ID-10-T error.
paulguy
Zealot
Posts: 1076
Joined: Sat Jul 02, 2005 2:01 am
Contact:

Post by paulguy »

Is it normal for a computer to idle at 8%? Seems a bit much, even for a low end PC.
jimsheep
New Member
Posts: 7
Joined: Wed Jun 25, 2008 4:00 am

Post by jimsheep »

i'm not sure. this is my first PC that i am able to actively monitor system status. i also have several sidecandy widgets running.

Xgl itself is between 3 and 5%, and the sidecandy stuff takes 5-7%
Villa Vampiria
New Member
Posts: 4
Joined: Wed Jul 16, 2008 5:56 pm

Post by Villa Vampiria »

I have exactly the same problem. ZSNES worked smoothly for a long time (I'm running Ubuntu 7.10).
Then I did a few updates from Ubuntu, but I don't remember exactly what the updates were. After that, as soon as I start ZSNES (I haven't even loaded a ROM yet), the cpu usage goes up to 100%. Nothing changes with my processes, BUT the Xorg process is going through the roof!
So it's got something to do with the graphical thingy, but I haven't got a clue on how to fix it, or what caused this change. It's a pity I didn't fully read what the update was about...

Did anybody fix this problem allready? And I can't find anything about this problem either. I'm glad I found somebody that has the same problem as me.
grinvader
ZSNES Shake Shake Prinny
Posts: 5632
Joined: Wed Jul 28, 2004 4:15 pm
Location: PAL50, dood !

Post by grinvader »

Why should WE fix ubuntu issues ? Whine at the coders of the various stuff you updated, not us.
皆黙って俺について来い!!

Code: Select all

<jmr> bsnes has the most accurate wiki page but it takes forever to load (or something)
Pantheon: Gideon Zhi | CaitSith2 | Nach | kode54
Villa Vampiria
New Member
Posts: 4
Joined: Wed Jul 16, 2008 5:56 pm

Post by Villa Vampiria »

I wasn't asking for you to FIX this, but maybe you guys heard about this problem and know something about it.
Deathlike2
ZSNES Developer
ZSNES Developer
Posts: 6747
Joined: Tue Dec 28, 2004 6:47 am

Post by Deathlike2 »

It tends to sound rather isolated to you, or with drivers and other stuff that is running.. not as much as a ZSNES problem in general.
Continuing [url=http://slickproductions.org/forum/index.php?board=13.0]FF4[/url] Research...
funkyass
"God"
Posts: 1128
Joined: Tue Jul 27, 2004 11:24 pm

Post by funkyass »

Unless its actually affecting other programs, I'd ignore it.

Hint: its probably not zsnes.
Does [Kevin] Smith masturbate with steel wool too?

- Yes, but don’t change the subject.
Villa Vampiria
New Member
Posts: 4
Joined: Wed Jul 16, 2008 5:56 pm

Post by Villa Vampiria »

I know it's not ZSNES that's causing this, but it's the only program that's affected by it (that I know of).

Anyway, I posted on the Ubuntu forum too, so maybe they know what to do.
badinsults
"Your thread will be crushed."
Posts: 1236
Joined: Wed Jul 28, 2004 1:49 am
Location: Not in Winnipeg
Contact:

Post by badinsults »

There must be something wrong with your configuration, because when I run Zsnes in Ubuntu 8.04, Zsnes never uses more than between 5-15% of the CPU. Make sure your video card drivers are installed properly, maybe your cpu is working hard to render all the graphics.
Villa Vampiria
New Member
Posts: 4
Joined: Wed Jul 16, 2008 5:56 pm

Post by Villa Vampiria »

Everything worked fine before, and I didn't chance anything as far as I can remember. All I did was install those updates.
But I'll try reinstalling my video drivers to make sure.
jimsheep
New Member
Posts: 7
Joined: Wed Jun 25, 2008 4:00 am

Post by jimsheep »

so far it's isolated to 2 users...i haven't upgraded to 8.04 yet.
FranMichaels
New Member
Posts: 4
Joined: Fri Aug 08, 2008 5:10 am
Contact:

Post by FranMichaels »

XGL is deprecated, use AIGLX if you can instead (you might not be able to if you are stuck with proprietary video drivers, but I wouldn't know...)

Is zsnes set to use opengl (the video mode you've picked within zsnes has an O in it.)

Does it still eat CPU for breakfast even before a game is loaded?

If so, it sounds like no direct rendering.

From a terminal

Code: Select all

glxinfo | grep direct
If it doesn't return "Yes", the video driver is to blame. Try software rendering, or if possible an open driver?

Happy zsnes user on Ubuntu 8.0.4, with onboard intel (laptop moble graphics chipset...)
Let him choose out of my files, his projects to accomplish.
-- Shakespeare, "Coriolanus"
jimsheep
New Member
Posts: 7
Joined: Wed Jun 25, 2008 4:00 am

Post by jimsheep »

thanks a bundle for narrowing it down. i'm not using openGL, but that doesn't seem to make much of a difference. i think i need to get rid of this crap-tastic x800 card, then, 'cause it's a pain in the ass...you know, the straw that broke the camel's back and all that.

thanks again.
Post Reply