bugGNU Parallel - Bugs: bug #45981, niceload: network nice

 
 

bug #45981: niceload: network nice

Submitter:  Ole Tange <tange>
Submitted:  Wed 16 Sep 2015 06:44:18 PM UTC
   
 
Category:  None Severity:  1 - Wish
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  tange
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Sun 29 May 2016 03:25:45 PM UTC, comment #3: 

Fixed in [9d9016b8].


Ole Tange <tange>
Group administrator
Tue 06 Oct 2015 04:59:00 PM UTC, comment #2: 

Start a daemon suid root:

Traceroute to google.com
Take second/third hop
print the IP-address
Ping this hop
print the latency
Continue doing that until killed

The daemon can use different implementations of traceroute:
http://search.cpan.org/dist/Net-Traceroute-PurePerl/PurePerl.pm

$hop = hop 2 or 3 of traceroute to 8.8.8.8
print $hop
while(1) {
  $ms = ping($hop);
  print "$ms\n";
}

Anonymous
Wed 16 Sep 2015 06:55:53 PM UTC, comment #1: 
Ole Tange <tange>
Group administrator
Wed 16 Sep 2015 06:44:18 PM UTC, original submission:  

Suspend programs if they use more network than spare capacity.

http://unix.stackexchange.com/questions/230118/use-spare-network-capacity-wrapper-network-nice

# Find close router
$hop2 = hop 2 of traceroute to 8.8.8.8
# Ping the $hop2 to look for signs of congestion
ping $hop2 &
while(true) {
  if(reply time < 2 * median(reply times)) {
    # latency normal
    sleep 1
  } else {
    suspend($bandwidth_using_program, 1 second)
  }
}

Ole Tange <tange>
Group 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.

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-05-29 tange StatusNeed Info Fixed
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code