View previous topic :: View next topic |
Author |
Message |
fraris n00b
Joined: 24 Feb 2003 Posts: 7
|
Posted: Thu Mar 06, 2003 3:28 pm Post subject: ACPI system load |
|
|
Hi all,
i have a little problem with my Toshiba Satellite 5200-701.
With kernel gentoo-2.4.20-rc1 and ACPI compiled anything works fine
(i refer to LCD display brightness, Alsa sound support for intel-8x0) but
my system load is always at 100% (about 98% of system time and 2% of user).
This problem disappears if i boot without ACPI... but no control on LCD display is still available and my sound card ... fails to start
anyone experienced the same problem?
is any kernel patch available for this issue ?
thx in advace
/f/ |
|
Back to top |
|
|
CodeHacker84 n00b
Joined: 22 Jan 2003 Posts: 68 Location: Rapids of Cedar, IA
|
Posted: Sun Mar 09, 2003 4:35 am Post subject: 100% CPU load |
|
|
I must say that I have experienced the same problem and I don't like the way this looks. I first noticed this happening with the 2.4.20-acpi-r8 kernel, and the same thing happens with r9. I just compiled with the 2.4.20-gentoo-r1 sources and discovered the same thing. If this is a bug, it showed up a long time ago, and it hasn't been fixed yet. I'd give it a shot, but I have zero kernel hacking experience, and I don't even know where to start.
P.S. I'm running one of those horribly-designed Toshiba Satellite 5005-S504's with the "legacy-free" architecture and the indequately-cooled desktop processors, so this is a big issue for me as leaving the damn thing up for too long could kill it. _________________ Athlon64 3200
1GB Corsair PC3200 C2
MSI K8T Neo FIS2R
CoolerMaster WaveMaster (Black)
Antec TruePower 550W
120 GB WD SATA Drive
160 GB WD PATA Drive
54x32x54 CD-R/RW
Dual head: ATI 9800 AiW/LG1720P && Voodoo3 PCI/IBM G40 CRT |
|
Back to top |
|
|
CodeHacker84 n00b
Joined: 22 Jan 2003 Posts: 68 Location: Rapids of Cedar, IA
|
Posted: Sun Mar 09, 2003 4:46 pm Post subject: Just thought of this... |
|
|
Ok, so we all know that Toshiba laptops have a strange and often impractical design could it be that this system load problem is unique to the Toshiba architecture? Or maybe I'm doing something wrong. In either case, I've not seen this particular problem mentioned before (and yes, my system actually behaves as if it's under 100% load, even though I don't have any processes that are shown to be taking up that much processor time in top) on any of the forums. I suppose that if I get my wlan card working soon I'll devote some time to tracking it down, but I'm not a kernel hacker and I would feel a helluva lot more comfortable if we could get someone who knows what they're doing to work on this... _________________ Athlon64 3200
1GB Corsair PC3200 C2
MSI K8T Neo FIS2R
CoolerMaster WaveMaster (Black)
Antec TruePower 550W
120 GB WD SATA Drive
160 GB WD PATA Drive
54x32x54 CD-R/RW
Dual head: ATI 9800 AiW/LG1720P && Voodoo3 PCI/IBM G40 CRT |
|
Back to top |
|
|
avendesora Veteran
Joined: 16 Aug 2002 Posts: 1739 Location: Betelgeuse vicinity
|
Posted: Sun Mar 09, 2003 5:07 pm Post subject: |
|
|
What process/thread is eating up all your CPU? |
|
Back to top |
|
|
CodeHacker84 n00b
Joined: 22 Jan 2003 Posts: 68 Location: Rapids of Cedar, IA
|
Posted: Sun Mar 09, 2003 5:16 pm Post subject: |
|
|
There isn't one, at least according to top. There is just a mysterious drain on the CPU that appears to be coming from nowhere. I'd debug it if I knew where to start looking, but I haven't the faintest clue. I can only guess that it has something to do with a patch that is included in both 2.4.20-gentoo-r1 and all >2.4.20-acpi-r6. _________________ Athlon64 3200
1GB Corsair PC3200 C2
MSI K8T Neo FIS2R
CoolerMaster WaveMaster (Black)
Antec TruePower 550W
120 GB WD SATA Drive
160 GB WD PATA Drive
54x32x54 CD-R/RW
Dual head: ATI 9800 AiW/LG1720P && Voodoo3 PCI/IBM G40 CRT |
|
Back to top |
|
|
avendesora Veteran
Joined: 16 Aug 2002 Posts: 1739 Location: Betelgeuse vicinity
|
Posted: Sun Mar 09, 2003 5:21 pm Post subject: |
|
|
no processes with a high 'TIME' value show up with "ps aux" ? |
|
Back to top |
|
|
CodeHacker84 n00b
Joined: 22 Jan 2003 Posts: 68 Location: Rapids of Cedar, IA
|
Posted: Sun Mar 09, 2003 9:09 pm Post subject: |
|
|
How high is high? The highest time in the list is 1:48 for keventd. The machine's been up almost five hours. _________________ Athlon64 3200
1GB Corsair PC3200 C2
MSI K8T Neo FIS2R
CoolerMaster WaveMaster (Black)
Antec TruePower 550W
120 GB WD SATA Drive
160 GB WD PATA Drive
54x32x54 CD-R/RW
Dual head: ATI 9800 AiW/LG1720P && Voodoo3 PCI/IBM G40 CRT |
|
Back to top |
|
|
CodeHacker84 n00b
Joined: 22 Jan 2003 Posts: 68 Location: Rapids of Cedar, IA
|
Posted: Sun Mar 09, 2003 11:04 pm Post subject: |
|
|
K, looks like I'm on my own I'll post some updates periodically. Anyone with ideas, feel free to help. Guess I'm gonna start by trying to cross-reference patches in the kernel ebuilds maybe I can narrow it down to about fifty likely offenders _________________ Athlon64 3200
1GB Corsair PC3200 C2
MSI K8T Neo FIS2R
CoolerMaster WaveMaster (Black)
Antec TruePower 550W
120 GB WD SATA Drive
160 GB WD PATA Drive
54x32x54 CD-R/RW
Dual head: ATI 9800 AiW/LG1720P && Voodoo3 PCI/IBM G40 CRT |
|
Back to top |
|
|
BradN Advocate
Joined: 19 Apr 2002 Posts: 2391 Location: Wisconsin (USA)
|
Posted: Mon Mar 10, 2003 2:39 am Post subject: |
|
|
Just an idea... can you disable all but the bare minimum ACPI stuff to make your sound card and such work, until the problem can be fixed completely? |
|
Back to top |
|
|
CodeHacker84 n00b
Joined: 22 Jan 2003 Posts: 68 Location: Rapids of Cedar, IA
|
Posted: Mon Mar 10, 2003 8:05 pm Post subject: |
|
|
Ok, well here's the story on MY problem at least...I can't speak for fraris . I've compiled the damn kernel with everything compiled as modules except for basic ACPI support (General Setup->ACPI support->[*] ACPI support). None of these modules are listed as being loaded in my lsmod output, but I'm still getting the ghost CPU drain. Can't come up with an explanation...any one else have ideas?
[edit] The modules I'm referring to are the ACPI modules, everything else is compiled the same as I've always compiled it. Just thought some clarification was in order. _________________ Athlon64 3200
1GB Corsair PC3200 C2
MSI K8T Neo FIS2R
CoolerMaster WaveMaster (Black)
Antec TruePower 550W
120 GB WD SATA Drive
160 GB WD PATA Drive
54x32x54 CD-R/RW
Dual head: ATI 9800 AiW/LG1720P && Voodoo3 PCI/IBM G40 CRT |
|
Back to top |
|
|
CodeHacker84 n00b
Joined: 22 Jan 2003 Posts: 68 Location: Rapids of Cedar, IA
|
Posted: Mon Mar 10, 2003 9:26 pm Post subject: |
|
|
Alright, I've isolated the problem down to one menuconfig option: CONFIG_ACPI. I don't know what this option entails, but one or more of the resulting compiles has a bug . I'm looking for the source file now...anyone who wants to can feel free to help. _________________ Athlon64 3200
1GB Corsair PC3200 C2
MSI K8T Neo FIS2R
CoolerMaster WaveMaster (Black)
Antec TruePower 550W
120 GB WD SATA Drive
160 GB WD PATA Drive
54x32x54 CD-R/RW
Dual head: ATI 9800 AiW/LG1720P && Voodoo3 PCI/IBM G40 CRT |
|
Back to top |
|
|
CodeHacker84 n00b
Joined: 22 Jan 2003 Posts: 68 Location: Rapids of Cedar, IA
|
Posted: Mon Mar 10, 2003 10:10 pm Post subject: |
|
|
Alright, I'm gonna do what I should've done about for months ago and submit a bug report to bugzilla. After that, I'm gonna continue to do what I can from my end, I know everyone's busy, maybe I'll find it. _________________ Athlon64 3200
1GB Corsair PC3200 C2
MSI K8T Neo FIS2R
CoolerMaster WaveMaster (Black)
Antec TruePower 550W
120 GB WD SATA Drive
160 GB WD PATA Drive
54x32x54 CD-R/RW
Dual head: ATI 9800 AiW/LG1720P && Voodoo3 PCI/IBM G40 CRT |
|
Back to top |
|
|
avendesora Veteran
Joined: 16 Aug 2002 Posts: 1739 Location: Betelgeuse vicinity
|
Posted: Mon Mar 10, 2003 10:12 pm Post subject: |
|
|
Did you check out http://acpi.sourceforge.net/ before heading that way?
Chances are other people have the same issues. |
|
Back to top |
|
|
CodeHacker84 n00b
Joined: 22 Jan 2003 Posts: 68 Location: Rapids of Cedar, IA
|
Posted: Tue Mar 11, 2003 12:00 am Post subject: |
|
|
No, unfortunately I didn't think of checking there before I annoyed our already overworked bughunters...but after checking there I found one other reference to this problem mentioning something about a high number of interrupts. This person also was using a Toshiba "Legacy-Free" laptop. _________________ Athlon64 3200
1GB Corsair PC3200 C2
MSI K8T Neo FIS2R
CoolerMaster WaveMaster (Black)
Antec TruePower 550W
120 GB WD SATA Drive
160 GB WD PATA Drive
54x32x54 CD-R/RW
Dual head: ATI 9800 AiW/LG1720P && Voodoo3 PCI/IBM G40 CRT |
|
Back to top |
|
|
CodeHacker84 n00b
Joined: 22 Jan 2003 Posts: 68 Location: Rapids of Cedar, IA
|
Posted: Wed Mar 12, 2003 12:36 am Post subject: |
|
|
Alright, so the debugger guys seem to think it's just bad GKrellm output due to idle calls (at least if I understood the response correctly). I find this a little hard to believe when /proc/acpi/thermal_zone/THRM/temperature reports my CPU running at 71*C and the fan is running full-bore. I STILL think it's a kernel bug. Is there anyone out there with a Toshiba laptop running with a newer kernel version that DOESN'T have the problem described in this thread? _________________ Athlon64 3200
1GB Corsair PC3200 C2
MSI K8T Neo FIS2R
CoolerMaster WaveMaster (Black)
Antec TruePower 550W
120 GB WD SATA Drive
160 GB WD PATA Drive
54x32x54 CD-R/RW
Dual head: ATI 9800 AiW/LG1720P && Voodoo3 PCI/IBM G40 CRT |
|
Back to top |
|
|
snkmoorthy Guru
Joined: 19 Nov 2002 Posts: 376
|
Posted: Wed Mar 12, 2003 1:21 am Post subject: |
|
|
here is my 1 cent..
is there an APIC in your laptop, is it enabled or disabled in your kernel. look what dmesg says about ACPI. Turn on ACPI debug messages, check those messages.
I do remember another APIC problem, that is APIC turned on in kernel, but no real APIC, the system hangs. However, I have see this issue resolved, with "simulating APIC" in ACPI code. may be you don't want that, may be you do. |
|
Back to top |
|
|
CodeHacker84 n00b
Joined: 22 Jan 2003 Posts: 68 Location: Rapids of Cedar, IA
|
Posted: Thu Mar 13, 2003 9:50 pm Post subject: |
|
|
Ok, well, I've tried both with no success. I have enabled APIC in the kernel, and I have disabled it, but it seems to not have an effect. I've checked my dmesg output and I see things like (but not exactly), "IRQ's 7 and 10 disabled and routed through IRQ 6," but now because of my wireless card and the kernel's "eth1: Error -110 writing Tx descriptor to BAP" messages, I can't see all of my dmesg output anymore.
Also, I've seen something in the ACPI forums about another guy with a Toshiba laptop and he claims that he's getting excessive interrupt requests, which would lead me to believe that there was a change to the ACPI kernel code that now generates these interrupt requests. As for which source code module it is, I don't know, but I have compiled a list of source code modules that have changed since the last version that works, and (by cross-referencing the Makefile(s) ) that are in the right directories to have caused the problem. I'm currently checking through this list for code that makes me suspicious. The problem shouldn't be in /usr/src/linux/drivers/acpi/bus.c.
That's all I know. _________________ Athlon64 3200
1GB Corsair PC3200 C2
MSI K8T Neo FIS2R
CoolerMaster WaveMaster (Black)
Antec TruePower 550W
120 GB WD SATA Drive
160 GB WD PATA Drive
54x32x54 CD-R/RW
Dual head: ATI 9800 AiW/LG1720P && Voodoo3 PCI/IBM G40 CRT |
|
Back to top |
|
|
azote Guru
Joined: 17 Sep 2002 Posts: 415
|
Posted: Fri Mar 14, 2003 7:50 am Post subject: |
|
|
If I use ACPI on my toshiba laptop 5205-s703 the Nvidia card will not work properly!...
example:
normal boot with acpi : ~500 Frames Per Second
boot with acpi=off: ~3000 Frames Per Second
but the bad thing about the acpi=off .. is that I dont get sound neither wireless going...
paying without sound ... sucks... _________________ contact me -> azote@mail.i2p
What do you want to emerge today?
if you think that a person is normal, it is because you do not know them well |
|
Back to top |
|
|
CodeHacker84 n00b
Joined: 22 Jan 2003 Posts: 68 Location: Rapids of Cedar, IA
|
Posted: Fri Mar 14, 2003 7:33 pm Post subject: |
|
|
Azote, there's another thing that could affect your video performance like that: a system plagued by extraneous interrupt requests. What does the output of "top" look like? _________________ Athlon64 3200
1GB Corsair PC3200 C2
MSI K8T Neo FIS2R
CoolerMaster WaveMaster (Black)
Antec TruePower 550W
120 GB WD SATA Drive
160 GB WD PATA Drive
54x32x54 CD-R/RW
Dual head: ATI 9800 AiW/LG1720P && Voodoo3 PCI/IBM G40 CRT |
|
Back to top |
|
|
Noth n00b
Joined: 08 Jan 2003 Posts: 74 Location: Finland/Arizona/NewJersey
|
Posted: Sat Mar 15, 2003 9:40 pm Post subject: Re: ACPI system load |
|
|
fraris wrote: | Hi all,
i have a little problem with my Toshiba Satellite 5200-701.
/f/ |
This is not a little problem!
I have the same moddel. Been working on this for 3 weeks. Heres what you do so far.
1. Remove fan support in acpi! this does NOT fix the problem as you already know but it will allow you to (in spikes) steel back up to 80% of the CPU. Then just deal with it. (Note that the fan WILL still work.)
OR
2. emerge vanilla-kernel. get the 2.4.21-pre4 patch from kernel.org, and the latest ACPI patch from their site. This DOES fix the load problem. BUT I can't seem to even compile the nvidia-kernel driver when running it. Seems it has some ACPI problems?
I sent in a bugzilla report about this a while ago, it is being worked on and the new patch should be in the next gentoo-sources release (at the least gentoo-sources2.4.21). It has been reported that the latest gs-sources has the patch....well I don't know about that, I do know it still does not work. Your system does NOT have an apic , don't bother adding it. _________________ !!!teG I sdrawkcaB eroM ehT oG I sdrawroF eroM ehT |
|
Back to top |
|
|
azote Guru
Joined: 17 Sep 2002 Posts: 415
|
Posted: Sat Mar 15, 2003 11:52 pm Post subject: |
|
|
CodeHacker84 wrote: | Azote, there's another thing that could affect your video performance like that: a system plagued by extraneous interrupt requests. What does the output of "top" look like? |
Code: |
top - 11:51:45 up 5 min, 2 users, load average: 1.29, 0.94, 0.44
Tasks: 42 total, 3 running, 39 sleeping, 0 stopped, 0 zombie
Cpu(s): 5.0% user, 95.0% system, 0.0% nice, 0.0% idle
Mem: 514264k total, 111476k used, 402788k free, 4864k buffers
Swap: 1261092k total, 0k used, 1261092k free, 54976k cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ Command
11716 root 17 0 28368 27m 15m S 4.7 5.5 0:13.42 mozilla-bin
30508 root 16 -1 272m 16m 4016 S 1.0 3.3 0:08.09 X
3 root 23 0 0 0 0 S 0.7 0.0 0:03.67 keventd
2247 root 17 0 5412 5412 2496 R 0.3 1.1 0:01.24 enlightenment
28582 root 23 0 0 0 0 R 0.3 0.0 0:00.01 kacpidpc
1 root 17 0 472 472 420 S 0.0 0.1 0:00.91 init
2 root RT 0 0 0 0 S 0.0 0.0 0:00.00 migration_CPU0
5 root 36 19 0 0 0 S 0.0 0.0 0:00.00 ksoftirqd_CPU0
8 root 23 0 0 0 0 S 0.0 0.0 0:00.00 kswapd
11 root 23 0 0 0 0 S 0.0 0.0 0:00.00 bdflush
14 root 17 0 0 0 0 S 0.0 0.0 0:00.01 kupdated
3136 root 17 0 0 0 0 S 0.0 0.0 0:00.00 khubd
3267 root 18 0 0 0 0 S 0.0 0.0 0:00.00 i2oevtd
3919 root 17 0 0 0 0 S 0.0 0.0 0:00.09 kjournald
6144 root 18 0 884 884 580 S 0.0 0.2 0:00.05 devfsd
29579 root 17 0 600 600 504 S 0.0 0.1 0:00.21 syslogd
29936 root 17 0 1676 1676 1180 S 0.0 0.3 0:00.13 cupsd
31446 root 17 0 528 528 376 S 0.0 0.1 0:00.02 klogd
31547 root 17 0 404 404 356 S 0.0 0.1 0:00.00 crond
706 root 18 0 668 668 508 S 0.0 0.1 0:00.00 cardmgr
1506 root 18 0 1824 1824 1252 S 0.0 0.4 0:00.02 smbd
1862 root 17 0 1572 1572 1060 S 0.0 0.3 0:00.04 nmbd
3803 root 17 0 5012 5012 2160 S 0.0 1.0 0:00.01 miniserv.pl
3880 root 18 0 1000 1000 800 S 0.0 0.2 0:00.05 login
3882 root 17 0 392 392 348 S 0.0 0.1 0:00.00 agetty
3889 root 17 0 392 392 348 S 0.0 0.1 0:00.00 agetty
3892 root 17 0 392 392 348 S 0.0 0.1 0:00.00 agetty
3897 root 17 0 392 392 348 S 0.0 0.1 0:00.00 agetty
3900 root 17 0 392 392 348 S 0.0 0.1 0:00.00 agetty
14584 root 18 0 1308 1308 1052 S 0.0 0.3 0:00.02 bash
30032 root 18 0 928 928 820 S 0.0 0.2 0:00.00 startx
30493 root 17 0 604 604 532 S 0.0 0.1 0:00.04 xinit
5858 root 27 10 1132 1132 988 S 0.0 0.2 0:00.32 E-Cpu.epplet
5870 root 27 10 1064 1064 928 S 0.0 0.2 0:00.04 E-MemWatch.eppl
14285 root 17 0 28368 27m 15m S 0.0 5.5 0:00.01 mozilla-bin
14286 root 17 0 28368 27m 15m S 0.0 5.5 0:00.19 mozilla-bin
14289 root 17 0 28368 27m 15m S 0.0 5.5 0:00.00 mozilla-bin
16040 root 17 0 28368 27m 15m S 0.0 5.5 0:00.04 mozilla-bin
26788 root 17 0 28368 27m 15m S 0.0 5.5 0:00.00 mozilla-bin
10968 root 17 0 3276 3276 1960 S 0.0 0.6 0:00.33 xterm
11765 root 18 0 1244 1244 980 S 0.0 0.2 0:00.00 bash
13650 root 17 0 972 972 784 R 0.0 0.2 0:00.06 top
|
_________________ contact me -> azote@mail.i2p
What do you want to emerge today?
if you think that a person is normal, it is because you do not know them well |
|
Back to top |
|
|
fraris n00b
Joined: 24 Feb 2003 Posts: 7
|
Posted: Sun Mar 16, 2003 9:27 am Post subject: I'm back |
|
|
i'm sorry... but I was out for vacation (!) ...
I read everything on the forum.. and i'll start working in 3 minutes.
Stay tuned... i'll post some results
thx for all
/f/ |
|
Back to top |
|
|
CodeHacker84 n00b
Joined: 22 Jan 2003 Posts: 68 Location: Rapids of Cedar, IA
|
Posted: Mon Mar 17, 2003 3:57 am Post subject: |
|
|
Yep, that's about what I figured, azote...I have the same problem. I think that the possibility of excessive interrupt requests could do this, since the processor would be running the code for the interrupt about every 10 nanoseconds. I have a list of all the source files that have changed since the last version of the patch that worked properly, but I don't think I'm qualified to go looking through them for the problem, especially since I have reason to believe that the problem is a patch-kernel interfacing problem. I don't hack kernels...maybe it's time to learn. _________________ Athlon64 3200
1GB Corsair PC3200 C2
MSI K8T Neo FIS2R
CoolerMaster WaveMaster (Black)
Antec TruePower 550W
120 GB WD SATA Drive
160 GB WD PATA Drive
54x32x54 CD-R/RW
Dual head: ATI 9800 AiW/LG1720P && Voodoo3 PCI/IBM G40 CRT |
|
Back to top |
|
|
azote Guru
Joined: 17 Sep 2002 Posts: 415
|
Posted: Tue Mar 18, 2003 5:03 pm Post subject: |
|
|
Good news!!!
I just compiled kernel 2.5.64 !!!
and every thing works great!!
even my GLX acceleration works Great ... I have fixed all of my problems!!!
You really need to trieyed...
I havent got a crash yet.. (is a beta kernel)
the
Cpu(s): 5.0% user, 95.0% system, 0.0% nice, 0.0% idle
is fix! now _________________ contact me -> azote@mail.i2p
What do you want to emerge today?
if you think that a person is normal, it is because you do not know them well |
|
Back to top |
|
|
Liathus Apprentice
Joined: 21 Mar 2003 Posts: 163 Location: Fargo, ND
|
Posted: Fri Mar 21, 2003 5:30 pm Post subject: |
|
|
I am having the same issue on my toshiba 5105-s501 laptop. The issue appears if I use the current gentoo-sources or the ck-sources. Does anyone have any ideas about this? The stable kernels should work IMHO. I would rather not have to use a beta 2.5 series kernel. |
|
Back to top |
|
|
|