bugGNU Parallel - build and execute command lines from standard input in parallel - Bugs: bug #45981, niceload: network nice

 
 

bug #45981: niceload: network nice

Submitted by:  Ole Tange <tange>
Submitted on:  Wed 16 Sep 2015 06:44:18 PM UTC  
 
Category: NoneSeverity: 1 - Wish
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: Ole Tange <tange>
Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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

Fixed in [9d9016b8].

Ole Tange <tange>
Project AdministratorIn charge of this item.
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:

http://search.cpan.org/~hag/Net-Traceroute-1.14/Traceroute.pm
http://search.cpan.org/~smpeters/Net-Ping-2.41/lib/Net/Ping.pm With ->hires(1) gives ms. Maybe possible to do sub ms?

Ole Tange <tange>
Project AdministratorIn charge of this item.
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>
Project AdministratorIn charge of this item.

 

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

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun 29 May 2016 03:25:45 PM UTCtangeStatusNeed Info=>Fixed
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1