FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > CentOS > CentOS

 
 
LinkBack Thread Tools
 
Old 06-26-2008, 01:34 PM
"Jason Pyeron"
 
Default Bandwith limiting

Centos 4.x with out any non centos rpms, is it possible to limit the bandwith of
a virtual host in apache?

--
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
- -
- Jason Pyeron PD Inc. http://www.pdinc.us -
- Principal Consultant 10 West 24th Street #100 -
- +1 (443) 269-1555 x333 Baltimore, Maryland 21218 -
- -
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

This message is for the designated recipient only and may contain
privileged, proprietary, or otherwise private information. If you
have received it in error, purge the message from your system and
notify the sender immediately. Any other use of the email by you
is prohibited.

_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 
Old 02-26-2010, 07:43 AM
"Jason Pyeron"
 
Default Bandwith limiting

I found out how to limit all traffic on a give nic:

[root@mirrors html]# tc qdisc add dev eth1 handle 1:0 root dsmark indices 1
default_index 0
[root@mirrors html]# tc qdisc add dev eth1 handle 2:0 parent 1:0 tbf burst 2048
limit 2048 mtu 1514 rate 3200bps


But I do not know how to persist this.

Trying to understand:
http://www.redhat.com/mirrors/LDP/HOWTO/Traffic-Control-tcng-HTB-HOWTO/examples.
html

And the following files:

/etc/iproute2
/etc/iproute2/ematch_map
/etc/iproute2/rt_dsfield
/etc/iproute2/rt_protos
/etc/iproute2/rt_realms
/etc/iproute2/rt_scopes
/etc/iproute2/rt_tables
/etc/sysconfig/cbq
/etc/sysconfig/cbq/avpkt
/etc/sysconfig/cbq/cbq-0000.example


I am lost. Any suggestions?



--
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
- -
- Jason Pyeron PD Inc. http://www.pdinc.us -
- Principal Consultant 10 West 24th Street #100 -
- +1 (443) 269-1555 x333 Baltimore, Maryland 21218 -
- -
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
This message is copyright PD Inc, subject to license 20080407P00.


_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 
Old 02-26-2010, 08:11 AM
Rajagopal Swaminathan
 
Default Bandwith limiting

Greetings,

On Fri, Feb 26, 2010 at 2:13 PM, Jason Pyeron <jpyeron@pdinc.us> wrote:
>
> [root@mirrors html]# tc qdisc add dev eth1 handle 1:0 root dsmark indices 1
> default_index 0
> [root@mirrors html]# tc qdisc add dev eth1 handle 2:0 parent 1:0 tbf burst 2048
> limit 2048 mtu 1514 rate 3200bps

Gee Thanks!

>
>
> But I do not know how to persist this.

perhaps in the rc.local file?

regards,

Rajagopal
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 
Old 02-26-2010, 12:11 PM
"Jason Pyeron"
 
Default Bandwith limiting

> -----Original Message-----
> From: Rajagopal Swaminathan
> Sent: Friday, February 26, 2010 4:12
> To: CentOS mailing list
> Subject: Re: [CentOS] Bandwith limiting
>
> Greetings,
>
> On Fri, Feb 26, 2010 at 2:13 PM, Jason Pyeron
> <jpyeron@pdinc.us> wrote:
> >
> > [root@mirrors html]# tc qdisc add dev eth1 handle 1:0 root dsmark
> > indices 1 default_index 0 [root@mirrors html]# tc qdisc add
> dev eth1
> > handle 2:0 parent 1:0 tbf burst 2048 limit 2048 mtu 1514
> rate 3200bps
>
> Gee Thanks!
>
> >
> >
> > But I do not know how to persist this.
>
> perhaps in the rc.local file?
>

I am sure there is a proper file for this. Just like iptables, routing, etc.

> regards,
>
> Rajagopal
> _______________________________________________
> CentOS mailing list
> CentOS@centos.org
> http://lists.centos.org/mailman/listinfo/centos
>



--
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
- -
- Jason Pyeron PD Inc. http://www.pdinc.us -
- Principal Consultant 10 West 24th Street #100 -
- +1 (443) 269-1555 x333 Baltimore, Maryland 21218 -
- -
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
This message is copyright PD Inc, subject to license 20080407P00.

_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 
Old 02-26-2010, 03:04 PM
Bob Beers
 
Default Bandwith limiting

On Fri, Feb 26, 2010 at 8:11 AM, Jason Pyeron <jpyeron@pdinc.us> wrote:
>> <jpyeron@pdinc.us> wrote:
>> > But I do not know how to persist this.
>>
>> perhaps in the rc.local file?
>>
>
> I am sure there is a proper file for this. Just like iptables, routing, etc.

I am not so sure.

You could make your own init script, like these guys' example[1], then
use chkconfig and service to make it 'automatic'.

Or you could see of tcng[2] might meet your needs.

Disclaimer: I am not associated with and have not used either of these.


[1] <http://www.topwebhosts.org/tools/traffic-control.php>
[2] <http://tcng.sourceforge.net/>

--
HTH,

-Bob Beers
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 

Thread Tools




All times are GMT. The time now is 03:04 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org