mersenneforum.org

mersenneforum.org (https://www.mersenneforum.org/index.php)
-   Mlucas (https://www.mersenneforum.org/forumdisplay.php?f=118)
-   -   Mlucas v19.1 available (https://www.mersenneforum.org/showthread.php?t=26483)

ewmayer 2021-06-19 20:37

[QUOTE=bayanne;581393]I probably did not express my request very clearly. I was hoping to update my Account Assignments Details which at present only show that my assignment was assigned on 2021-06-16 and that the last update was the same day. I have tried running primenet.py but it has not updated my progress on the exponent, or given the the estimated finish time.
Can this be done with primenet.py?[/QUOTE]

I refer you again to the README:

"You must be connected to the internet when you launch the script; once it has done its initial work-fetching you can be offline most of the time; the program will simply periodically check whether there are any new results in the run directory in which it was launched; if yes *and* it is able to connect to the PrimeNet server it will submit the new results (usually just one, unless you are offline nearly all the time) and fetch new work; otherwise it will sleep and retry later. [b]The default is to check for 'results to submit/work to get?' every 6 hours[/b]; you may override this via the -t option, followed by your desired time interval in seconds. '-t 0' means run a single-shot get-work-to-do and quit, if for some reason you prefer to periodically run the script manually yourself."

That periodic checkin also updates assignment details - my 'cpus' page is up to date.

1. What *exact* command did you use to run the py-script, and what was the resulting terminal output?

2. Does 'ps aux |grep primenet' show a running primenet.py?

3. If 'yes' to [2], does the exponent page show any update in last 12 hours?

bayanne 2021-06-20 05:00

[QUOTE=ewmayer;581411]I refer you again to the README:

"You must be connected to the internet when you launch the script; once it has done its initial work-fetching you can be offline most of the time; the program will simply periodically check whether there are any new results in the run directory in which it was launched; if yes *and* it is able to connect to the PrimeNet server it will submit the new results (usually just one, unless you are offline nearly all the time) and fetch new work; otherwise it will sleep and retry later. [b]The default is to check for 'results to submit/work to get?' every 6 hours[/b]; you may override this via the -t option, followed by your desired time interval in seconds. '-t 0' means run a single-shot get-work-to-do and quit, if for some reason you prefer to periodically run the script manually yourself."

That periodic checkin also updates assignment details - my 'cpus' page is up to date.

1. What *exact* command did you use to run the py-script, and what was the resulting terminal output?

2. Does 'ps aux |grep primenet' show a running primenet.py?

3. If 'yes' to [2], does the exponent page show any update in last 12 hours?[/QUOTE]

I used the command :
python primenet.py -d -T 100 -u [Username] -p [password]

I entered ps aux lgrep primenet
and received:

ps: illegal argument: lgrep
usage: ps [-AaCcEefhjlMmrSTvwXx] [-O fmt | -o fmt] [-G gid[,gid...]]
[-u]
[-p pid[,pid...]] [-t tty[,tty...]] [-U user[,user...]]
ps [-L]

I then restarted python primenet.py
and received:

primenet.py: send_progress: Cannot update, the registration is not done
primenet.py: send_progress: Call primenet.py with --register option

I then entered ps aux lgrep primenet
and nothing

Please forgive my lack of familiarity with these commands and instructions

bayanne 2021-06-20 05:01

[QUOTE=M344587487;581395]If you have a watt meter, it'd be interesting to know how much power the M1 chip draws under mlucas load. I've only just noticed Lorenzo's stats otherwise I'd be bugging you for that too, what a tasty thing to have missed.
[/QUOTE]

Sorry, I don't have one

Happy5214 2021-06-20 06:30

[QUOTE=ewmayer;581411]2. Does 'ps aux |grep primenet' show a running primenet.py?[/QUOTE]

[QUOTE=bayanne;581428]I entered ps aux lgrep primenet
and received:

ps: illegal argument: lgrep
usage: ps [-AaCcEefhjlMmrSTvwXx] [-O fmt | -o fmt] [-G gid[,gid...]]
[-u]
[-p pid[,pid...]] [-t tty[,tty...]] [-U user[,user...]]
ps [-L]
[/QUOTE]

Just a drive-by assist here. Spacing and a bad font choice might have been problems in ewmayer's post there. The invocation was [c]ps aux | grep primenet[/c], with a vertical bar between [c]aux[/c] and [c]grep[/c]. (This pipes, or redirects, the output of [C]ps aux[/C] to [C]grep primenet[/C], which will search for the string [C]"primenet"[/C] in the process list it's receiving.) bayanne accidentally used a lowercase L instead of a bar character, which caused the illegal argument error above.

bayanne 2021-06-20 11:15

[QUOTE=Happy5214;581433]Just a drive-by assist here. Spacing and a bad font choice might have been problems in ewmayer's post there. The invocation was [c]ps aux | grep primenet[/c], with a vertical bar between [c]aux[/c] and [c]grep[/c]. (This pipes, or redirects, the output of [C]ps aux[/C] to [C]grep primenet[/C], which will search for the string [C]"primenet"[/C] in the process list it's receiving.) bayanne accidentally used a lowercase L instead of a bar character, which caused the illegal argument error above.[/QUOTE]

Thanks, tried ps aux | grep primenet
but still nothing

ewmayer 2021-06-20 20:54

[QUOTE=bayanne;581428]primenet.py: send_progress: Cannot update, the registration is not done
primenet.py: send_progress: Call primenet.py with --register option[/QUOTE]

That 2nd error line is telling you what to do - the first time you invoke the now-Primenet-API-enabled script, you need to do some basic registration via 'primenet.py with --register'. Try that, and see what it prompts you for. Once done, reinvoke the script using your original command sequence.

That's on me - I see I forgot to mention the --register step on the README. Go ahead and try it, and I'll use your result/feedback to update the README.

bayanne 2021-06-21 09:50

[QUOTE=ewmayer;581462]That 2nd error line is telling you what to do - the first time you invoke the now-Primenet-API-enabled script, you need to do some basic registration via 'primenet.py with --register'. Try that, and see what it prompts you for. Once done, reinvoke the script using your original command sequence.

That's on me - I see I forgot to mention the --register step on the README. Go ahead and try it, and I'll use your result/feedback to update the README.[/QUOTE]

My computer is registered, but still no further forward about being able to provide updates to Primenet

tdulcet 2021-06-21 15:36

[QUOTE=ewmayer;581462]That 2nd error line is telling you what to do - the first time you invoke the now-Primenet-API-enabled script, you need to do some basic registration via 'primenet.py with --register'. Try that, and see what it prompts you for. Once done, reinvoke the script using your original command sequence.

That's on me - I see I forgot to mention the --register step on the README.[/QUOTE]

Just to note, Daniel and I's updated/[URL="https://www.mersenneforum.org/showthread.php?t=26574"][FONT=Arial]improved [/FONT]PrimeNet script[/URL] automatically registers the computer with PrimeNet if the user does NOT provide a password. The password is not needed because it can use the PrimeNet API to get assignments, just as Prime95/MPrime does.

For reference, the first time it can be run like this to just register the instance with PrimeNet:
[C]python3 primenet.py -d -t 0 -T <Worktype> -u <PrimeNet User ID>[/C]

and then it can subsequently be run like this to automatically get assignments, report assignment results and progress to PrimeNet:
[C]python3 primenet.py -d[/C]

If setting up more than one worker/run on the computer, the the above two commands are:
[C]python3 primenet.py -d -t 0 -T <Worktype> -u <PrimeNet User ID> --num_workers <Number of workers>[/C]
and
[C]python3 primenet.py -d -c <Worker/CPU core number>[/C]

See [URL="https://github.com/tdulcet/Distributed-Computing-Scripts#primenet"]here[/URL] or run [C]python3 primenet.py --help[/C] for the full list of supported options. The [URL="https://www.mersenneforum.org/mayer/README.html#download1"]Mlucas install script[/URL] can automate all of this for Linux users.

ewmayer 2021-06-21 19:53

[QUOTE=bayanne;581477]My computer is registered, but still no further forward about being able to provide updates to Primenet[/QUOTE]

Meaning you tried 'python primenet.py --register'? What happened on doing that? That should prompt for your primenet login userid. I just tried it from a newly-created test directory on one of my boxes:
[i]
[ewmayer@localhost obj_avx512]$ python primenet.py --register
Usage: primenet.py [options]

primenet.py: error: To register the instance, --username and --hostname are required
[/i]
OK, retry with
[i]
python primenet.py --register --username ewmayer --hostname knl_test
GUID 9e4336ce6f928e63d0f19696f688720f correctly registered with the following features:
Username: ewmayer
Hostname: knl_test
CPU model: cpu.unknown
CPU features:
CPU L1 cache size: 8kB
CPU L2 cache size: 512kB
CPU cores: 1
CPU thread per core: 0
CPU frequency: 100MHz
Memory size: 0MB
If you want to change the value, please rerun with the corresponding options or edit the local.ini file and rerun with --register option
You can see the result in this page:
[url]https://www.mersenne.org/editcpu/?g=9e4336ce6f928e63d0f19696f688720f[/url]
[/i]
Registration creates a local.ini file, here mine from the above:
[code][primenet]
worktype = 101
num_cache = 1
percent_limit = 90
hostname = knl_test
cpu_model = cpu.unknown
features =
frequency = 100
memory = 0
l1 = 8
l2 = 512
np = 1
hp = 0
username = ewmayer
guid = 9e4336ce6f928e63d0f19696f688720f[/code]
Then reinvoke the script using the syntax from the README:
[i]
python primenet.py -d [-T [worktype]] -u [uid] -p [pwd] [-t [frequency]] &
[/i]
Note since registration has created a default worktype and most folks are OK with the default every-6-hour updates, so you really now just want
[i]
python primenet.py -d -u [uid] -p [pwd]
[/i]
That will add couple fields to local.ini after the first few updates-to-server, including

password = [pwd]
usec_per_iter = [last per-iter-time for current assignment]

======================

@tdulcet: Correct me if I'm wrong, but I thought your setup script is Linux-only. Bayanne is using a Mac.

bayanne 2021-06-22 04:53

OK, sorted now
used:

python primenet.py -d

This created estimated completion, and days to go
Used:

python primenet.py --register --username[] --hostname[]

And this confirmed registration details

Thanks to you both.

tdulcet 2021-06-22 11:47

[QUOTE=ewmayer;581505]@tdulcet: Correct me if I'm wrong, but I thought your setup script is Linux-only. Bayanne is using a Mac.[/QUOTE]

Yes, my setup/install script is Linux only, but our PrimeNet script will work on Windows, macOS and Linux, the same as Loïc Le Loarer's PrimeNet script, which ours was built on. The commands I listed above were for manually using the PrimeNet script independently of the Mlucas install script.

The commands and output for our PrimeNet script is roughly the same as what you posted, except there is no [C]-r/--register[/C] option since that is automatic. With Loïc's PrimeNet script, the [C]-r/--register[/C] option controlled whether it either used the PrimeNet API to report assignment results and progress or only did manual testing. With Daniel and I's PrimeNet script, the [C]-p/--password[/C] option controls this instead. If the user provides a password, it will only do manual testing and will not report the progress (this was of course the default behavior for old versions of the PrimeNet script before Loïc Le Loarer's version). If they do NOT provide a password, it will completely use the PrimeNet v5 API, just as Prime95/MPrime does.

There are other minor differences too, including different defaults. That [C]usec_per_iter[/C] field was renamed to [C]msec_per_iter[/C], since the value of course is in milliseconds not microseconds. It also now defaults to hourly updates to support PRP proof uploading with GpuOwl and eventually Mlucas v20.1 (the Linux install script will keep the default 6 hour updates until v20.1 is released). Please see the [URL="https://www.mersenneforum.org/showthread.php?t=26574"]dedicated thread[/URL] for a long list of all our changes/improvements.


All times are UTC. The time now is 05:11.

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