From owner-freebsd-questions@FreeBSD.ORG Thu Jan 20 04:14:50 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4EAB316A4CE for ; Thu, 20 Jan 2005 04:14:50 +0000 (GMT) Received: from fuse1.fusemail.net (smtp.fusemail.net [69.31.1.141]) by mx1.FreeBSD.org (Postfix) with ESMTP id ED2FA43D31 for ; Thu, 20 Jan 2005 04:14:49 +0000 (GMT) (envelope-from brianjohn@fusemail.com) Received: from fusemail.com by fuse1.fusemail.net with asmtp (FuseMail extSMTP) id 1CrTiP-0000Yd-U8; Wed, 19 Jan 2005 22:14:37 -0600 Message-ID: <41EF303D.9020907@fusemail.com> Date: Wed, 19 Jan 2005 22:14:53 -0600 From: Brian John User-Agent: Mozilla Thunderbird 1.0 (X11/20050107) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Miguel Mendez References: <3659.209.87.176.132.1106058238.fusewebmail-19592@www.fusemail.com> <20050118153740.30aab22d.flynn@energyhq.es.eu.org> In-Reply-To: <20050118153740.30aab22d.flynn@energyhq.es.eu.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-questions@freebsd.org Subject: Re: Can I set priorities for file transfers X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Jan 2005 04:14:50 -0000 Miguel Mendez wrote: >On Tue, 18 Jan 2005 08:23:58 -0600 (CST) >"Brian John" wrote: > >Hi, > > > >>Hello, >>I have (I think) kind of a unique question. I leave my home computer >>on all day and transfer and share files via a P2P application. >>However, sometimes I like to ssh in from work and transfer files >>between my work PC and my home PC via scp. Right now it is really >>slow because it is transferring so much with the P2P apps, that it >>uses up all of my bandwidth. Is there any way that I can put a >>priority on this so that it gives me the majority of my bandwidth when >>I want to use scp? >> >> > >The first thing I'd do is throttle the upload on your p2p program, so >you don't eat all your b/w. You don't mention which p2p it is, but amule >let's you do it and some BitTorrent clients have the option too. > >Then you could use QoS, either using IPFW or PF. With PF I'd prioritize >empty ACKs and then create a queue for ssh with guaranteed b/w. There >are plenty of PF tutorials and FAQs out there with examples. Daniel's >page has a lot of info on PF (http://www.benzedrine.cx/pf.html). Note >that PF is a FreeBSD 5.x-only feature. It's been ported to NetBSD and >DragonFlyBSD as well, and it's part of OpenBSD. > >Cheers, > > Ok, I got pf setup. However, now I need to add ALTQ support to the kernel somehow? Is that right? If so, how can I do this? Thanks