Author Topic: What Is Battchrgon And Why Does It Use About 50% Cpu?  (Read 4482 times)

BerndS

  • Jr. Member
  • **
  • Posts: 65
    • View Profile
What Is Battchrgon And Why Does It Use About 50% Cpu?
« on: December 10, 2007, 12:49:40 pm »
Hi,

while charging the battery of my SL3200 a process called "battchrgon" uses a lot CPU resources:

Mem: 61260K used, 1032K free, 0K shrd, 88K buff, 23352K cached
Load average: 27.00, 15.84, 8.21    (State: S=sleeping R=running, W=waiting)

  PID USER     STATUS   RSS  PPID %CPU %MEM COMMAND
    5 root     RW         0     1 48.3  0.0 battchrgon
    6 root     RW         0     1 18.1  0.0 battchrgoff
    7 root     RW         0     1  5.7  0.0 sharpsl_bat
    3 root     RWN        0     1  4.7  0.0 kapm-idled
  431 root     S        172     1  4.0  0.2 syslogd
 4145 root     R        344  4024  2.5  0.5 top
 4249 root     R       2588     1  2.2  4.1 python
 4240 root     R       2536     1  2.1  4.0 python
 4292 root     R        776  4119  2.1  1.2 apm
 4259 root     R        612  3608  2.0  0.9 fbpanel
 4223 root     R       2412     1  1.8  3.8 python
 4289 root     S       1284  4114  1.3  2.0 sh
 4291 root     S        648  4289  0.8  1.0 xset
 4290 root     S        648  4280  0.7  1.0 xset
 4288 root     S        648  4284  0.5  1.0 xset
  585 root     S        252     1  0.5  0.4 atd
 4114 root     S       2664     1  0.4  4.2 python
 3570 root     D <     1432  3569  0.4  2.2 X
 3585 root     S        200  3573  0.4  0.3 gconfd-2
 4285 root     S        648  4279  0.3  1.0 xset
 4068 root     D        508     1  0.3  0.8 python

What's this process doing and why does it uses about 50% of the CPU?

(I'm running weeXpc [pdaXrom 1.1.0beta3])


regards

Bernd

Capn_Fish

  • Hero Member
  • *****
  • Posts: 2342
    • View Profile
    • http://
What Is Battchrgon And Why Does It Use About 50% Cpu?
« Reply #1 on: December 10, 2007, 02:26:18 pm »
I don't know what the process is, but it's not a standard one. I suspect there's a bug in the code for it that's causing it to eat CPU cycles, but can't be sure.
SL-C750- pdaXrom beta 1 (mostly unused)
Current distro: Gentoo

LinuxGadget

  • Newbie
  • *
  • Posts: 44
    • View Profile
What Is Battchrgon And Why Does It Use About 50% Cpu?
« Reply #2 on: December 10, 2007, 03:08:40 pm »
Hi,

have you got mb-applet-powerctrl installed ?
Noticed the same processes on my C1k with pdaxii3, and i do believe after installing this applet. Unfortunately, can't proof this, because I'm installing Debian right now.      




Quote from: BerndS
Hi,

while charging the battery of my SL3200 a process called "battchrgon" uses a lot CPU resources:

Mem: 61260K used, 1032K free, 0K shrd, 88K buff, 23352K cached
Load average: 27.00, 15.84, 8.21    (State: S=sleeping R=running, W=waiting)

  PID USER     STATUS   RSS  PPID %CPU %MEM COMMAND
    5 root     RW         0     1 48.3  0.0 battchrgon
    6 root     RW         0     1 18.1  0.0 battchrgoff
    7 root     RW         0     1  5.7  0.0 sharpsl_bat
    3 root     RWN        0     1  4.7  0.0 kapm-idled
  431 root     S        172     1  4.0  0.2 syslogd
 4145 root     R        344  4024  2.5  0.5 top
 4249 root     R       2588     1  2.2  4.1 python
 4240 root     R       2536     1  2.1  4.0 python
 4292 root     R        776  4119  2.1  1.2 apm
 4259 root     R        612  3608  2.0  0.9 fbpanel
 4223 root     R       2412     1  1.8  3.8 python
 4289 root     S       1284  4114  1.3  2.0 sh
 4291 root     S        648  4289  0.8  1.0 xset
 4290 root     S        648  4280  0.7  1.0 xset
 4288 root     S        648  4284  0.5  1.0 xset
  585 root     S        252     1  0.5  0.4 atd
 4114 root     S       2664     1  0.4  4.2 python
 3570 root     D <     1432  3569  0.4  2.2 X
 3585 root     S        200  3573  0.4  0.3 gconfd-2
 4285 root     S        648  4279  0.3  1.0 xset
 4068 root     D        508     1  0.3  0.8 python

What's this process doing and why does it uses about 50% of the CPU?

(I'm running weeXpc [pdaXrom 1.1.0beta3])


regards

Bernd
C1000, 2.6.24-yonggun, Debian EABI

BerndS

  • Jr. Member
  • **
  • Posts: 65
    • View Profile
What Is Battchrgon And Why Does It Use About 50% Cpu?
« Reply #3 on: December 10, 2007, 03:28:45 pm »
Quote from: LinuxGadget
Hi,

have you got mb-applet-powerctrl installed ?

Yes, but that wasn't the owner of these processes:

I removed the mb-applet-powerctrl and rebooted the Zaurus and the processes are still there.

Strange -- does anybody else running pdaXrom has these processes also?

regards

Bernd

LinuxGadget

  • Newbie
  • *
  • Posts: 44
    • View Profile
What Is Battchrgon And Why Does It Use About 50% Cpu?
« Reply #4 on: December 10, 2007, 05:13:50 pm »
Hi,

for now I'm back to pdaxii3. u-boot made my heart stop while trying to install debian...

Will take a look, maybe I'm able to reproduce these processes.  Just flashed pdaxii3, rebooting...

Quote from: BerndS
Quote from: LinuxGadget
Hi,

have you got mb-applet-powerctrl installed ?

Yes, but that wasn't the owner of these processes:

I removed the mb-applet-powerctrl and rebooted the Zaurus and the processes are still there.

Strange -- does anybody else running pdaXrom has these processes also?

regards

Bernd
C1000, 2.6.24-yonggun, Debian EABI

LinuxGadget

  • Newbie
  • *
  • Posts: 44
    • View Profile
What Is Battchrgon And Why Does It Use About 50% Cpu?
« Reply #5 on: December 10, 2007, 05:15:27 pm »
Just flashed a pdaxii3 out of the box (thanks meanie!  )
And I've got these processes, too.  PID 5,6,7, just exactly like yours. So that makes me believe them beeing part of the kernel.

But I have no idea, why these proc. consume 50% CPU
« Last Edit: December 10, 2007, 05:22:33 pm by LinuxGadget »
C1000, 2.6.24-yonggun, Debian EABI

speculatrix

  • Administrator
  • Hero Member
  • *****
  • Posts: 3707
    • View Profile
What Is Battchrgon And Why Does It Use About 50% Cpu?
« Reply #6 on: December 11, 2007, 04:58:07 pm »
they're there to see how quickly they can discharge your battery
Gemini 4G/Wi-Fi owner, formerly zaurus C3100 and 860 owner; also owner of an HTC Doubleshot, a Zaurus-like phone.

ecc_hy

  • Full Member
  • ***
  • Posts: 125
    • View Profile
What Is Battchrgon And Why Does It Use About 50% Cpu?
« Reply #7 on: December 11, 2007, 10:28:24 pm »
mb-applet-powerctrl check following with 2 seconds interval:
Call apm_read to get battery status
Read /proc/driver/battery/sharpsl_main_battery_voltage to get battery voltage when charging.

I have check my sl-c1000. There are battchrgon and battchrgoff running, but they do not eat so much CPU usuage, always be 0%, battchrgon get 15% once when charging.

Can you sure is it a problem of mb-applet-powerctrl?
« Last Edit: December 11, 2007, 10:35:21 pm by ecc_hy »
SL-C1000, Roku wifi, pdaxii13v2/Debian dual booting

BerndS

  • Jr. Member
  • **
  • Posts: 65
    • View Profile
What Is Battchrgon And Why Does It Use About 50% Cpu?
« Reply #8 on: December 12, 2007, 03:32:59 pm »
Hi,

Quote from: ecc_hy
Can you sure is it a problem of mb-applet-powerctrl?

I deinstalled mb-applet-powerctrl and rebooted the Zaurus but the problem still exists. So it's not a problem caused by the mb-applet-powerctrl.

regards

Bernd

LinuxGadget

  • Newbie
  • *
  • Posts: 44
    • View Profile
What Is Battchrgon And Why Does It Use About 50% Cpu?
« Reply #9 on: December 12, 2007, 04:35:01 pm »
Hm. maybe an hardware related problem? Lot's of irqs firing up while charging?

Quote from: BerndS
Hi,

Quote from: ecc_hy
Can you sure is it a problem of mb-applet-powerctrl?

I deinstalled mb-applet-powerctrl and rebooted the Zaurus but the problem still exists. So it's not a problem caused by the mb-applet-powerctrl.

regards

Bernd
C1000, 2.6.24-yonggun, Debian EABI