Displaying 20 results from an estimated 1235 matches for "borrowing".
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?
...,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
...do the packets still appear in its ''sent'' stat alongside those it
borrowed?
How do I obtain the actual rate used for a class - as opposed to the
assigned rate? This is what I really want and I was hoping there would
be some relationship such as:
actual rate = assigned rate + borrowing rate - lending rate
except, as mentioned above, I need to know the time period over which
the lended and borrowed stats refer. Also, lended and borrowed are given
in packets, the rates are expressed in bytes or bits per second, so
presumably, I will need to calculate an average packet size.
Ma...
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]
Martin Devera wrote:
> If you read the manual, the algorithm will not work correctly
> with {,c}burst < MTU ...
> devik
>
I just tried to change {,c}burst to 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
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 starvation...
2004 Oct 08
2
Excess Bandwidth
...K
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 read some documentation that says it should work exactly in
this in way, but it is not happening in...
2005 Jun 10
2
HTB lended and borrowed
Running "tc -s class show dev eth1" against 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:
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
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 pacekts in direct_packets_stat?
I really dont know what that parameter means...
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
2005 Jun 18
6
htb child classes don''t borrow form "parent''s parent class" :(
...e script is dynamically generated, periodically called, and should put
the users (distinguished through their IP address) according to their
traffic usages into lower priorities (axx,bxx,cxx) respecting different
bandwidth needs but also respecting minimum rates for different groups
(fxx).
Now the borrowing among user classes (1:3xxx) is working; but for some
reason and I just can''t figure out why, the group classes (fxx) don''t
borrow from each other when their is unused bandwidth available. The
"ceil 10mbit" just seems to be ignored :(
e.g.:
class htb 1:3003 parent 1:c1...
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
My hardware is a Linksys AP with MIPS 300MHz and Linux kernel 2.4.20.
The traffics are from two LAN switch ports to WAN port. And the traffics
are generate at a rate of 80Mbit. So the total traffic to WAN port is
160Mbit. The shaping works well that the traffic to WAN port is about
50/30Mbit according to configuration. But the priority seems strange
when the root rate is 50Mbit.
When the root
2004 Jul 30
0
Help:how many bandwidth are borrowed in HTB?How to caculate!
Hi,All
I use HTB to control traffic.Here is my script:
/usr/sbin/tc qdisc del dev nas0 root
/usr/sbin/tc qdisc add dev nas0 root handle 1:0 htb default 60
/usr/sbin/tc class add dev nas0 parent 1:0 classid 1:1 htb ceil 896kbit rate 896kbit prio 0 burst 60k
/usr/sbin/tc class add dev nas0 parent 1:1 classid 1:10 htb ceil 896kbit rate 537kbit prio 1 burst 60k
/usr/sbin/tc class add dev
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 40Kbit...
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