search for: borrow

Displaying 20 results from an estimated 1234 matches for "borrow".

2006 Oct 21
6
test_create gets 200 instead of :success
Help! I have a new/create process that works fine in the actual app. But when I test I always get a failure in the test_create section. Here''s some controller code: def new end def create begin @borrower = Borrower.new(params[:borrower]) if @borrower.save flash[:notice] = ''Borrower '' + @borrower.FirstName + '' '' + @borrower.LastName + '' was added.'' redirect_to :action => ''list'' else flas...
2010 Sep 04
3
its easy but i forgot all
my models borrower ----- has_many :loans loan ----- belongs_to :borrower my loans _controller def new @borrower = Borrower.find(params[:borrower_id]) logger.debug '' @borrower.id'' logger.debug @borrower.id @loan = Loan.new respond_to do |format| fo...
2006 Aug 18
2
How do I sort the drop-down list?
I''ve added a drop-down list of first and last names of borrowers to a form. How do I sort them by LastName, FirstName in the drop-down? I''m using code based on the cookbook example: <select name="borrower[borrower_id]"> <% @borrowers.each do |borrower| %> <option value="<%= borrower.id %>"> <%= b...
2007 Jun 06
4
how hierarchical is HTB?
...,100) 1:10 children classes 1:100 (10,100) and 1:101 (20,100) 1:20 children classes 1:200 (30,100) and 1:201 (70,100) I managed to have the root rate equals to the sum of its children. But how must the rates of the leaves be signed? And how the bandwidth of these leaves will be distributed when borrowing/lending is necessary? classs 1:10 will/may lend/borrow from class 1:20. I know that. But how about 1:1XX and classes 1:2XX? will the borrow/lend from each others? Any docs about this? Thanx Ethy
2004 Dec 31
1
qdisc statistics
Hi, I am trying to relate the lended and borrowed statistics to the others and, in particular, compare them with the assigned rates for each class. My understanding is that the lended and borrowed stats are expressed as a number of packets but over what time period do the numbers refer? In addition, for a particular class why do the lended a...
2005 Dec 27
5
class exceeds its ceil
...pipermail/lartc/2002q2/003958.html. I match p2p packets with both ipp2p and layer7 filters and mark them with iptables MARK. I can easily block p2p traffic, but when I allow it - it exceeds its ceil and reaches the rate of my internet link, which is unacceptable. I need to allow other classes to borrow bandwidth from a p2p class, but I do not want to allow a p2p class to borrow bandwidth from other classes. Is there a way to achieve it ? maybe I should redesign something in the above diagram. W
2002 Apr 26
9
[Fwd: Re: borrowing only from parent]
...1600, or leaving them by default but no visible result. here is the latest tc -s -d class show dev eth0 class htb 1:101 parent 1:1 prio 0 rate 40Kbit ceil 40Kbit burst 1599b/8 mpu 0b cburst 1599b/8 mpu 0b quantum 512 level 0 Sent 392526 bytes 5898 pkts (dropped 0, overlimits 15394) lended: 5898 borrowed: 0 giants: 0 injects: 0 tokens: -11905 ctokens: -11905 class htb 1:1 root prio 0 rate 100Kbit ceil 1Kbit burst 1599b/8 mpu 0b cburst 1599b/8 mpu 0b quantum 1280 level 3 Sent 956111 bytes 14168 pkts (dropped 0, overlimits 0) rate 12bps lended: 566 borrowed: 0 giants: 0 injects: 0 tokens: 2241...
2006 Apr 14
3
Shaping per IP in PPPoE borrowing or sharing Uplink or Downlink
helo again. I think this question i am asking is worth: we know that pppoe-server creates a pppX device on each connection done to it. So, when i have to shape, i have to shape each pppX connection device on itself alone. What i know is that the borrowing method on one device by itself, e.g. ppp0, alone using HTB or the like. this means that i have to create for another device, e.g. ppp1, its own HTB or CBQ tree. So, how can i in PPPoE technology setup sharing or borrowing between all the pppX devices so it won''t let network starvat...
2004 Oct 08
2
Excess Bandwidth
...in the following manner: I have a main link with 64K, so I divided it in 3 classes of 18K, 14K and 9K with an excess (not used for classified traffic, just to be shared) of 23K. This excess should be distributed proportonally among the 3 classes, that is, the class that has more rate should borrow more bandwidth. What is happening is just the opposite, the class that has less rate is borrowing more bandwidth. A representation of my "hierarchical class layout" is as follow: root - 64K A - 18K B - 14K C - 9K I have...
2005 Jun 10
2
HTB lended and borrowed
...ainst an HTB qdisc results in the output of class summaries similar to this: class htb 1:10 parent 1:1 leaf 10: prio 0 rate 150000bit ceil 1466Kbit burst 2Kb cburst 2Kb Sent 158641651 bytes 771351 pkt (dropped 0, overlimits 0 requeues 0) rate 8064bit 7pps backlog 0b 0p requeues 0 lended: 680985 borrowed: 90366 giants: 0 tokens: 173443 ctokens: 17746 Does anyone know the units of measurement for the reported "lended" and "borrowed" values? -- Emmet Ford Lancer Insurance Company +1 516.431.4441 Ext. 3233 eford@lancer-ins.com ===============================...
2005 Jul 08
5
HTB Rate and Prio
...ery traffic seems to go in the class it must go, the stats are good and if I change any of the ceil rate the associated traffic is caped to the right ceil I enter. Now with this configuration I expected that when one of the SUBCLASS class or SERVICE want more bandwith than its rate, she can borrow it from root and she had it before LOW PRIO and after HIGH PRIO. But it don''t work at all, for exemple I tried only with 2 flow, I have 500 Kbits of LOW PRIO traffic that is currently going on, then I fire some SERVICE1 traffic from SUBCLASS1 that can theorically take 2000 kbits, and...
2004 May 25
1
how to borrow bandwith
Hi,All I am using iproute2 to manage bandwith for ADSL router.High,medium,low priority are needed for different protocol port on the ADSL's upstream side,as following: LAN --- |ADSL Router|------WAN When there aren't traffic on the specific priority, its bandwidth should be borrowed by other priorities.But it doesn't work.Here is my script: /usr/sbin/tc qdisc del dev nas0 root /usr/sbin/tc qdisc del dev br0 root /usr/sbin/tc qdisc add dev nas0 root handle 1:0 cbq bandwidth 1024kbit avpkt 1000 cell 8 /usr/sbin/tc class add dev nas0 parent 1:0 classid 1:1 cbq bandwidt...
2005 Sep 28
4
Re:Does HTB consider PRIO or not? 2
Thanks for quick reply Andreas! > Every class is allowed to use bandwidth as long as it does not have to > borrow (the specified rate is guaranteed). Prio in HTB only affects > borrowing bandwidth from other classes... In the example below, the class > 1:5 should be allowed to borrow bandwidth before 1:14 does. Thats exactly what I want from HTB to do..to prio the borrowed bandwidth. >Why are there...
2002 Oct 15
1
Réf . : Re: trying to use wondershaper on a dedicated line (not adsl)
here''s the output : # tc -s -d class show dev eth0 class cbq 1: root rate 10Mbit cell 8b (bounded,isolated) prio no-transmit/8 weight 10Mbit allot 1514b level 2 ewma 5 avpkt 1000b maxidle 23us Sent 294 bytes 7 pkts (dropped 0, overlimits 0) borrowed 0 overactions 0 avgidle 605 undertime 0 class cbq 1:10 parent 1:1 leaf 10: rate 100Kbit cell 8b prio 1/1 weight 100Kbit allot 1600b level 0 ewma 5 avpkt 1000b maxidle 23us Sent 12274 bytes 203 pkts (dropped 0, overlimits 19) borrowed 0 overactions 7 avgidle 624 undertime 0 class cbq 1:1 pa...
2005 Jun 18
6
htb child classes don''t borrow form "parent''s parent class" :(
Dear list, I have the problem that child classes don''t seem to issue the parent class to borrow from their parent. This is a simplified version of my script: tc qdisc del dev $DEV root tc qdisc add dev $DEV root handle 1: htb default 10 tc class add dev $DEV parent 1: classid 1:1 htb rate 10mbit tc class add dev $DEV parent 1:1 classid 1:10 htb rate 1kbit ceil 512kbit #groups tc class add...
2005 May 31
2
Form Dates and MultiparameterAssignmentErrors
...it gives is "1 error(s) on assignment of multiparameter attributes". I was able to catch the exception and look at it, and it is certainly complaining about saving the date_of_birth field. The controller line throwing the exception is: redirect_to :action => "longform" if @borrower.update_attributes(@params[''borrower'']) The view line for the date select is: <%= date_select ''borrower'', ''date_of_birth'', :start_year => 1900 %> Saving dates later than 1 Jan 1970 works fine (but then not everybody was born after 1...
2007 Jun 21
1
A HTB problem
...or tc -d -s class show dev vlan2 is like the following for root rate is 50Mbit and ceil for class is 50Mbit: class htb 1:11 parent 1:1 leaf 110: prio 0 quantum 37500 rate 3000Kbit ceil 10000Kbit burst 50Kb/8 mpu 0b overhead 0b cburst 14098b Sent 0 bytes 0 pkts (dropped 0, overlimits 0) lended: 0 borrowed: 0 giants: 0 tokens: 111847 ctokens: 9240 class htb 1:1 root rate 50000Kbit ceil 50000Kbit burst 64093b/8 mpu 0b overhead 0b cburst 64093b/8 mpu 0b overhead 0b level 7 Sent 574199301 bytes 563132 pkts (dropped 0, overlimits 0) rate 48914Kbit 5996pps lended: 556777 borrowed: 0 giants: 0 toke...
2004 Jul 30
0
Help:how many bandwidth are borrowed in HTB?How to caculate!
...s0 parent 1:0 protocol ip prio 3 u32 match ip dport 8000 0xffff flowid 1:30 Then,I use "ftp 21" and "ftp 8001" to test this script,which according to class 1:10 and class 1:30.I found that the class 1:30 will get more bandwidth than class 1:10.I got confused!You know,class can borrow more available bandwidth.But I don''t know why the low priority (1:30) can borrow more bandwidth than high priority(1:10)? Would anyone like to tell me how HTB caculate borrowed bandwidth? Any suggestion will be highly appreciated! Best Regards swcims swcims@163.com...
2002 Aug 31
3
HTB shares equally when borrowing enabled :(
Hi, I''m fighting seriously with a most simple HTB setup. I''d like to share the incoming 64kbps into 5 and 59 for two different machines under NAT. HTB seems to hold the required limits when ceil is not set (no borrowing), but when borrowing enabled it seems to share equally rather then keeping the specified ratio. My setup is below. A typical output of "tc -s -d qdisc show dev eth1" and "tc -s -d class show dev eth1" is given. HTB seems to disobey the specified rate (last entry: rate 40Kb...
2004 Apr 06
11
htb2 -> htb3 problems
Hello! I need to switch from htb2 to htb3, because of speed issues (for me, htb2 is unable to handle more then 100mbit duplex with ~550 classes), kernel profiling shows htb_dequeue_prio at 1st place with 3x isolation. So, I''ve moved from 2.4.19 to 2.4.25 kernel (hi-pac for classification/marking and htb3 for queueing), and traffic rate drop from 100 to 20mbit. What can be wrong? The