[linux-ileri] Re: Process bazında bandwidth sınırlama

---------

From: Enver ALTIN (enver.altin@frontsite.com.tr)
Date: Tue 16 Dec 2003 - 03:01:05 EST

  • Next message: Murat Demirten: "[linux-ileri] Re: Process QF=FDso-8859-9=3Fq=3Fbaz=FDnda=20bandwidth=3F<unknown>=3F=FDso-8859-9=3Fq=3F=20s=FDn=FDrlama=3F=?="

    On Tue, 2003-12-16 at 09:41, Murat Demirten wrote:
    > Selam,
    Merhaba,

    > Linuxte process baz=FDnda bandwidth s=FDn=FDrlamayla ilgili bilgisi olan va=
    > r m=FD?
    > Yapmak istedi=F0im, 128 Kbps'l=FDk internet ba=F0lant=FDm=FDn t=FCm kapasit=
    > esini ncftp=20
    > veya ba=FEka bir program=FDn, istemedi=F0im zamanlarda sonuna kadar kullanm=
    > as=FDn=FD=20
    > engellemek. Yani bazen max 60 Kbps olacak bazen 100.=20
    > Advanced Routing ile bu i=FElem yap=FDlamaz gibi g=F6z=FCk=FCyor ama o konu=
    > da =E7ok fazla=20
    > bilgim yok. =C7ekirde=F0e eklenti yapmadan b=F6yle bir i=FElem haz=FDr fonk=
    > siyonlarla=20
    > ger=E7ekle=FEtirilebilir mi?

    Advanced Routing genel bir kavram. Kernel IP stack icerisindeki
    QoS/ToS/CbQ/TSF/SFQ kodu ve iproute2 paketi kullanilarak port
    numaralarina/servislere bagli olarak bant genisligi denetimi
    yapilabilir.

    Advanced Routing HOWTO icerisinde bir ornek vardi, hatirladigim
    kadariyla yaziyorum.

    Ornegin 10Mbps bir hattiniz var, bunun bagli bulundugu sunucu uzerinde
    SMTP ve HTTP sunuculari calisiyor. SMTP max. 4Mbps, HTTP max. 3Mbps, ama
    bu ikisi toplamda en fazla 5Mbps kullanabilsin gibi bir sinirlama
    yapabilirsiniz.

    Ama sizin durumda "bazen" diye bir istek var. Bence bu gibi `ince`
    ayarlar, bazen kullanmak icin degil; cok dinamik olmalarina karsin ufak
    tefek (download yaparken agdaki kullanicilarin baglantisi yavaslamasin)
    isler icin cok fazla pahali yapilandirma metodlari.

    Application-level bandwidth usage management deneyin, wget yapabiliyor:

           --limit-rate=amount
               Limit the download speed to amount bytes per second. Amount may be
               expressed in bytes, kilobytes with the k suffix, or megabytes with
               the m suffix. For example, --limit-rate=20k will limit the
               retrieval rate to 20KB/s. This kind of thing is useful when, for
               whatever reason, you don't want Wget to consume the entire avail-
               able bandwidth.
     
               Note that Wget implements the limiting by sleeping the appropriate
               amount of time after a network read that took less time than speci-
               fied by the rate. Eventually this strategy causes the TCP transfer
               to slow down to approximately the specified rate. However, it may
               take some time for this balance to be achieved, so don't be sur-
               prised if limiting the rate doesn't work well with very small
               files.

    -HTH

    -- 
     __________
    |          |
    |          |  Enver ALTIN (a.k.a. skyblue)
    |          |  Software developer, IT consultant
    |    FRONT |
    |==========|  FrontSITE Bilgi Teknolojisi A.Ş.
    |_____SITE_|  http://www.frontsite.com.tr/
    -- Attached file included as plaintext by Ecartis --
    -- File: signature.asc
    -- Desc: This is a digitally signed message part
    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v1.2.3 (GNU/Linux)
    iD8DBQA/3rvBZCB2FZvqK0sRAoJRAJ916vNCNE2HLFaruapUVdabJ8+NXACfVUaX
    GPejiHyyzV6k0xkm37JjuKQ=
    =7+BO
    -----END PGP SIGNATURE-----
    

  • Next message: Murat Demirten: "[linux-ileri] Re: Process QF=FDso-8859-9=3Fq=3Fbaz=FDnda=20bandwidth=3F<unknown>=3F=FDso-8859-9=3Fq=3F=20s=FDn=FDrlama=3F=?="

    ---------

    Bu arsiv hypermail 2.1.6 tarafindan uretilmistir.