mersenneforum.org  

Go Back   mersenneforum.org > Great Internet Mersenne Prime Search > Software

Reply
 
Thread Tools
Old 2008-11-04, 22:27   #1
Traveller
 
May 2006
Ann Arbor, MI, USA

816 Posts
Default False OnBattery detection

After upgrading to mprime 25.7, I am having a problem under Linux (best verified on Kubuntu 8.10 i386).

The communication with the server works and all the assignments transferred, but the worker thread will not stay running. It stops with a message about being on battery power. Nothing else happens no matter what I do. The OS is responding properly to on/off battery events.

The workaround I have is to set the RunOnBattery=1 in local.txt,

Any ideas? I haven't found any reference to this in my archive searches.

Thanks,
Traveller
Traveller is offline   Reply With Quote
Old 2008-11-04, 23:25   #2
Uncwilly
6809 > 6502
 
Uncwilly's Avatar
 
"""""""""""""""""""
Aug 2003
101×103 Posts

22·41·61 Posts
Default

This was one of the issues that George had wanted tested for v25.7. No one every gave him an answer.
Uncwilly is online now   Reply With Quote
Old 2008-11-05, 07:28   #3
S00113
 
S00113's Avatar
 
Dec 2003

23·33 Posts
Default

Quote:
Originally Posted by Uncwilly View Post
This was one of the issues that George had wanted tested for v25.7. No one every gave him an answer.
Yes, I did
S00113 is offline   Reply With Quote
Old 2008-11-05, 11:36   #4
Traveller
 
May 2006
Ann Arbor, MI, USA

23 Posts
Default

Quote:
Originally Posted by S00113 View Post
Yes, I did
Only I am having the opposite issue. I have to force mprime to RunOnBattery to get it to stay running when plugged in. However, I agree with the dynamic throttling based on temperature.
Traveller is offline   Reply With Quote
Old 2008-11-06, 01:51   #5
starrynte
 
starrynte's Avatar
 
Oct 2008
California

EC16 Posts
Default

Quote:
Originally Posted by Traveller View Post
I agree with the dynamic throttling based on temperature.
seconded! though I want it in prime95
starrynte is offline   Reply With Quote
Old 2008-11-21, 23:59   #6
Prime95
P90 years forever!
 
Prime95's Avatar
 
Aug 2002
Yeehaw, FL

24×32×53 Posts
Default

Can you Linux users tell me what /proc/acpi/battery/BAT0/state contains?
My research says this is where Linux stores the battery state.
Prime95 is online now   Reply With Quote
Old 2008-11-23, 20:09   #7
Traveller
 
May 2006
Ann Arbor, MI, USA

23 Posts
Default Info from Kubuntu 8.10 on Dell Inspiron E1405

Quote:
Originally Posted by Prime95 View Post
Can you Linux users tell me what /proc/acpi/battery/BAT0/state contains?
My research says this is where Linux stores the battery state.
Fully charged on AC:
present: yes
capacity state: ok
charging state: charged
present rate: 1 mA
remaining capacity: 7800 mAh
present voltage: 12513 mV

On Battery:
present: yes
capacity state: ok
charging state: discharging
present rate: 371 mA
remaining capacity: 6667 mAh
present voltage: 12388 mV

Back on AC, charging:
present: yes
capacity state: ok
charging state: charging
present rate: 1849 mA
remaining capacity: 6149 mAh
present voltage: 12731 mV

I have also seen the present rate display 'unknown', but that shouldn't affect the needs of the mprime program.

I hope that helps,
Traveller
Traveller is offline   Reply With Quote
Old 2008-11-23, 20:40   #8
Prime95
P90 years forever!
 
Prime95's Avatar
 
Aug 2002
Yeehaw, FL

167208 Posts
Default

Thanks. That is what I was expecting. Re-re-examining the code has uncovered my bug. Will be fixed in 25.8.
Prime95 is online now   Reply With Quote
Old 2008-12-05, 17:45   #9
sichase
 
sichase's Avatar
 
Dec 2008
Sunny Northern California

3×19 Posts
Default

I'm running v25.7 build 3 under Windows MP and have also noticed a false onBattery situation. I have two workers running on my dual-core T7300, and after removing power cable only one worker went into Battery Pause. The other kept running. After recabling the power, both workers toggled so that the other worker was then in an incorrect Battery Pause. Repeated toggling of the power state repeatedly toggled both workers until I exited and restarted Prime95. Just thought you should know...

--Scott
sichase is offline   Reply With Quote
Old 2009-01-04, 09:28   #10
Traveller
 
May 2006
Ann Arbor, MI, USA

23 Posts
Default Better

I just tested mprime version 25.8.2 on my Kubuntu 8.10 i386 laptop.

I can now run mprime without the RunOnBattery=1 that was needed before. However, it is still not detecting the battery status when I pull the plug and continues to run.

The change in sense from Not Running to Running reduces the severity of this issue for me.

Let me know if you need any additional information.

Thanks,
Traveller
Traveller is offline   Reply With Quote
Old 2009-01-30, 00:45   #11
SIegmund
 

2×7×17×19 Posts
Default Similar problem....

Running 25.7 on a Windows XP laptop, the typical 2-processor kind of thing everyone is buying now.

When the power cable is unplugged, both clients correctly always stop. When the power cable is plugged back in, sometimes but not always, only one client will resume and the other will continue to think it is on battery pause forever. Unplugging and replugging the power cable again always restarts both of them.

Mostly I notice it if I accidentally snag the cord and plug it back in. I have one client running trial factoring and the other running LL tests. It is either always or almost-always the LL test client that fails to restart.

Speculation: if the cord is unplugged and replugged within the space of a couple seconds, the LL test client is busy shutting down and writing results at the time the AC power comes back on. Easy fix by having it re-check the power state after it finishes shutting down, or by holding the restart-the-client message in a queue if the client is busy when the message is sent, maybe?
  Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
LL GPU error-detection side computation preda GPU Computing 14 2017-05-09 07:47
R.H. May be False? wtf flouran Math 34 2009-12-08 00:09
False primes Unregistered Information & Answers 8 2009-01-21 01:45
Gap detection Joe O Prime Sierpinski Project 6 2006-11-05 18:52
False positive? Pi Rho Lounge 4 2003-04-23 14:11

All times are UTC. The time now is 03:38.


Wed Oct 20 03:38:37 UTC 2021 up 88 days, 22:07, 0 users, load averages: 1.86, 2.01, 1.91

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.

This forum has received and complied with 0 (zero) government requests for information.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.
A copy of the license is included in the FAQ.