From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.2.3 (2007-08-08) on sa.int.altlinux.org X-Spam-Level: X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,RDNS_NONE autolearn=no version=3.2.3 Date: Tue, 22 Jan 2008 18:48:45 +0000 From: Afanasov Dmitry To: sysadmins@lists.altlinux.org Message-ID: <20080122184845.GF7348@utvuk.orbita> Mail-Followup-To: sysadmins@lists.altlinux.org MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="VbJkn9YxBvnuCH5J" Content-Disposition: inline User-Agent: Mutt/1.5.17 (2007-11-01) Subject: [Sysadmins] shaping inside Openvz VPS X-BeenThere: sysadmins@lists.altlinux.org X-Mailman-Version: 2.1.9 Precedence: list Reply-To: ALT Linux sysadmin discuss List-Id: ALT Linux sysadmin discuss List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Jan 2008 18:49:23 -0000 Archived-At: List-Archive: --VbJkn9YxBvnuCH5J Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: quoted-printable =DA=C4=D2=C1=D7=D3=D4=D7=D5=CA=D4=C5 =D7=D3=C5. =C2=CF=CC=C5=C5 =C7=CF=C4= =C1 =D1 =D4=D5=D4 =CE=C5 =D0=CF=D1=D7=CC=D1=CC=D3=D1, =D4=C1=CB =DE=D4=CF = =CE=C5 =D0=C9=CE=C1=CA=D4=C9=C5, =C5=D3=CC=C9 =DE=D4=CF =D0=D2=CF=D0=D5=D3=D4=C9=CC :) =C4=C1 =C9 google =CE=C1 =C4=C1=CE= =CE=D5=C0 =D4=C5=CD=D5 =CD=C1=CC=CF =DE=D4=CF =C7=CF=D7=CF=D2=C9=D4. =D3=C9=D4=D5=C1=C3=C9=D1: =D7 =CD=C1=DB=C9=CE=D5 =D7=CF=D4=CB=CE=D5=D4=CF = =D4=D2=C9 =D3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=CC=C1=D3=D3=CF=D7 =D7=C9=C4=C1: tc qdisc add dev eth0 handle 1: root htb default 1 tc class add dev eth0 parent 1: classid 1:1 htb rate 100Mbit =C4=C1=C5=D4 =C9=CE=D4=C5=D2=C5=D3=CE=D5=C0 =D7=C5=DD=D8: =D0=D2=C9 =D0=CF= =C4=CB=CC=C0=DE=C5=CE=C9=C9 =CE=C1 VPS =D0=CF ssh =D7 =CB=CC=C1=D3=C5=C5 1:= 1 =D0=C1=CB=C5=D4=D9 =CE=C1=DE=C9=CE=C1=C0=D4 =C4=D2=CF=D0=C1=D4=D8=D3=D1. =C5=D3=CC=C9 rate 100= 0Mbit =D7=CF=D4=CB=CE=D5=D4=D8 =D7=D2=CF=C4=C5 =D6=C9=D4=D8 =CD=CF=D6=CE=CF= =2E =CE=CF =D4=C1=CB=CF=CA =D6=C5 =DC=C6=C6=C5=CB=D4 =C4=CF=D3=D4=C9=C7=C1=C5=D4=D3=D1 =DE=C5=D2=C5=DA= ping -f - =D7=CD=C5=D3=D4=CF =DB=C5=CA=D0=C9=CE=C7=C1 =D0=CF=CC=D5=DE=C1= =C5=CD =C4=D2=CF=D0. =C8=CF=D4=D1 iftop =D0=CF=CB=C1=DA=D9=D7=C1=C5=D4, =DE=D4=CF icmp =D0=CF=D4=CF=CB =CE=C5= =C2=CF=CC=C5=C5 20Mbit/sec. HN =D3=CC=C1=D7=C1 =C2=CF=C7=D5 =D6=C9=D7=C5= =D4. =C5=D3=CC=C9 =CF=D3=D4=C1=D7=C9=D4=D8 tc qdisc =C2=C5=DA =CB=CC=C1=D3=D3=CF= =D7 (=D7=D9=D0=CF=CC=CE=D1=C5=D4=D3=D1 =D4=CF=CC=D8=CB=CF =CF=C4=CE=C1 =CB= =CF=CD=C1=CE=C4=C1), =D4=CF =DE=C5=D2=C5=DA =C4=CE=D1 =C4=D7=C1 =CD=C1=DB=C9=CE=C1 =CF=D0=D1=D4=D8 "=DA= =C1=CC=C9=D0=CC=C1". =D7=CD=C5=D3=D4=C5 =D3 HN. =DE=D4=CF =DA=C1 =C5=D2=C5=D3=D8 - =D0=CF=CE=D1=D4=D8 =CE=C5 =CD=CF=C7=D5. = =C5=C4=C9=CE=D3=D4=D7=C5=CE=CE=CF=C5 =D0=CF=C8=CF=D6=C5 =CE=C1=DB=C5=CC http://forum.openvz.org/index.php?t=3Dmsg&goto=3D16281 =C4=C1 =CE=C5 =D0=CF=CD=CF=C7=CC=CF. --=20 =F3 =D5=D7=C1=D6=C5=CE=C9=C5=CD =E1=C6=C1=CE=C1=D3=CF=D7 =E4=CD=C9=D4=D2=C9=CA --VbJkn9YxBvnuCH5J Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.8 (GNU/Linux) iEYEARECAAYFAkeWOo0ACgkQjldKzJAPFIl++wCfYVtMwiOgvYdTCLPZe5GaJx0V alAAnRNnSCtk7eBH6CPob1fT6WUlaXOa =banJ -----END PGP SIGNATURE----- --VbJkn9YxBvnuCH5J--