PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Serveur - Sécurité et techniques > linux.debian.user > how to set network io priority for a process?
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
linux.debian.user debian-user@lists.debian.org.

how to set network io priority for a process?

Réponse
 
LinkBack Outils de la discussion
Vieux 29/07/2007, 20h10   #1
Douglas Allan Tutty
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut how to set network io priority for a process?

I'm on slow dialup. Downloads of iso's take days. Yet, I still want to
be able to browse the internet.

I would like to set up something like trickle that will run something
but limit its bandwidth so that it lower's its priority.

For example, wget and rsync allow one to limit the bandwidth to a set
rate. However, if nothing else wants the connection, this wastes
available bandwidth. Conversely, if I try to view a big web site, it
would like the wget or rsync to get out of the way while I'm doing it.

Trickle allows one to set a rate for programs that don't give the
option. ionice does something similar for disk io.

What I want is something like ionice but for network bandwidth.

Any suggestions?

Thanks,

Doug.


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Vieux 29/07/2007, 21h30   #2
Andrew J. Barr
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: how to set network io priority for a process?

On 7/29/07, Douglas Allan Tutty <dtutty@porchlight.ca> wrote:
> I'm on slow dialup. Downloads of iso's take days. Yet, I still want to
> be able to browse the internet.
>
> I would like to set up something like trickle that will run something
> but limit its bandwidth so that it lower's its priority.


I think the QoS or traffic shaping features of the kernel may be able
to do what you want.

--
Andrew Barr

We matter more than pounds and pence,
your economic theory makes no sense...


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Vieux 29/07/2007, 21h40   #3
Celejar
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: how to set network io priority for a process?

On Sun, 29 Jul 2007 15:28:17 -0400
"Andrew J. Barr" <andrew.james.barr@gmail.com> wrote:

> On 7/29/07, Douglas Allan Tutty <dtutty@porchlight.ca> wrote:
> > I'm on slow dialup. Downloads of iso's take days. Yet, I still want to
> > be able to browse the internet.
> >
> > I would like to set up something like trickle that will run something
> > but limit its bandwidth so that it lower's its priority.

>
> I think the QoS or traffic shaping features of the kernel may be able
> to do what you want.


I have issues similar to Doug's, and I have also wondered whether
kernel based traffic shaping is what I need. Since we both use
shorewall, which has an interface to the kernel's shaping capabilities,
I suppose we ought to read shorewall-doc/html/traffic_shaping.htm

> Andrew Barr


Celejar
--
mailmin.sourceforge.net - remote access via secure (OpenPGP) email
ssuds.sourceforge.net - A Simple Sudoku Solver and Generator


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Vieux 29/07/2007, 22h20   #4
Douglas Allan Tutty
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: how to set network io priority for a process?

On Sun, Jul 29, 2007 at 03:32:44PM -0400, Celejar wrote:

> I have issues similar to Doug's, and I have also wondered whether
> kernel based traffic shaping is what I need. Since we both use
> shorewall, which has an interface to the kernel's shaping capabilities,
> I suppose we ought to read shorewall-doc/html/traffic_shaping.htm
>


That's what I'm about to do. I've only recently (within the past hour
or two) determined that traffic shaping is what I'm trying to do.

Ideally, I would just set ftp and rync to second priority and let
everything else be normal.

I'll keep the list posted.

Doug.


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Vieux 29/07/2007, 23h00   #5
Mike Bird
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: how to set network io priority for a process?

On Sunday 29 July 2007 13:11, Douglas Allan Tutty wrote:
> On Sun, Jul 29, 2007 at 03:32:44PM -0400, Celejar wrote:
> > I have issues similar to Doug's, and I have also wondered whether
> > kernel based traffic shaping is what I need. Since we both use
> > shorewall, which has an interface to the kernel's shaping capabilities,
> > I suppose we ought to read shorewall-doc/html/traffic_shaping.htm

>
> That's what I'm about to do. I've only recently (within the past hour
> or two) determined that traffic shaping is what I'm trying to do.


This is not a solution, just a tip to guide your research.

Traffic "shaping" usually applies to output. "Policing"[0] usually applies
to input. Since we often can't shape on the router transmitting data to
us, in such cases we instead have to police on the receiving end and rely
on the sender's TCP flow control to reduce rates to the point where
packets aren't lost. This doesn't work for UDP and ICMP and works poorly
for varying loads.

--Mike Bird

[0] http://www.cisco.com/warp/public/105...icingvsshaping


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Vieux 29/07/2007, 23h00   #6
Mike Bird
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: how to set network io priority for a process?

On Sunday 29 July 2007 13:11, Douglas Allan Tutty wrote:
> On Sun, Jul 29, 2007 at 03:32:44PM -0400, Celejar wrote:
> > I have issues similar to Doug's, and I have also wondered whether
> > kernel based traffic shaping is what I need. Since we both use
> > shorewall, which has an interface to the kernel's shaping capabilities,
> > I suppose we ought to read shorewall-doc/html/traffic_shaping.htm

>
> That's what I'm about to do. I've only recently (within the past hour
> or two) determined that traffic shaping is what I'm trying to do.


This is not a solution, just a tip to guide your research.

Traffic "shaping" usually applies to output. "Policing"[0] usually applies
to input. Since we often can't shape on the router transmitting data to
us, in such cases we instead have to police on the receiving end and rely
on the sender's TCP flow control to reduce rates to the point where
packets aren't lost. This doesn't work for UDP and ICMP and works poorly
for varying loads.

--Mike Bird

[0] http://www.cisco.com/warp/public/105...icingvsshaping


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Vieux 29/07/2007, 23h20   #7
Douglas Allan Tutty
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: how to set network io priority for a process?\

On Sun, Jul 29, 2007 at 01:54:36PM -0700, Mike Bird wrote:

> Traffic "shaping" usually applies to output. "Policing"[0] usually applies
> to input. Since we often can't shape on the router transmitting data to
> us, in such cases we instead have to police on the receiving end and rely
> on the sender's TCP flow control to reduce rates to the point where
> packets aren't lost. This doesn't work for UDP and ICMP and works poorly
> for varying loads.


Right, but downloads happen by blocks. Couldn't something sit somewhere
on the data stream and delay the requests for the net ftp or rsync block
if there's an active http transfer in progress? In other words,
controll the download bandwidth by throttling the rate of upbound
requests.

Doug.


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Vieux 29/07/2007, 23h20   #8
Douglas Allan Tutty
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: how to set network io priority for a process?\

On Sun, Jul 29, 2007 at 01:54:36PM -0700, Mike Bird wrote:

> Traffic "shaping" usually applies to output. "Policing"[0] usually applies
> to input. Since we often can't shape on the router transmitting data to
> us, in such cases we instead have to police on the receiving end and rely
> on the sender's TCP flow control to reduce rates to the point where
> packets aren't lost. This doesn't work for UDP and ICMP and works poorly
> for varying loads.


Right, but downloads happen by blocks. Couldn't something sit somewhere
on the data stream and delay the requests for the net ftp or rsync block
if there's an active http transfer in progress? In other words,
controll the download bandwidth by throttling the rate of upbound
requests.

Doug.


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Vieux 30/07/2007, 02h20   #9
Douglas Allan Tutty
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: how to set network io priority for a process?

On Sun, Jul 29, 2007 at 03:32:44PM -0400, Celejar wrote:

> I have issues similar to Doug's, and I have also wondered whether
> kernel based traffic shaping is what I need. Since we both use
> shorewall, which has an interface to the kernel's shaping capabilities,
> I suppose we ought to read shorewall-doc/html/traffic_shaping.htm
>


As expected, shorewall can't in this regard.

Doug.


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Vieux 30/07/2007, 04h50   #10
Celejar
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: how to set network io priority for a process?

On Sun, 29 Jul 2007 20:11:43 -0400
Douglas Allan Tutty <dtutty@porchlight.ca> wrote:

> On Sun, Jul 29, 2007 at 03:32:44PM -0400, Celejar wrote:
>
> > I have issues similar to Doug's, and I have also wondered whether
> > kernel based traffic shaping is what I need. Since we both use
> > shorewall, which has an interface to the kernel's shaping capabilities,
> > I suppose we ought to read shorewall-doc/html/traffic_shaping.htm
> >

>
> As expected, shorewall can't in this regard.


Why not?

> Doug.


Celejar
--
mailmin.sourceforge.net - remote access via secure (OpenPGP) email
ssuds.sourceforge.net - A Simple Sudoku Solver and Generator


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Vieux 30/07/2007, 05h00   #11
Douglas Allan Tutty
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: how to set network io priority for a process?

On Sun, Jul 29, 2007 at 10:42:29PM -0400, Celejar wrote:
> On Sun, 29 Jul 2007 20:11:43 -0400
> Douglas Allan Tutty <dtutty@porchlight.ca> wrote:
>
> > On Sun, Jul 29, 2007 at 03:32:44PM -0400, Celejar wrote:
> >
> > > I have issues similar to Doug's, and I have also wondered whether
> > > kernel based traffic shaping is what I need. Since we both use
> > > shorewall, which has an interface to the kernel's shaping capabilities,
> > > I suppose we ought to read shorewall-doc/html/traffic_shaping.htm
> > >

> >
> > As expected, shorewall can't in this regard.

>
> Why not?
>


At best, it can duplicate wondershaper. However, its designed for
high-speed internet access. Its hysteresis is larger than my dialup
bandwidth.

The big issue is that none of the available shaping methods work by
throttling outgoing requests for a chunck of incoming data. They are
intended to limit the rate of outbound data.

What we need is a multi-protocol proxy server that does proper
throttling of download requests.

Doug.


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Vieux 01/08/2007, 16h10   #12
Henrique de Moraes Holschuh
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: how to set network io priority for a process?

On Sun, 29 Jul 2007, Douglas Allan Tutty wrote:
> What we need is a multi-protocol proxy server that does proper
> throttling of download requests.


Squid delay pools? Will work for http and ftp.

--
"One disk to rule them all, One disk to find them. One disk to bring
them all and in the darkness grind them. In the Land of Redmond
where the shadows lie." -- The Silicon Valley Tarot
Henrique Holschuh


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Vieux 01/08/2007, 16h10   #13
Henrique de Moraes Holschuh
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: how to set network io priority for a process?

On Sun, 29 Jul 2007, Mike Bird wrote:
> packets aren't lost. This doesn't work for UDP and ICMP and works poorly
> for varying loads.


Correct. But it works wonderfully for long-lived TCP connections, and if
you are using ftp/http (and not, say, bittorrent) to get your ISOs, it will
you.

That said, there is a very undocumented way to *queue* incoming traffic. It
used to require that hideous buggy IMQ device (but at least that one is
copiously documented!), but nowadays you can do it differently (something to
do with dummy devices?) I think. You might want to look that up. That
allows one to do real shaping on incoming, without dropping packets.

--
"One disk to rule them all, One disk to find them. One disk to bring
them all and in the darkness grind them. In the Land of Redmond
where the shadows lie." -- The Silicon Valley Tarot
Henrique Holschuh


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Vieux 01/08/2007, 16h50   #14
Douglas Allan Tutty
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: how to set network io priority for a process?

On Wed, Aug 01, 2007 at 11:08:06AM -0300, Henrique de Moraes Holschuh wrote:
> On Sun, 29 Jul 2007, Douglas Allan Tutty wrote:
> > What we need is a multi-protocol proxy server that does proper
> > throttling of download requests.

>
> Squid delay pools? Will work for http and ftp.


But not rsync, which I use whenever I can for large downloads due to
errors creeping in for some reason over my noisy phone line and freqent
line drops (and susequent redials by pppd).

Such a multi-protocol proxy server doesn't need to do any caching, it
just needs to put a variable delay on the outgoing ACKs that trigger
the next download block on ftp and rsync protocols, variable on whether
there's an active http connection.

Doug.


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Vieux 01/08/2007, 16h50   #15
Douglas Allan Tutty
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: how to set network io priority for a process?

On Wed, Aug 01, 2007 at 11:08:06AM -0300, Henrique de Moraes Holschuh wrote:
> On Sun, 29 Jul 2007, Douglas Allan Tutty wrote:
> > What we need is a multi-protocol proxy server that does proper
> > throttling of download requests.

>
> Squid delay pools? Will work for http and ftp.


But not rsync, which I use whenever I can for large downloads due to
errors creeping in for some reason over my noisy phone line and freqent
line drops (and susequent redials by pppd).

Such a multi-protocol proxy server doesn't need to do any caching, it
just needs to put a variable delay on the outgoing ACKs that trigger
the next download block on ftp and rsync protocols, variable on whether
there's an active http connection.

Doug.


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Vieux 01/08/2007, 18h10   #16
Henrique de Moraes Holschuh
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: how to set network io priority for a process?

On Wed, 01 Aug 2007, Douglas Allan Tutty wrote:
> But not rsync, which I use whenever I can for large downloads due to
> errors creeping in for some reason over my noisy phone line and freqent
> line drops (and susequent redials by pppd).


Why do you allow for damaged packets at all?

I used analog async ITU-T V42 modems for a *long* time (fortunately, I was
able to move away before V9x hit the market). You really want an error-free
channel without compression for regular Internet over PPP domestic use, and
any modem still on the market should be able to deliver that to you just
fine. Just configure it for error correction without compression, and have
a proper error-free short and well-shielded serial connection to it if it is
an external modem.

> Such a multi-protocol proxy server doesn't need to do any caching, it
> just needs to put a variable delay on the outgoing ACKs that trigger
> the next download block on ftp and rsync protocols, variable on whether
> there's an active http connection.


At that point, it is easier to just configure the kernel to do what you want
re. QoS, shaping and policing.

--
"One disk to rule them all, One disk to find them. One disk to bring
them all and in the darkness grind them. In the Land of Redmond
where the shadows lie." -- The Silicon Valley Tarot
Henrique Holschuh


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Vieux 01/08/2007, 18h10   #17
Henrique de Moraes Holschuh
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: how to set network io priority for a process?

On Wed, 01 Aug 2007, Douglas Allan Tutty wrote:
> But not rsync, which I use whenever I can for large downloads due to
> errors creeping in for some reason over my noisy phone line and freqent
> line drops (and susequent redials by pppd).


Why do you allow for damaged packets at all?

I used analog async ITU-T V42 modems for a *long* time (fortunately, I was
able to move away before V9x hit the market). You really want an error-free
channel without compression for regular Internet over PPP domestic use, and
any modem still on the market should be able to deliver that to you just
fine. Just configure it for error correction without compression, and have
a proper error-free short and well-shielded serial connection to it if it is
an external modem.

> Such a multi-protocol proxy server doesn't need to do any caching, it
> just needs to put a variable delay on the outgoing ACKs that trigger
> the next download block on ftp and rsync protocols, variable on whether
> there's an active http connection.


At that point, it is easier to just configure the kernel to do what you want
re. QoS, shaping and policing.

--
"One disk to rule them all, One disk to find them. One disk to bring
them all and in the darkness grind them. In the Land of Redmond
where the shadows lie." -- The Silicon Valley Tarot
Henrique Holschuh


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Vieux 01/08/2007, 19h10   #18
Douglas Allan Tutty
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: how to set network io priority for a process?

On Wed, Aug 01, 2007 at 01:41:56PM -0300, Henrique de Moraes Holschuh wrote:

> Try lftp. I know of no better ftp client. But it is command-line, which is
> just as well: the transfer engine is well cared for, and not a secondary
> thing to the GUI.
>


I've got lftp installed but haven't tried it. I will. However, I would
have thought that wget would be the cat's meow since its what
debootstrap uses. Perhaps they only use it because its small.

Doug.


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Vieux 01/08/2007, 19h10   #19
Douglas Allan Tutty
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: how to set network io priority for a process?

On Wed, Aug 01, 2007 at 01:03:52PM -0300, Henrique de Moraes Holschuh wrote:
> On Wed, 01 Aug 2007, Douglas Allan Tutty wrote:
> > But not rsync, which I use whenever I can for large downloads due to
> > errors creeping in for some reason over my noisy phone line and freqent
> > line drops (and susequent redials by pppd).

>
> Why do you allow for damaged packets at all?
>
> I used analog async ITU-T V42 modems for a *long* time (fortunately, I was
> able to move away before V9x hit the market). You really want an error-free
> channel without compression for regular Internet over PPP domestic use, and
> any modem still on the market should be able to deliver that to you just
> fine. Just configure it for error correction without compression, and have
> a proper error-free short and well-shielded serial connection to it if it is
> an external modem.
>


Its an external 3Com Courier modem, that's not the problem. I don't
know _where_ the errors happen, but the more times the download is
interrupted the more frequently there are issues somewhere in the iso.
Not a problem if I can find an rsync server with the file, but a royal
pain with plain ftp. I _once_ had to download three defective copies of
an ISO (took a couple of weeks) and use that gnu tool that creates a
single good file out of three bad ones.

It has never been a problem when downloading packages via aptitude, even
if I have to interrupt it. However, under sarge, I found that gftp
would die out and not resume properly, corrupting the file, and that
sometimes wget will also corrupt the file.

For all I know, the errors are happening upstream of my ISP's modem.
I'm using porchlight which gives me unlimited for 9.99 per month. This
never happened when I lived outside of Parry Sound, farther away from
the telephone exchange, but paid $24.95 per month.

Doug.


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Vieux 01/08/2007, 19h30   #20
Henrique de Moraes Holschuh
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: how to set network io priority for a process?

On Wed, 01 Aug 2007, Douglas Allan Tutty wrote:
> > I used analog async ITU-T V42 modems for a *long* time (fortunately, I was
> > able to move away before V9x hit the market). You really want an error-free
> > channel without compression for regular Internet over PPP domestic use, and
> > any modem still on the market should be able to deliver that to you just
> > fine. Just configure it for error correction without compression, and have
> > a proper error-free short and well-shielded serial connection to it if it is
> > an external modem.

>
> Its an external 3Com Courier modem, that's not the problem. I don't


That's the very best async modem ever produced, AFAIK. Especially if you
managed to get the latest firmware into it before 3com went to become
another useless outlet for stuff designed by others.

> know _where_ the errors happen, but the more times the download is
> interrupted the more frequently there are issues somewhere in the iso.


It is probably not being restarted properly, and some crap is left in the
file. One way you can get rid of that problem is to truncate the file
throwing away the last 1MB of it or so, for example (assuming this is not
one of those "multiple connections per file" transfers, in which case the
bogosity might be anywhere in the file).

If you DO get data errors with a Courier in error-correcting mode, it means
your serial cabling or serial port is bad, or that the other side is sending
you bad data.

And TCP protects data end-to-end against damage, so it can't be corrupted
that anyway, come to think of it.

> It has never been a problem when downloading packages via aptitude, even
> if I have to interrupt it. However, under sarge, I found that gftp
> would die out and not resume properly, corrupting the file, and that
> sometimes wget will also corrupt the file.


Try lftp. I know of no better ftp client. But it is command-line, which is
just as well: the transfer engine is well cared for, and not a secondary
thing to the GUI.

> For all I know, the errors are happening upstream of my ISP's modem.


Not on TCP connections. If it is ftp transfers that are being damaged when
the line is teared down, it is because your ftp client is broken.

--
"One disk to rule them all, One disk to find them. One disk to bring
them all and in the darkness grind them. In the Land of Redmond
where the shadows lie." -- The Silicon Valley Tarot
Henrique Holschuh


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Vieux 01/08/2007, 19h30   #21
Henrique de Moraes Holschuh
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: how to set network io priority for a process?

On Wed, 01 Aug 2007, Douglas Allan Tutty wrote:
> > I used analog async ITU-T V42 modems for a *long* time (fortunately, I was
> > able to move away before V9x hit the market). You really want an error-free
> > channel without compression for regular Internet over PPP domestic use, and
> > any modem still on the market should be able to deliver that to you just
> > fine. Just configure it for error correction without compression, and have
> > a proper error-free short and well-shielded serial connection to it if it is
> > an external modem.

>
> Its an external 3Com Courier modem, that's not the problem. I don't


That's the very best async modem ever produced, AFAIK. Especially if you
managed to get the latest firmware into it before 3com went to become
another useless outlet for stuff designed by others.

> know _where_ the errors happen, but the more times the download is
> interrupted the more frequently there are issues somewhere in the iso.


It is probably not being restarted properly, and some crap is left in the
file. One way you can get rid of that problem is to truncate the file
throwing away the last 1MB of it or so, for example (assuming this is not
one of those "multiple connections per file" transfers, in which case the
bogosity might be anywhere in the file).

If you DO get data errors with a Courier in error-correcting mode, it means
your serial cabling or serial port is bad, or that the other side is sending
you bad data.

And TCP protects data end-to-end against damage, so it can't be corrupted
that anyway, come to think of it.

> It has never been a problem when downloading packages via aptitude, even
> if I have to interrupt it. However, under sarge, I found that gftp
> would die out and not resume properly, corrupting the file, and that
> sometimes wget will also corrupt the file.


Try lftp. I know of no better ftp client. But it is command-line, which is
just as well: the transfer engine is well cared for, and not a secondary
thing to the GUI.

> For all I know, the errors are happening upstream of my ISP's modem.


Not on TCP connections. If it is ftp transfers that are being damaged when
the line is teared down, it is because your ftp client is broken.

--
"One disk to rule them all, One disk to find them. One disk to bring
them all and in the darkness grind them. In the Land of Redmond
where the shadows lie." -- The Silicon Valley Tarot
Henrique Holschuh


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Vieux 01/08/2007, 20h40   #22
Henrique de Moraes Holschuh
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: how to set network io priority for a process?

On Wed, 01 Aug 2007, Douglas Allan Tutty wrote:
> On Wed, Aug 01, 2007 at 01:41:56PM -0300, Henrique de Moraes Holschuh wrote:
> > Try lftp. I know of no better ftp client. But it is command-line, which is
> > just as well: the transfer engine is well cared for, and not a secondary
> > thing to the GUI.

>
> I've got lftp installed but haven't tried it. I will. However, I would
> have thought that wget would be the cat's meow since its what
> debootstrap uses. Perhaps they only use it because its small.


wget is for script use. lftp is for interactive use :-)

And AFAIK curl is supposed to be better than wget for script use, but I
won't go into that topic.

--
"One disk to rule them all, One disk to find them. One disk to bring
them all and in the darkness grind them. In the Land of Redmond
where the shadows lie." -- The Silicon Valley Tarot
Henrique Holschuh


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Vieux 01/08/2007, 20h50   #23
Douglas Allan Tutty
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: how to set network io priority for a process?

On Wed, Aug 01, 2007 at 03:33:14PM -0300, Henrique de Moraes Holschuh wrote:
> On Wed, 01 Aug 2007, Douglas Allan Tutty wrote:
> > On Wed, Aug 01, 2007 at 01:41:56PM -0300, Henrique de Moraes Holschuh wrote:
> > > Try lftp. I know of no better ftp client. But it is command-line, which is
> > > just as well: the transfer engine is well cared for, and not a secondary
> > > thing to the GUI.

> >
> > I've got lftp installed but haven't tried it. I will. However, I would
> > have thought that wget would be the cat's meow since its what
> > debootstrap uses. Perhaps they only use it because its small.

>
> wget is for script use. lftp is for interactive use :-)


Except that for a download that I have to restart 5 or 10 times, its
easier to put the url in a file and use wget, or for rsync I put the
whole command line in a file, pound-hack it, chmod +x and away it goes.

If lftp had a download queue that was persistant between invocations, it
would be useful.

>
> And AFAIK curl is supposed to be better than wget for script use, but I
> won't go into that topic.
>


I'll look into it.

Doug.


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Vieux 01/08/2007, 20h50   #24
Douglas Allan Tutty
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: how to set network io priority for a process?

On Wed, Aug 01, 2007 at 03:33:14PM -0300, Henrique de Moraes Holschuh wrote:
> On Wed, 01 Aug 2007, Douglas Allan Tutty wrote:
> > On Wed, Aug 01, 2007 at 01:41:56PM -0300, Henrique de Moraes Holschuh wrote:
> > > Try lftp. I know of no better ftp client. But it is command-line, which is
> > > just as well: the transfer engine is well cared for, and not a secondary
> > > thing to the GUI.

> >
> > I've got lftp installed but haven't tried it. I will. However, I would
> > have thought that wget would be the cat's meow since its what
> > debootstrap uses. Perhaps they only use it because its small.

>
> wget is for script use. lftp is for interactive use :-)


Except that for a download that I have to restart 5 or 10 times, its
easier to put the url in a file and use wget, or for rsync I put the
whole command line in a file, pound-hack it, chmod +x and away it goes.

If lftp had a download queue that was persistant between invocations, it
would be useful.

>
> And AFAIK curl is supposed to be better than wget for script use, but I
> won't go into that topic.
>


I'll look into it.

Doug.


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Vieux 02/08/2007, 02h50   #25
Henrique de Moraes Holschuh
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: how to set network io priority for a process?

On Wed, 01 Aug 2007, Douglas Allan Tutty wrote:
> Except that for a download that I have to restart 5 or 10 times, its
> easier to put the url in a file and use wget, or for rsync I put the
> whole command line in a file, pound-hack it, chmod +x and away it goes.
>
> If lftp had a download queue that was persistant between invocations, it
> would be useful.


I think it does, but I never used it like that. Check the manpage.

It certainly can do what you want, if you leave it running and use it as a
shell and not as a single-command download tool. lftp can carry as many
transfers in parallel as needed, to as many sites as needed, and bounce from
one to another as needed. Pause them, queue them, stop them, etc.

If you need to detach lftp from terminals and access it remotely, screen is
your friend.

--
"One disk to rule them all, One disk to find them. One disk to bring
them all and in the darkness grind them. In the Land of Redmond
where the shadows lie." -- The Silicon Valley Tarot
Henrique Holschuh


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation