Re: CAM disk I/O starvation

2012-04-05 Thread Jerry Toung
On Wed, Apr 4, 2012 at 8:22 PM, Alexander Leidinger wrote: > > This looks fair if all your disks are working at the same time (e.g. > RAID only setup), but if you have a setup where you have multiple > disks and only one is doing something, you limit the amount of tags > which can be used. No ide

Re: CAM disk I/O starvation

2012-04-03 Thread Jerry Toung
On 4/3/12, Gary Jennejohn wrote: > It would be interesting to see your patch. I always run HEAD but maybe > I could use it as a base for my own mods/tests. > Here is the patch diff -rup cam/cam_sim.c cam/cam_sim.c --- cam/cam_sim.c 2010-06-13 19:09:06.0 -0700 +++ cam/cam_sim.c

CAM disk I/O starvation

2012-04-02 Thread Jerry Toung
Hello list, I am convinced that there is a bug in the CAM code that leads to I/O starvation. I have already discussed this privately with some. I am now bringing this up to the general audience to get more feedback. My setup is that I have 1 RAID controller with 2 arrays connected to it, da0 and d

Re: Giant free GEOM/CAM XPT

2010-07-23 Thread Jerry Toung
On Thu, Jul 22, 2010 at 10:47 PM, Alexander Motin wrote: > > Giant locked there only if DISKFLAG_NEEDSGIANT flag is set, which da > driver is not doing. > > > Alexander, my mistake. I am working on 2 branches at the moment 6.3 and 8.0. I got them all mixed up while going through my trees. 8.0 scs

Giant free GEOM/CAM XPT

2010-07-22 Thread Jerry Toung
Hello List, while going through the xpt code (8.0 RELEASE), it seems to me that some gains can be had in src/sys/geom/geom_disk.c where dp->d_strategy(bp2) is surrounded by Giant lock. Especially in the case where one has 2+ controllers on the system with /dev/daXX attached to them during heavy I/O

Re: disk I/O, VFS hirunningspace

2010-07-14 Thread Jerry Toung
On Wed, Jul 14, 2010 at 12:04 AM, Gary Jennejohn wrote: > > > Rather than commenting out the code try setting the sysctl > vfs.hirunningspace to various powers-of-two. Default seems to be > 1MB. I just changed it on the command line as a test to 2MB. > > You can do this in /etc/sysctl.conf. > >

disk I/O, VFS hirunningspace

2010-07-13 Thread Jerry Toung
Hello List, I am on 8.0 RELEASE amd64. My system has 2 RAID arrays connected to 2 separate controllers. My I/O throughput tests jumped by ~100MB/sec on both channels, when I commented out the following piece of code from kern/vfs_bio.c void waitrunningbufspace(void) { /* mtx_lock(&rbreqloc

Re: crash at in_pcb.c

2008-10-30 Thread Jerry Toung
On Wed, Oct 29, 2008 at 3:32 PM, pluknet <[EMAIL PROTECTED]> wrote: > > Could you please get the following from kgdb? > f 7 > p *inp > p *inp->inp_laddr > > P.S. It's definitely 7.0 backtrace (or close to).. 6.2 has different > line numbers. > kgdb) f 7 #7 0xc0769098 in in_pcblookup_local (pcbi

Re: crash at in_pcb.c

2008-10-29 Thread Jerry Toung
On Wed, Oct 29, 2008 at 2:37 PM, Kip Macy <[EMAIL PROTECTED]> wrote: > The code in 7.0 is actually locked quite differently. Could you please > try and reproduce on 7.0 and RELENG_7? > > ok. I'll keep you posted. Jerry ___ freebsd-hackers@freebsd.org mai

crash at in_pcb.c

2008-10-29 Thread Jerry Toung
Hello List, I can realiably reproduce this crash. We have a deamon that accept several connections per sec. We use iperf and Microsoft Web application stress 1.0 to push traffic to the FreeBSD box. Without further delay, the crash dump is below. I've been troubleshooting, but I am no longer sure if

Re: pkg_add on 64bits kernel w/ options MAC

2008-08-19 Thread Jerry Toung
On Tue, Aug 19, 2008 at 1:26 PM, Robert Watson <[EMAIL PROTECTED]> wrote: > > > Sounds like a bug of some sort. Could you send the output of "sysctl > security.mac"? Also, if you could use ktrace to confirm which system calls > are returning EACCES/EPERM leading to the warnings, that would also

pkg_add on 64bits kernel w/ options MAC

2008-08-19 Thread Jerry Toung
Hi List, I am running into a weird issue. On a 6.2 stable, 32bits built with options MAC, I can run pkg_add of anything. But a 6.2 stable, 64bits built with MAC won't let me do pkg_add. If anybody has an input, please advise. Below is the output on the 64 bits machine: net3# pkg_add test.tbz +CONT

options MAC vs. pkg_add

2008-08-06 Thread Jerry Toung
Hi List, I am running into a weird issue. On a 6.2 stable, 32bits built with options MAC, I can run pkg_add of anything. But a 6.2 stable, 64bits built with MAC won't let me do pkg_add. If anybody has an input, please advise. Below is the output on the 64 bits machine: net3# pkg_add test.tbz +CONT

Re: encrypted executables

2008-02-18 Thread Jerry Toung
On Feb 18, 2008 8:13 PM, Mike Meyer < [EMAIL PROTECTED]> wrote: > > Basically the DRM problem (only executing your property under > conditions you specify, not under those the end user might want). A > *lot* of money has been spent trying to do this, but nobody has done > it yet. Some very smart p

Re: encrypted executables

2008-02-18 Thread Jerry Toung
On Feb 18, 2008 5:39 PM, Dimitry Andric <[EMAIL PROTECTED]> wrote: > On 2008-02-19 02:18, Jerry Toung wrote: > > anybody knows of a tool to encrypt executables under FreeBSD? may be > from > > the ports? > > I am not talking about simple file encryption. > >

encrypted executables

2008-02-18 Thread Jerry Toung
Good afternoon list, anybody knows of a tool to encrypt executables under FreeBSD? may be from the ports? I am not talking about simple file encryption. I found something called 'burneye' but it's for Linux. Thank you all, Jerry ___ freebsd-hackers@freebs

Re: a new syscalls table

2008-01-26 Thread Jerry Toung
Thank you DES. I am running 6.2 by the way. Jerry On 1/26/08, Dag-Erling Smørgrav <[EMAIL PROTECTED]> wrote: > > "Jerry Toung" <[EMAIL PROTECTED]> writes: > > I am trying to create an environment where you can't run my binaries > > on your box an

Re: a new syscalls table

2008-01-25 Thread Jerry Toung
Thank you for the feedback Mike. Points well taken. I'll look into the NetBSD thing. Jerry On Jan 25, 2008 3:55 PM, Mike Meyer < [EMAIL PROTECTED]> wrote: > On Fri, 25 Jan 2008 14:51:44 -0800 "Jerry Toung" <[EMAIL PROTECTED]> > wrote: > > > Hello list

Re: a new syscalls table

2008-01-25 Thread Jerry Toung
Good point. I'll try it. On Jan 25, 2008 3:30 PM, Xin LI <[EMAIL PROTECTED]> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Jerry Toung wrote: > > Hello list, > > I am trying to create an environment where you can't run my binaries on

a new syscalls table

2008-01-25 Thread Jerry Toung
Hello list, I am trying to create an environment where you can't run my binaries on your box and I can't run your binaries on my system (x86 platform). For that, I have modified the system calls table (i.e everything is offset by 5). All the files that need to be re-generated, have been. I ran make

Re: netgraph TTY

2005-03-30 Thread Jerry Toung
only if you can answer this: Is there another Luke Skywalker? :-) On Wednesday 30 March 2005 07:21 pm, Maksim Yevmenkin wrote: > Jerry Toung wrote: > > Hey Max, > > all I can say is thank you. That's a very nice tutorial. I am sure other > > people will benefit. >

Re: netgraph TTY

2005-03-30 Thread Jerry Toung
0011 > left2right > > > + show tee: >Name: tee Type: tee ID: 0011 Num hooks: 4 >Local hook Peer name Peer typePeer ID Peer > hook >-- ----- ---- > - >right2le

netgraph TTY

2005-03-30 Thread Jerry Toung
Good afternoon list, I am still trying to build a simple netgraph using ng_tty. Ultimately I would like to go from inet->tee->ng_tty(/dev/cuaa0). Please advise what I am doing wrong as I still see an error message (see bottom of email). Excuse me for the slighty long thread. Here is my very sim

ng_tty problem

2005-03-21 Thread Jerry Toung
Hello List, I want to monitor traffic on serial port /dev/cuaa0. I am trying to build the following netgraph. socket <---> tee node <---> tty node I run ngctl manually with the error message below: + mkpeer . tee hook1 left + name .:hook1 mytee + mkpeer mytee: tty right hook ngctl : send msg: Op

Re: send data to serial port from kernel code

2005-03-08 Thread Jerry Toung
. Today I have a new requirement. I need to send those packets to the first serial port from the kernel module. Still looking for inputs. Thank you On Tuesday 08 March 2005 02:26 pm, Stephan Uphoff wrote: > On Tue, 2005-03-08 at 17:04, Jerry Toung wrote: > > Good afternoon list, >

send data to serial port from kernel code

2005-03-08 Thread Jerry Toung
Good afternoon list, I am looking for a way to write data to the serial interface (/dev/cuaa0) from a kernel module and also read /dev/ttyd0 still from that same kernel module. Any pointers to doing that will be great. I want on exchange IP traffic from FreeBSD to another host with different OS

bay area hacker needed

2004-10-07 Thread Jerry Toung
Hello list, I have tried and done everything to have this remote debugging working, with no success. Any BSD hacker in the bay area that know how to do this, shoot me an email. I will come meet you with a monetary donation if you can make this work. Thank you, Jerry. ___

Re: remote debugging question

2004-09-28 Thread Jerry Toung
Hi Greg, thank you for all the feedback. The "set remotebaud 1" thing in my previous email was a typo, I usually enter 9600. So you're saying that I may have a communication problem. I would like to point out that I can use "cu -l cuaa0 -s 9600" on both side and all is well. What do you think c

Re: add-symbol-file

2004-09-18 Thread Jerry Toung
Greg, I am not using remote debugging, that's why I made a call to kldsyms (local system) but it only loaded acpi.ko. May be I should try over a serial console. The system wasn't crashed or in db prompt though. As for the question regarding where I got the addresses from, I typed: asf -k -f -s -

add-symbol-file

2004-09-17 Thread Jerry Toung
Hello list, Could somebody tell me why I can't "list" the source code of this kld? I built the module with COPTS=-g, it is loaded in the kernel and I run kgdb in /usr/obj/./MYKERNEL. Everything seems to go well, except kgdb still doesn't like it. However if I run kldsyms, it only loads acpi.k

5.2 & ipintrq

2004-04-06 Thread Jerry Toung
Hello list, I am trying to port some code that I wrote from 5.0 to 5.2. What is the equivalent of the code below for 5.2. 5.0: ifq = &ipintrq; s = splnet(); if (_IF_QFULL(ifq)) { _IF_DROP(ifq); m_freem(m); } else { IF_ENQUEUE(ifq,m); } splx(s); 5.2: ?? if (!net

Re: locking against myself

2004-02-19 Thread Jerry Toung
Thanks a lot Andrey. On Thursday 19 February 2004 12:05 am, Andrey Simonenko wrote: > On Wed, Feb 18, 2004 at 11:52:26AM -0800, Jerry Toung wrote: > > Hello hackers, > > I am constantly getting the following message when I run my KLD: > > > > panic: lockmgr: locking

locking against myself

2004-02-18 Thread Jerry Toung
Hello hackers, I am constantly getting the following message when I run my KLD: panic: lockmgr: locking against myself Debugger("panic") Stopped at Debugger+0x54: xchgl %ebx,in_Debugger.0 db> What could possibly cause this? It seem to say that I'm locking an alread

Re: sending messages, user process <--> kernel module

2003-11-07 Thread Jerry Toung
Thank you very much for the inputs. On Friday 07 November 2003 01:53 pm, Robert Watson wrote: > On Fri, 7 Nov 2003, Jerry Toung wrote: > > I am trying to do asynchronous send/receive between a user process that > > I am writing and a kernel module that I am also writing. I th

sending messages, user process <--> kernel module

2003-11-07 Thread Jerry Toung
Hello, I am trying to do asynchronous send/receive between a user process that I am writing and a kernel module that I am also writing. I thought about implementing something similar to unix routing socket, but I will have to define a new domain and protosw. Beside that idea, what else would you

never mind, ifconfig w/ if_gre

2003-10-27 Thread Jerry Toung
I got lazy, I figured it out. On Monday 27 October 2003 12:35 pm, Jerry Toung wrote: > I am trying to figure out what is the ifconfig command to jump into > case GRESADDRS: > case GRESADDRD: > > in gre_ioctl. > Thank you, > Jerry. > > _

ifconfig w/ if_gre

2003-10-27 Thread Jerry Toung
I am trying to figure out what is the ifconfig command to jump into case GRESADDRS: case GRESADDRD: in gre_ioctl. Thank you, Jerry. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any

pseudo-driver (*pr_input)

2003-10-23 Thread Jerry Toung
Good morning hackers, I am writing a pseudo driver for a routing protocol that insert its header after the ip header. I call it TTT. On the output after ip_output, for packets destined to a particular subnet I go through the ttt0 virtual interface calling ttt_output. In ttt_input all I have is a

Re: mbuf doubts

2003-09-24 Thread Jerry Toung
Giovani, you will find the answer to your question in "tcp/ip illustrated, volume 2: the implementation" in chapter 2. But to briefly answer your question, yes, there are 4 different types of mbufs, depending on the m_flags value. 1) m_flags = 0 and mbuf contains only data up to 108 bytes. 2) m

Re: if_gre, ip_gre and the like (pseudo-interfaces)

2003-09-02 Thread Jerry Toung
ber 2003 12:12 pm, Bruce M Simpson wrote: > On Sun, Aug 31, 2003 at 11:03:40PM -0700, Jerry Toung wrote: > > My understanding is that gre_input is called by IP everytime it receives > > a packet with a gre headers which after some processing performs > > IF_ENQUEUE(ifq,m) to put

if_gre, ip_gre and the like (pseudo-interfaces)

2003-09-01 Thread Jerry Toung
Hello hackers, for another purpose, I am trying to understand the relationship between gre_input and the gre pseudo-device. My understanding is that gre_input is called by IP everytime it receives a packet with a gre headers which after some processing performs IF_ENQUEUE(ifq,m) to put it back o

Re: new routing protocol

2003-08-20 Thread Jerry Toung
Thank you all for the inputs, this should get me started faster. Jerry. On Wednesday 20 August 2003 05:07 am, Paolo Pisati wrote: > On Tue, Aug 19, 2003 at 04:02:40PM -0700, Jerry Toung wrote: > > My problem is dealing with debuging and portability. With this raw > > approach I gu

new routing protocol

2003-08-19 Thread Jerry Toung
dear hackers, I am in the process of implementing a routing protocol under 5.0. This routing protocol is source route based and requires its own header after the ip header and before any other one such as udp,tcp. (ip)(new_rt_hdr)(udp)(paylaod) I am requesting your input as to the

Re: device driver dev. book

2001-03-15 Thread Jerry Toung
Some body just told me that williams Paul from Columbia University (Bill Paul @ Freebsd.org) has written that kind of book. But I can't get his exact email address at FreeBSD.org to ask him the reference. Alexander Langer wrote: > Thus spake Jerry Toung ([EMAIL PROTECTED]): > > &g

device driver dev. book

2001-03-14 Thread Jerry Toung
Hi Readers, Does anyone of you know about a book that would deal specifically with FreeBSD device drivers dev.? If yes let me know. Most of the books in the field are written for Linux and so on. Thanks. Jerry. To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" i