bugGNU Parallel - Bugs: bug #50703, Cache sshlogin information

 
 

bug #50703: Cache sshlogin information

Submitter:  Ole Tange <tange>
Submitted:  Sun 02 Apr 2017 08:59:52 AM UTC
 
Category:  None Severity:  1 - Wish
Item Group:  None Status:  In Progress
Privacy:  Public Assigned to:  tange
Open/Closed:  Open
* Mandatory Fields

Add a New Comment (Rich Markup)
   

Comment Type & Canned Response:
       

 

Sun 02 Apr 2017 01:51:22 PM UTC, comment #3: 

cat sshlogins | parallel --plain --results $HOME/.parallel/tmp/sshlogin/{1}/{2}.tmp echo \| ~/perl/perltime ssh '{=1 -s "$ENV{HOME}/.parallel/tmp/sshlogin/$arg[1]/$arg[2]" and skip();  =}' true \&\& mv $HOME/.parallel/tmp/sshlogin/{1}/{2}.tmp $HOME/.parallel/tmp/sshlogin/{1}/{2} :::: - ::: logintime

Ole Tange <tange>
Project Administrator
Sun 02 Apr 2017 09:15:18 AM UTC, comment #2: 

cat sshlogins |  parallel --plain --results $HOME/.parallel/tmp/sshlogin/{1}/{2}.tmp echo \| ssh '{=1 -s "$ENV{HOME}/.parallel/tmp/sshlogin/$arg[1]/$arg[2]" and skip();  =}' parallel --{2} \&\& mv $HOME/.parallel/tmp/sshlogin/{1}/{2}.tmp $HOME/.parallel/tmp/sshlogin/{1}/{2} :::: - ::: number-of-cores number-of-cpus max-line-length-allowed

Ole Tange <tange>
Project Administrator
Sun 02 Apr 2017 09:03:14 AM UTC, comment #1: 

Move loadavg and swapactivity to sshlogin-dir, too.

Ole Tange <tange>
Project Administrator
Sun 02 Apr 2017 08:59:52 AM UTC, original submission:  

Computing the number of cores and max-logins on remote systems is slow, and fails if one of the sshs get stuck.

So cache this information in ~/.parallel/tmp/sshlogin/*

Move the linelength to there aswell.

cat sshlogins | parallel --plain --results ~/.parallel/tmp/sshlogin/{1}/{2} 'echo | ssh {1} parallel --{2}' :::: - ::: number-of-cores number-of-cpus max-line-length-allowed

Ole Tange <tange>
Project Administrator

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by tange (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

     

     

     

    No changes have been made to this item

    Back to the top


    Powered by Savane 3.9