mersenneforum.org  

Go Back   mersenneforum.org > Great Internet Mersenne Prime Search > Hardware > Cloud Computing

Reply
 
Thread Tools
Old 2019-10-06, 23:49   #221
chalsall
If I May
 
chalsall's Avatar
 
"Chris Halsall"
Sep 2002
Barbados

37×263 Posts
Default

Quote:
Originally Posted by chalsall View Post
I'll definitely be writing this one up! Probably easiest to do a Notebook on Github -- there are a few steps...
OK, this was a hoot to formalize and document! And it really works!

I have just published on GitHub a Notebook which should make setting up reverse SSH tunnels through which remote Bash shell access is possible as easy as it can be. A couple of manual steps are unavoidably needed.

For anyone so interested, could I please ask you to review the Notebook, and optionally give it a try?

So everyone knows, the "public-facing SSH servers" which makes this trick possible don't have to have anything special. So long as there's an open SSH port facing the Internet and you have (even unprivileged) shell access, you can use it to gain interactive shell access (with "root credentials") into one or more Colab instances.

Please note that because Kaggle doesn't support the "echo -e" trick, I haven't been able to get this to work there. Probably several different other tricks can be used to change the root password on the instance, but I didn't bother trying.

As always, feedback (including negative) welcomed.

Last fiddled with by chalsall on 2019-10-07 at 00:10 Reason: Ackward phrasing...
chalsall is offline   Reply With Quote
Old 2019-10-08, 04:42   #222
petrw1
1976 Toyota Corona years forever!
 
petrw1's Avatar
 
"Wayne"
Nov 2006
Saskatchewan, Canada

124416 Posts
Default Is it me? Do I need to do something to get the latest version?

Based on my results page it would seem that both background sessions and the foreground session are all processing the same TF assignment.

… later ...

Until the kernel powered off and had to be restarted. Then it got a brand new assignment different from the backgrounds; rather than noticing there are other partial assignments.

… later …

Though it seems the 2 background sessions are still processing the same assignments.

Last fiddled with by petrw1 on 2019-10-08 at 05:25
petrw1 is offline   Reply With Quote
Old 2019-10-08, 05:52   #223
Uncwilly
6809 > 6502
 
Uncwilly's Avatar
 
"""""""""""""""""""
Aug 2003
101×103 Posts

978710 Posts
Default

Every time you restart the session, it should be the latest version.
Uncwilly is offline   Reply With Quote
Old 2019-10-08, 14:27   #224
chalsall
If I May
 
chalsall's Avatar
 
"Chris Halsall"
Sep 2002
Barbados

37×263 Posts
Default

Quote:
Originally Posted by petrw1 View Post
Based on my results page it would seem that both background sessions and the foreground session are all processing the same TF assignment.
Hmmm... Let me drill down on the logs, and see what's up. SPEs are /always/ possible!

But so you (and everyone) knows, if an instance shuts down and has to be relaunched, as far as GPU72 is concerned it's a brand new instance (even if it has the same assignment key name). I haven't figured out a way to manage this yet (there might not be one) -- each instance is an ***exact*** clone -- short of "uptime" there's no way to tell them apart.

And just for completeness... If an instance is stopped and then restarted (re-run), it's a different matter. The file system survives.

Edit: Further to Uncwilly... Yes, every time an instance is re-run (including, of course, launched), the latest version of the Bootstrap "payload" is downloaded.

Last fiddled with by chalsall on 2019-10-08 at 14:28
chalsall is offline   Reply With Quote
Old 2019-10-08, 16:12   #225
chalsall
If I May
 
chalsall's Avatar
 
"Chris Halsall"
Sep 2002
Barbados

37×263 Posts
Default

Quote:
Originally Posted by chalsall View Post
For anyone so interested, could I please ask you to review the [Reverse SSH Tunnel] Notebook, and optionally give it a try?
Just wondering if anyone has given this a try? Any feedback?

Because I plan to use Colab and Kaggle in some courses I'm developing, I've decided that deploying this trick should be fully automated. My students shouldn't need SSH access to a "public-facing server" to be able to SSH into a Notebook instance to do their work.

For anyone who might like to help me beta-test this, could I please ask that you PM me?

Basically, I need a few people who are comfortable at a Linux console, and who would like to be able to SSH into their Colab instances while they are running -- straight from your workstation.

I'll give links off to (currently hidden) URLs for you to set things up for automated tunnel building.
chalsall is offline   Reply With Quote
Old 2019-10-08, 20:14   #226
bayanne
 
bayanne's Avatar
 
"Tony Gott"
Aug 2002
Yell, Shetland, UK

22×83 Posts
Default

I think the whole colaboratory project is brilliant, and I started running it today.
Well done :)

These points may well have been answered already so please forgive me

I presume that I still have to submit the results manually to Priment

When the session stopped running, then I can I return back to the exponent that I was running?
The next session the project started with a fresh exponent, leaving 23.35% of 97413037 of the previous exponent still outstanding

Thanks
bayanne is offline   Reply With Quote
Old 2019-10-08, 20:40   #227
chalsall
If I May
 
chalsall's Avatar
 
"Chris Halsall"
Sep 2002
Barbados

37·263 Posts
Default

Quote:
Originally Posted by bayanne View Post
I presume that I still have to submit the results manually to Priment

The next session the project started with a fresh exponent, leaving 23.35% of 97413037 of the previous exponent still outstanding
Thanks for the kind words. This was very much a collaborative effort -- many important suggestions and observations from the early beta-testers.

Yes, I'm afraid I haven't yet built the bridge back to Primenet to automatically submit the results. It's a more difficult problem space than I had initially hoped. Still in the queue.

And, yes, you will be given that assignment back in the (near) future. For technical reasons the server currently holds it for a while before handing it back out to another one of *your* instances to finish off.

I'm currently dealing with a stupid race-condition that I haven't figured out yet, so currently, this is back to 12 hours. But I'm hoping to have this "squished" later today when I should be able to bring the recycling period down to something like 20 minutes.

BTW, while I'm "talking"... Yesterday I tidied up the GPU72 TLP to be a bit more inviting (for years the language was written for someone who already knows all about mfakt* et al) -- I'm starting to see some traffic from "newbies"; don't want to scare them away with extreme context-specific geek.

Also, I've added some additional pages for those signed in, which should make drilling down on Instance AKeys easier. This includes a new Notebook Access Keys report, which will be expanded upon.
chalsall is offline   Reply With Quote
Old 2019-10-09, 04:52   #228
bayanne
 
bayanne's Avatar
 
"Tony Gott"
Aug 2002
Yell, Shetland, UK

22×83 Posts
Default

No problem about manual submission.

Is a file called results.txt generated at all?

And, yes, the unfinished exponent was given back to me to complete.
bayanne is offline   Reply With Quote
Old 2019-10-09, 05:22   #229
Uncwilly
6809 > 6502
 
Uncwilly's Avatar
 
"""""""""""""""""""
Aug 2003
101×103 Posts

9,787 Posts
Default

Quote:
Originally Posted by bayanne View Post
Is a file called results.txt generated at all?
On the assignment page on GPU72, there is a link to your Colab results. Copy and paste to the primenet manual submission form (Chris put a handy link on the results page.)
Uncwilly is offline   Reply With Quote
Old 2019-10-09, 05:46   #230
bayanne
 
bayanne's Avatar
 
"Tony Gott"
Aug 2002
Yell, Shetland, UK

5148 Posts
Default

Quote:
Originally Posted by Uncwilly View Post
On the assignment page on GPU72, there is a link to your Colab results. Copy and paste to the primenet manual submission form (Chris put a handy link on the results page.)
Thanks, I had suspected that he might have this covered :)

Last fiddled with by bayanne on 2019-10-09 at 05:46
bayanne is offline   Reply With Quote
Old 2019-10-09, 09:27   #231
ric
 
ric's Avatar
 
Jul 2004
Milan, Ita

2×7×13 Posts
Default Colab factors not recognized/posted

I suspect a new factor-found malfunction: when TF results in a factor, this is not reported into the Instances Results page: the exponent remains assigned with a 100% completion percentage, and the subsequent communication to Primenet does not clear the relative assignment, nor the result. Attached (redacted) screenshot to hopefully make things clearer.
This behaviour is recent: until a few days ago, factors were reported flawlessly.
Attached Thumbnails
Click image for larger version

Name:	colab.png
Views:	57
Size:	19.0 KB
ID:	21092  

Last fiddled with by ric on 2019-10-09 at 09:28 Reason: speLing
ric is offline   Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Alternatives to Google Colab kriesel Cloud Computing 11 2020-01-14 18:45
Notebook enzocreti enzocreti 0 2019-02-15 08:20
Computer Diet causes Machine Check Exception -- need heuristics help Christenson Hardware 32 2011-12-25 08:17
Computer diet - Need help garo Hardware 41 2011-10-06 04:06
Workunit diet ? dsouza123 NFSNET Discussion 5 2004-02-27 00:42

All times are UTC. The time now is 07:30.


Sat Jul 17 07:30:46 UTC 2021 up 50 days, 5:18, 1 user, load averages: 1.19, 1.25, 1.38

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.