Displaying 20 results from an estimated 1235 matches for "borrowed".
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 + '' '' +
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|
format.html # new.html.erb
format.xml { render :xml => @loan }
end
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 %>">
<%= borrower.FirstName <<
2007 Jun 06
4
how hierarchical is HTB?
Hi there!
I''ve using HTB for a while and now I an faced with a ''problem''.
How hierarchical is HTB?
Let''s say I have this 3 layer HTB setup:
root class 1: (rate=100, ceil=100)
1: children classes 1:10 (30,100) and 1:20 (70,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
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 and...
2005 Dec 27
5
class exceeds its ceil
Hi,
I have a setup like this:
class 1:1 rate 7600kbit (on a imq device)
|
|\class 1:10 rate 100kbit ceil 5600kbit prio 7 (here goes p2p
traffic)
\class 1:12 rate 7500kbit ceil 7600kbit
|
|\class 1:121 rate 3100 ceil 7500kbit prio 0
|\class 1:122 rate 2200 ceil 7500kbit prio 2
\class 1:123 rate 2200 ceil 7500kbit prio
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: 224179...
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,
2004 Oct 08
2
Excess Bandwidth
Hi,
I''m trying to configure QoS on my linux 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
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
Hi,
I wanted to implement some QOS on my Linux Box with HTB, but after some time
spend
on the configuration and tests, I still don''t manage to have some correct
results. Here are the details :
-ROOT 2000 kbits
-HIGHPRIO SUBCLASS 50 kbits prio 0
-SUBCLASS1 750 kbits prio 1
-SERVICE1 250 kbits prio 1
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 bandwidth...
2005 Sep 28
4
Re:Does HTB consider PRIO or not? 2
...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 pacekts in direct_packets_stat?
I really dont know what that parameter means..i have to google...
Well the output is really big . The classes are 1:5 and 1:14...
#########################################QDISC##############################
root@srv1:/etc# tc -s -d qdi...
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 pare...
2005 Jun 18
6
htb child classes don''t borrow form "parent''s parent class" :(
..." just seems to be ignored :(
e.g.:
class htb 1:3003 parent 1:c1 leaf 92f4: prio 0 quantum 1000 rate
64000bit ceil 1024Kbit burst 50Kb/8 mpu 0b overhead 0b cburst 1727b/8
mpu 0b overhead 0b level 0
Sent 22500226 bytes 28784 pkts (dropped 0, overlimits 0)
rate 245080bit 39pps
lended: 15306 borrowed: 13478 giants: 0 <------------ user borrowed
from others
tokens: -429574 ctokens: 13314
but:
class htb 1:f1 root rate 2048Kbit ceil 10000Kbit burst 50Kb/8 mpu 0b
overhead 0b cburst 2848b/8 mpu 0b overhead 0b level 7
Sent 221521122 bytes 257990 pkts (dropped 0, overlimits 0)
rate 1818Kbit 2...
2005 May 31
2
Form Dates and MultiparameterAssignmentErrors
I''m using the date_select form helper for a date_of_birth field on an
ActiveRecord object. When I try to save a date earlier than 1 Jan 1970,
ActionController punts with
ActiveRecord::MultiparameterAssignmentErrors. The message 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
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
tokens...
2004 Jul 30
0
Help:how many bandwidth are borrowed in HTB?How to caculate!
...d 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
2004-07-30
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
2002 Aug 31
3
HTB shares equally when borrowing enabled :(
...mits 0)
################################
# tc -s -d class show dev eth1
class htb 1:11 parent 1:1 leaf 8002: prio 1 rate 472Kbit ceil 10Mbit
burst 2203b/8 mpu 0b cburst 14704b/8 mpu 0b quantum 60000 level 0
Sent 3284592 bytes 2545 pkts (dropped 0, overlimits 0)
rate 20755bps 15pps
lended: 2545 borrowed: 0 giants: 0 injects: 0
tokens: 28909 ctokens: 9147
class htb 1:1 root prio 0 rate 10Mbit ceil 10Mbit burst 14704b/8 mpu 0b
cburst 14704b/8 mpu 0b quantum 60000 level 3
Sent 5140628 bytes 3786 pkts (dropped 0, overlimits 0)
rate 37374bps 26pps
lended: 888 borrowed: 0 giants: 0 injects: 0
tok...
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