<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-33336775</id><updated>2011-12-14T19:11:07.249-08:00</updated><title type='text'>How To</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://system-tribudi.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/33336775/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://system-tribudi.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Tri Budi</name><uri>http://www.blogger.com/profile/04931062112817494965</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='http://www.geocities.com/tribudi_itsolo/aku.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>6</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-33336775.post-116017119385778825</id><published>2006-10-07T04:45:00.000-07:00</published><updated>2006-10-06T14:48:19.423-07:00</updated><title type='text'>7.3 - Clearing the console each time a user logs out.</title><content type='html'>To do this you must add a line in /etc/gettytab(5). Change the current section:&lt;br /&gt;    P|Pc|Pc console:            :np:sp#9600:&lt;br /&gt;&lt;br /&gt;adding the line ":cl=\E[H\E[2J:" at the end, so that it ends up looking like this:&lt;br /&gt;    P|Pc|Pc console:            :np:sp#9600:            :cl=\E[H\E[2J:&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/33336775-116017119385778825?l=system-tribudi.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://system-tribudi.blogspot.com/feeds/116017119385778825/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=33336775&amp;postID=116017119385778825' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/33336775/posts/default/116017119385778825'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/33336775/posts/default/116017119385778825'/><link rel='alternate' type='text/html' href='http://system-tribudi.blogspot.com/2006/10/73-clearing-console-each-time-user.html' title='7.3 - Clearing the console each time a user logs out.'/><author><name>Tri Budi</name><uri>http://www.blogger.com/profile/04931062112817494965</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='http://www.geocities.com/tribudi_itsolo/aku.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-33336775.post-115855531228789933</id><published>2006-09-18T11:49:00.000-07:00</published><updated>2006-09-17T21:55:12.296-07:00</updated><title type='text'>What are the Q1 and Q2 parameters?</title><content type='html'>In the source code, these are called magic1 and magic2. These numbers refer to the number of oustanding requests on a message queue. They are specified on the cache_dir option line, after the L1 and L2 directories:&lt;br /&gt;&lt;br /&gt;cache_dir diskd /cache1 1024 16 256 Q1=72 Q2=64&lt;br /&gt;&lt;br /&gt;If there are more than Q1 messages outstanding, then Squid will intentionally fail to open disk files for reading and writing. This is a load-shedding mechanism. If your cache gets really really busy and the disks can not keep up, Squid bypasses the disks until the load goes down again.&lt;br /&gt;&lt;br /&gt;If there are more than Q2 messages outstanding, then the main Squid process ``blocks'' for a little bit until the diskd process services some of the messages and sends back some replies.&lt;br /&gt;&lt;br /&gt;Reasonable Q1 and Q2 values are 64 and 72. If you would rather have good hit ratio and bad response time, set Q1 &gt; Q2. Otherwise, if you would rather have good response time and bad hit ratio, set Q1 &lt; Q2.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/33336775-115855531228789933?l=system-tribudi.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://system-tribudi.blogspot.com/feeds/115855531228789933/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=33336775&amp;postID=115855531228789933' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/33336775/posts/default/115855531228789933'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/33336775/posts/default/115855531228789933'/><link rel='alternate' type='text/html' href='http://system-tribudi.blogspot.com/2006/09/what-are-q1-and-q2-parameters.html' title='What are the Q1 and Q2 parameters?'/><author><name>Tri Budi</name><uri>http://www.blogger.com/profile/04931062112817494965</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='http://www.geocities.com/tribudi_itsolo/aku.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-33336775.post-115711856780636775</id><published>2006-09-01T20:50:00.000-07:00</published><updated>2006-09-01T06:56:04.230-07:00</updated><title type='text'>comm_accept: FD 10: (53) Software caused connection abort</title><content type='html'>&gt; 2004/01/06 18:44:59| httpAccept: FD 10: accept failure: (53) Software caused connection abort&lt;br /&gt;&gt; 2004/01/06 18:46:25| comm_accept: FD 10: (53) Software caused connection abort&lt;br /&gt;&gt; 2004/01/06 18:46:25| httpAccept: FD 10: accept failure: (53) Software caused connection abort&lt;br /&gt;&lt;br /&gt;These are considered harmless unless bad effects are reported by the&lt;br /&gt;clients.&lt;br /&gt;&lt;br /&gt;The assumption is that these are given in certain conditions when the&lt;br /&gt;browser aborts the connection before sending the request.&lt;br /&gt;&lt;br /&gt;Regards&lt;br /&gt;Henrik&lt;br /&gt;&lt;br /&gt;detaile read this :&lt;br /&gt;http://www.squid-cache.org/mail-archive/squid-users/200401/0239.html&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/33336775-115711856780636775?l=system-tribudi.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://system-tribudi.blogspot.com/feeds/115711856780636775/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=33336775&amp;postID=115711856780636775' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/33336775/posts/default/115711856780636775'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/33336775/posts/default/115711856780636775'/><link rel='alternate' type='text/html' href='http://system-tribudi.blogspot.com/2006/09/commaccept-fd-10-53-software-caused.html' title='comm_accept: FD 10: (53) Software caused connection abort'/><author><name>Tri Budi</name><uri>http://www.blogger.com/profile/04931062112817494965</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='http://www.geocities.com/tribudi_itsolo/aku.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-33336775.post-115651331738043693</id><published>2006-08-25T20:36:00.000-07:00</published><updated>2006-08-25T06:41:57.380-07:00</updated><title type='text'>Queueing Disciplines</title><content type='html'>A queueing discipline controls outgoing traffic by packet&lt;br /&gt;scheduling and/or queue buffer management.&lt;br /&gt;&gt;&gt;&gt;&gt;(yes, it controls only outgoing traffic.)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/33336775-115651331738043693?l=system-tribudi.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://system-tribudi.blogspot.com/feeds/115651331738043693/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=33336775&amp;postID=115651331738043693' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/33336775/posts/default/115651331738043693'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/33336775/posts/default/115651331738043693'/><link rel='alternate' type='text/html' href='http://system-tribudi.blogspot.com/2006/08/queueing-disciplines.html' title='Queueing Disciplines'/><author><name>Tri Budi</name><uri>http://www.blogger.com/profile/04931062112817494965</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='http://www.geocities.com/tribudi_itsolo/aku.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-33336775.post-115651315715079153</id><published>2006-08-25T20:34:00.000-07:00</published><updated>2006-08-25T06:39:17.153-07:00</updated><title type='text'>PF HFSC part II</title><content type='html'># hfsc part 2 #&lt;br /&gt;###############&lt;br /&gt;Monday, February 16, 2004, 6:43:48 PM, Kenjiro Cho wrote:&lt;br /&gt;&lt;br /&gt;&gt;you can do the following:&lt;br /&gt;&gt;queue Q1 bandwidth 0% hfsc (realtime 32Kb, linkshare 0%)&lt;br /&gt;&gt;bandwidth for Q1 invalid (0 / 0)&lt;br /&gt;&gt;./pf.conf:xx: errors in queue definition&lt;br /&gt;&gt;oops!  the bandwidth check is a bit too strict.&lt;br /&gt;&gt;the patch at the end of this mail should fix it.&lt;br /&gt;yeah...&lt;br /&gt;&lt;br /&gt;&gt;but, again, this isn't the right solution for you since you don't need&lt;br /&gt;&gt;any realtime guarantee.&lt;br /&gt;why not? it is just a way to specify initial bandwidth for queue. no?&lt;br /&gt;&lt;br /&gt;&gt;setting both realtime and linkshare to 0 means that 0bps is assined to&lt;br /&gt;&gt;the queue.  then, the queue will get nothing.&lt;br /&gt;i don't want to realtime==0 and linkshare==0 :) the goal is to construct some queues what have no ability to receive excess bandwidth (linkshare==0).&lt;br /&gt;&lt;br /&gt;for example :&lt;br /&gt;altq on fxp0 bandwidth 256Kb hfsc queue {Q1,Q2,Q3}&lt;br /&gt;# guarantee and don't try to borrow for Q1 and Q2&lt;br /&gt;queue Q1 hfsc (realtime 32Kb linkshare 0%)&lt;br /&gt;queue Q2 hfsc (realtime 32Kb linkshare 0%)&lt;br /&gt;&lt;br /&gt;# guarantee, borrow the rest, plus some from Q1 and Q2 if avail&lt;br /&gt;queue Q3 hfsc (realtime 64Kb linkshare 100% default)&lt;br /&gt;&lt;br /&gt;#equivalent to cbq's&lt;br /&gt;altq on fxp0 bandwidth 256Kb cbq queue {Q1,Q2,Q3}&lt;br /&gt;queue Q1 bandwidth 32Kb cbq&lt;br /&gt;queue Q2 bandwidth 32KB cbq&lt;br /&gt;queue Q3 bandwidth 64Kb cbq (borrow default)&lt;br /&gt;&lt;br /&gt;#but as far as i understood from our discussion, the&lt;br /&gt;altq on fxp0 bandwidth 256Kb hfsc queue {Q1,Q2,Q3}&lt;br /&gt;queue Q1 hfsc (linkshare 33% upperlimit 32Kb)&lt;br /&gt;queue Q2 hfsc (linkshare 33% upperlimit 32Kb)&lt;br /&gt;queue Q3 hfsc (linkshare 33% upperlimit 64Kb default)&lt;br /&gt;&lt;br /&gt;will do almost the same, but not the same: first will guarantee&lt;br /&gt;Q1 and Q2 their bandwidth, second - will not, but will in case of&lt;br /&gt;appropriate handcrafted value for Q3's upperlimit or when Q3 is not&lt;br /&gt;saturated enough. additionally, you need to handcraft linkshare's&lt;br /&gt;values. complete dizzy :)&lt;br /&gt;&lt;br /&gt;so the first example easier to construct, but the bandwidth and&lt;br /&gt;linkshare misunderstanding exist (i will try your patch).&lt;br /&gt;&lt;br /&gt;btw,&lt;br /&gt;altq on fxp0 bandwidth 256Kb hfsc queue {Q1,Q2,Q3}&lt;br /&gt;# guarantee and don't try to borrow for Q1 and Q2&lt;br /&gt;queue Q1 hfsc (realtime 32Kb linkshare 50%)&lt;br /&gt;queue Q2 hfsc (realtime 32Kb linkshare 50%)&lt;br /&gt;# guarantee, borrow the rest (including from Q1 and Q2)&lt;br /&gt;queue Q3 hfsc (realtime 64Kb linkshare 100% default)&lt;br /&gt;&lt;br /&gt;parses normally, but 100+50+50 &gt; 100 :) this is cloudy, how&lt;br /&gt;scheduler deals with this...&lt;br /&gt;&lt;br /&gt;&gt;as for me bandwidth is bogus with hfsc...&lt;br /&gt;&gt;do you have a better idea?&lt;br /&gt;&lt;br /&gt;make linkshare primary, not bandwidth (even in linkshare=0 case). this&lt;br /&gt;is logical since original altq have no bandwidth. why&lt;br /&gt;&gt;/* if link_share is not specified, use bandwidth */&lt;br /&gt;&gt;if (opts-&gt;&gt;lssc_m2 == 0)&lt;br /&gt;&gt;opts-&gt;&gt;lssc_m2 = pa-&gt;bandwidth;&lt;br /&gt;&lt;br /&gt;is needed? just assume opts-&gt;&gt;lssc_m2 == 0 if opts-&gt;&gt;lssc_m2 == 0&lt;br /&gt;when bandwidth not specified. opts-&gt;&gt;lssc_m2 = pa-&gt;bandwidth must&lt;br /&gt;be used if only bandwidth specified.&lt;br /&gt;&lt;br /&gt;it will not break bandwidth-aware setups, but will give more power&lt;br /&gt;to non-bandwith...&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/33336775-115651315715079153?l=system-tribudi.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://system-tribudi.blogspot.com/feeds/115651315715079153/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=33336775&amp;postID=115651315715079153' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/33336775/posts/default/115651315715079153'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/33336775/posts/default/115651315715079153'/><link rel='alternate' type='text/html' href='http://system-tribudi.blogspot.com/2006/08/pf-hfsc-part-ii_25.html' title='PF HFSC part II'/><author><name>Tri Budi</name><uri>http://www.blogger.com/profile/04931062112817494965</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='http://www.geocities.com/tribudi_itsolo/aku.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-33336775.post-115651121554580730</id><published>2006-08-25T20:20:00.000-07:00</published><updated>2006-08-25T06:30:58.473-07:00</updated><title type='text'>PF HFSC part I</title><content type='html'>## Notes on HFSC #&lt;br /&gt;##################&lt;br /&gt;* real-time: guarantee service curves of all leaf classes&lt;br /&gt;* link-sharing: guarantee service curves of interior classes and distribute excess service fairly&lt;br /&gt;* whenever there is a potential of conflict, real-time criteria is used&lt;br /&gt;&lt;br /&gt;if (there is an eligible packet)&lt;br /&gt;/* real-time criteria */ &lt;br /&gt;send eligible packet with min. deadline d ;&lt;br /&gt;else&lt;br /&gt;/* link-sharing criteria */ &lt;br /&gt;send packet with min. virtual time v ;&lt;br /&gt;&lt;br /&gt;e - eligible time \ d - deadline \ v - virtual time&lt;br /&gt;#referances that helped me (and the above quotes came from):&lt;br /&gt;http://www-2.cs.cmu.edu/~hzhang/HFSC/TALK/sld038.htm (keep reading till sld045.htm)&lt;br /&gt;http://www-2.cs.cmu.edu/~hzhang/HFSC/intro.html&lt;br /&gt;&lt;br /&gt;##Notes on HFSC in PF:&lt;br /&gt;* realtime values cannot add up to be higher than 75% total interface bandwidth, and are calculated for the entire interface instead of parent queues. linkshare values max at 100% as per normal and are calculated within their parent queues &lt;br /&gt;* qlimit is the limit of packets that are waiting in-queue to be sent. if the qlimit is reached an additional packets are dropped.  this is in an effort to keep the traffic flowing smoothly instead of backing up causing delays. I assign high queue limits to traffic which i want to be reliable if slow. I assign low qlimits to ensure smooth flow at expense of dropped packets.&lt;br /&gt;* bandwidth (other than on the altq on line itself) is just a fallback value for linkshare. it should not even be neccesary to specify it on newer versions of pf.&lt;br /&gt;&lt;br /&gt;#Outgoing Queues on External Bridge Interface (from local to internet) Traffic Conditioning/Shaping&lt;br /&gt;&lt;br /&gt;#768kbit upload, using hfsc (78kB/s 624kbit/s max via ftp, pftop shows 85kB/s or 680kbit/s)&lt;br /&gt;altq on $ext hfsc bandwidth 768Kb qlimit 150 queue {root_out }&lt;br /&gt;#only give out 95% of the bandwidth, this helps improve overall queue handling, esp latency&lt;br /&gt;queue root_out bandwidth 95% hfsc(linkshare 89% upperlimit 89{oCtl,oAck,oDly,oBrst,\ oRel, oTput}&lt;br /&gt;&lt;br /&gt;#icmp control traffic&lt;br /&gt;queue oCtl bandwidth 16Kb qlimit 15 hfsc( realtime 16Kb linkshare 16Kb )&lt;br /&gt;&lt;br /&gt;#tcp ack traffic&lt;br /&gt;queue oAck bandwidth 32Kb qlimit 150 hfsc( realtime 64Kb linkshare 32Kb red )&lt;br /&gt;&lt;br /&gt;#latency sens traffic&lt;br /&gt;queue oDly bandwidth 160Kb qlimit 50 hfsc( realtime 164Kb linkshare 160Kb )&lt;br /&gt;&lt;br /&gt;#burst-prone traffic&lt;br /&gt;queue oBrst bandwidth 84Kb qlimit 50 hfsc( realtime (256Kb 6000 94Kb) linkshare(2Kb 6000 84Kb))&lt;br /&gt;&lt;br /&gt;#reliable traffic&lt;br /&gt;queue oRel bandwidth 128Kb qlimit 100 hfsc(linkshare 128Kb ) { oRelTCP, oRelUDP }&lt;br /&gt;queue oRelTCP bandwidth 64Kb qlimit 50 hfsc (linkshare 64Kb default red )&lt;br /&gt;queue oRelUDP bandwidth 64Kb qlimit 50 hfsc(linkshare 64Kb)&lt;br /&gt;&lt;br /&gt;#throughput-oriented traffic&lt;br /&gt;queue oTput bandwidth 100Kb qlimit 25 hfsc(linkshare 100Kb red )&lt;br /&gt;&lt;br /&gt;### Outgoing Queues on Internal Bridge Interface (from internet to local) Traffic Conditioning/Shaping&lt;br /&gt;altq on $int hfsc bandwidth 1240Kb queue {root_in }&lt;br /&gt;queue root_in  hfsc(linkshare 95%) {iCtl, iAck, iDly, iBrst, iRel,iTput}&lt;br /&gt;queue iCtl bandwidth 3% qlimit 15 hfsc( realtime 16Kb linkshare 16Kb)&lt;br /&gt;queue iAck bandwidth 20% qlimit 1000 hfsc( realtime 64Kb linkshare 64Kb red)&lt;br /&gt;queue iDly bandwidth 20% qlimit 25 hfsc( realtime 128Kb linkshare 128Kb)&lt;br /&gt;queue iBrst bandwidth 20% qlimit 25 hfsc( realtime (256Kb 8000 128Kb)linkshare(512Kb 8000 128Kb)&lt;br /&gt;queue iRel bandwidth 20% qlimit 150 hfsc( realtime 512Kb linkshare 256Kb default)&lt;br /&gt;queue iTput bandwidth 10% qlimit 50 hfsc(linkshare 128Kb)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/33336775-115651121554580730?l=system-tribudi.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://system-tribudi.blogspot.com/feeds/115651121554580730/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=33336775&amp;postID=115651121554580730' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/33336775/posts/default/115651121554580730'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/33336775/posts/default/115651121554580730'/><link rel='alternate' type='text/html' href='http://system-tribudi.blogspot.com/2006/08/pf-hfsc-part-i.html' title='PF HFSC part I'/><author><name>Tri Budi</name><uri>http://www.blogger.com/profile/04931062112817494965</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='http://www.geocities.com/tribudi_itsolo/aku.jpg'/></author><thr:total>0</thr:total></entry></feed>
