mersenneforum.org  

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

Reply
 
Thread Tools
Old 2009-03-08, 14:12   #1
axn
 
axn's Avatar
 
Jun 2003

23·607 Posts
Question mprime: how to stop exactly one worker (out of 2)

I want to temporarily stop/suspend one of the threads for a while without changing any worker settings or messing up my assignments. Easy enough to do in windows. Unfortunately, I can't seem to find a way to do the same with mprime.

Any ideas?
axn is online now   Reply With Quote
Old 2009-03-08, 17:13   #2
Mr. P-1
 
Mr. P-1's Avatar
 
Jun 2003

100100100012 Posts
Default

top -H will show you the active threads. You can then kill them (from the shell, or with 'k' in top) with signals SIGSTOP and SIGCONT to stop and start them respectively.

I know of no slick way to figure out which thread is which. A clumsy way would be to set reporting to every 100 itterations or some other low number, stop one of the threads, and if it's the wrong one, restart it and stop the other one.
Mr. P-1 is offline   Reply With Quote
Old 2009-03-09, 02:01   #3
Uncwilly
6809 > 6502
 
Uncwilly's Avatar
 
"""""""""""""""""""
Aug 2003
101×103 Posts

221768 Posts
Default

The latest version Prime95 will let you do that from the GUI. So, I suspect there is a switch to do that some place.
Uncwilly is offline   Reply With Quote
Old 2009-03-09, 06:42   #4
axn
 
axn's Avatar
 
Jun 2003

23×607 Posts
Default

Well, STOPing the thread didn't work (kill -STOP <pid>). When I STOP one thread, both of them disappear from top -H.

George, a little help please?
axn is online now   Reply With Quote
Old 2009-03-09, 06:53   #5
CADavis
 
CADavis's Avatar
 
Jul 2005
Des Moines, Iowa, USA

2·5·17 Posts
Default

hmm I would try in local.txt:

WorkerThreads=1

ThreadsPerTest=1

Last time I did that, it kept the [Worker #2] section in worktodo but you should make a backup just in case.
CADavis is offline   Reply With Quote
Old 2009-03-09, 15:24   #6
Prime95
P90 years forever!
 
Prime95's Avatar
 
Aug 2002
Yeehaw, FL

7,349 Posts
Default

Quote:
Originally Posted by axn View Post
George, a little help please?
The feature is not available from the Linux menus. I'll fix it in 25.9 build 4.
Prime95 is online now   Reply With Quote
Old 2009-03-10, 14:12   #7
Mr. P-1
 
Mr. P-1's Avatar
 
Jun 2003

116910 Posts
Default

Quote:
Originally Posted by axn View Post
Well, STOPing the thread didn't work (kill -STOP <pid>). When I STOP one thread, both of them disappear from top -H.
Even worse, kill -CONT doesn't work. I had to fg from the shell.

That will teach me not to test my recommendations before posting them.
Mr. P-1 is offline   Reply With Quote
Old 2009-03-28, 10:56   #8
Mr. P-1
 
Mr. P-1's Avatar
 
Jun 2003

116910 Posts
Default

Quote:
Originally Posted by Mr. P-1 View Post
I know of no slick way to figure out which thread is which.
taskset -p PID will give you the affinity mask.
Mr. P-1 is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Worker #5 and Worker#7 not running (Error ILLEGAL SUMOUT skrupian08 Information & Answers 9 2016-08-23 16:35
When will it stop? ThomRuley Msieve 20 2010-05-19 02:12
How to gracefully stop mprime under linux odin Software 1 2010-04-15 20:45
i7 920, worker stop but it never happened before.. ih2try Hardware 2 2009-08-14 10:35
RMA - stop LLR bug paulunderwood 3*2^n-1 Search 8 2004-05-19 07:10

All times are UTC. The time now is 17:10.

Thu Feb 25 17:10:14 UTC 2021 up 84 days, 13:21, 0 users, load averages: 1.85, 1.87, 1.90

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.