Re: Need to override KRNLCONFDIR variable in command line of mak

2002-12-03 Thread Terry Lambert
John Baldwin wrote: I build a custom release at work that uses the a custom kernel by default on 4.x and make use of LOCAL_PATCHES and KERNELS to accomplish what I need. I do think I have a local patch that allows you to specify the kernel config for the default kernel, but that it doesn't

Re: question about shared libraries and the library cache.

2002-12-02 Thread Terry Lambert
Peter Pentchev wrote: The original posting did not mention a reboot, but rather a manual ldconfig(8) invocation immediately after installing the libraries. In this case, your advice about ldconfig -m was correct, as I noted in the part of my message that you snipped; but there are other

Re: documentation on kernel locks, mutexes?

2002-12-02 Thread Terry Lambert
Yury Tarasievich wrote: While it's true that kernel locks and mutexes are documented for SMPng, he posted to -hackers, not -current, and so he's probably not interested in -current primitives that aren't available in the 4.x -RELEASE and -STABLE branches. Exactly my point, thanks!

Re: question about shared libraries and the library cache.

2002-12-01 Thread Terry Lambert
Reinier Kleipool wrote: I have a question about shared libraries. I have compiled a new library, and installed it in /usr/local/lib. If I then ask ldconfig(8) to updates its hints file, the new library is not listed in the hints file. In /usr/local/lib I see two other libraries that also are

Re: question about shared libraries and the library cache.

2002-12-01 Thread Terry Lambert
Peter Pentchev wrote: Reinier Kleipool wrote: I have compiled a new library, and installed it in /usr/local/lib. If I then ask ldconfig(8) to updates its hints file, the new library is not listed in the hints file. In /usr/local/lib I see two other libraries that also are not listed:

Re: jail

2002-11-30 Thread Terry Lambert
Robert Watson wrote: On Thu, 28 Nov 2002, Terry Lambert wrote: [ ... lockups when using vnodes to hold jail FS instances ... ] Hmm. The only bug like that I know about in -current was corrected in one of Kirk or Jeff's passes through getnewvnode() a few months ago, and involved a race

Re: documentation on kernel locks, mutexes?

2002-11-30 Thread Terry Lambert
Robert Watson wrote: On Mon, 25 Nov 2002, Terry Lambert wrote: Yury Tarasievich wrote: I need to port some driver from linux to freebsd and, somehow, I can't find documentation on kernel locks and mutexes. There are no man pages, links from handbook are broken, and search on freebsd

Re: ports conflicts: PR/13650

2002-11-27 Thread Terry Lambert
Gary Jennejohn wrote: It's still open. The patch is guaranteed to not apply since bsd.port.mk has changed considerably since the PR was submitted. portmgr is marked as the responsible party. AFAIK only portmgr@ is allowed to modify bsd.port.mk. Too bad there's not a pr # required for

Re: WarCraft III on FreeBSD

2002-11-27 Thread Terry Lambert
Kenneth Culver wrote: Your version of mmap2() is considerably longer (although much of it is made up of comments). I'm not sure if there are any functional differences. There aren't, I just did a direct copy from the mmap source and changed things where they needed to be changed. I use

Re: documentation on kernel locks, mutexes?

2002-11-25 Thread Terry Lambert
Yury Tarasievich wrote: I need to port some driver from linux to freebsd and, somehow, I can't find documentation on kernel locks and mutexes. There are no man pages, links from handbook are broken, and search on freebsd site gives nothing (besides the handbook itself). Where can I find

Re: Wierd message followed mem prob

2002-11-25 Thread Terry Lambert
Kenneth Culver wrote: This is in addition to my last mail. Just to reiterate, I'm using FreeBSD 4.7-STABLE as of a few days ago, and I've never seen this problem before. The wierd message comes from /usr/src/sys/i386/i386/machdep.c: Too many holes in the physical address space,

Re: Changing socket buffer timeout to a u_long?

2002-11-22 Thread Terry Lambert
Nate Lawson wrote: As a member of the e2e camp, I'd say that any device which is looking at sequence space is implicitly an endpoint and has to accept the processing limitations as such. MITM devices (load balancers, firewalls, etc.) are IMO a poor workaround for the fact that most endpoints

Re: Changing socket buffer timeout to a u_long?

2002-11-22 Thread Terry Lambert
Nate Lawson wrote: This is orthogonal to the original discussion The original discussion was about whether or not to bloat a structure to successfully contain, without overflow, a timer interval stored in ticks instead of a fixed unit. 8-). but if you had a single system image, you use the

Re: Changing socket buffer timeout to a u_long?

2002-11-21 Thread Terry Lambert
Julian Elischer wrote: On Thu, 21 Nov 2002, David G. Andersen wrote: Are there compelling reasons not to change the socket buffer timeout to a u_long from a u_short? This variable stores the number of ticks before the socket operation times out. At present, the maximum SO_RCVTIMEO or

Re: Changing socket buffer timeout to a u_long?

2002-11-21 Thread Terry Lambert
Nate Lawson wrote: On Thu, 21 Nov 2002, Terry Lambert wrote: FWIW: upping the roll-over rate is not a good reason to increase the size of fields, unless you want to increase the TCP sequence number filed to 64 bits? ...it has exactly the same issues at high data rates. That's what

Re: if_ti DEVICE_POLLING patch (Was: Re: [hackers] Re: Netgraphcouldbe a router also)

2002-11-20 Thread Terry Lambert
Hiten Pandya wrote: Hehe. I was not being sarcastic. I just acknoledged your statement. The reason I asked about committing the patch in the first place, is because I thought that the patch had been around on the -net@ list, and had been reviewed. My apologies. It's been around on the

Re: if_ti DEVICE_POLLING patch (Was: Re: [hackers] Re: Netgraphcouldbe a router also)

2002-11-20 Thread Terry Lambert
Hiten Pandya wrote: If someone with a Tigon III card could try the patch with the DEVICE_POLLING option enabled, and device polling turned on, and let us know that the card keeps functioning, rather than them getting a panic, then that would be enough, I think, to say commit it. I

Re: if_ti DEVICE_POLLING patch (Was: Re: [hackers] Re: Netgraphcouldbe a router also)

2002-11-20 Thread Terry Lambert
Don Bowman wrote: Is there any point to using device polling with the tigon 3 (broadcom 570x etc)? It has a pretty good interrupt reducer in it by itself. Just tune the 2 rx and the 2 tx parameters and you get a constant interrupt rate with good latency for any packet rate. This is hardware

Re: if_ti DEVICE_POLLING patch (Was: Re: [hackers] Re: Netgraphcouldbe a router also)

2002-11-20 Thread Terry Lambert
[ ... why you want something more than interrupt coelescing ... ] Don Bowman wrote: Actually I have pushed it to the livelock case. I'm shocked at how easy this is to do with BSD (I'm used to system like vxworks with much lower over head interrupt processing). I found that for a 2x XEON @

Re: auto-definition of a single network interface

2002-11-19 Thread Terry Lambert
Doug Barton wrote: Pardon me if I'm being dense, but I don't understand what your proposal does that the existing interface config tools do not. Can you give a description (not code) of what you're trying to accomplish? He wants it to just work with an unknown card. FreeBSD does not name

Re: if_ti DEVICE_POLLING patch (Was: Re: [hackers] Re: Netgraph couldbe a router also)

2002-11-19 Thread Terry Lambert
Hiten Pandya wrote: : We're definately livelocking with the fxps. I'd be interested in your : patches for the GigE drivers. [ CC list trimmed ] The if_ti patches to add polling support are:

Re: [brooks@one-eyed-alien.net: [PATCH] switching to if_xname]

2002-11-19 Thread Terry Lambert
Brooks Davis wrote: On Tue, Nov 19, 2002 at 01:06:28PM -0800, Julian Elischer wrote: why is this ent to hackers? it's a -current patch.. should it not be sent to -current or -net? I initialy asked for review on -net, but didn't get any response. I sort of randomly chose as the place to

Re: if_ti DEVICE_POLLING patch (Was: Re: [hackers] Re: Netgraph couldbe a router also)

2002-11-19 Thread Terry Lambert
Hiten Pandya wrote: On Tue, Nov 19, 2002 at 02:32:00PM -0800, Terry Lambert wrote the words in effect of: I asked that someone with an if_ti test it first, and report back to me. As far as I know, no one has tested it yet, or if they have, they're not talking. I don't personally own

Small initial LRP processing patch vs. -current

2002-11-18 Thread Terry Lambert
Well... I have all those stats, but I wasn't wanting to type that much. IIRC, we normally test with 80 byte packets ... they can be UDP or TCP ... we're testing the routing. The box has two interfaces and we measure the number of PPS that get to the box on the other side. Without polling

Re: Small initial LRP processing patch vs. -current

2002-11-18 Thread Terry Lambert
Probably help if I attach the patch. 8-). -- Terry Terry Lambert wrote: Well... I have all those stats, but I wasn't wanting to type that much. IIRC, we normally test with 80 byte packets ... they can be UDP or TCP ... we're testing the routing. The box has two interfaces and we

Re: Small initial LRP processing patch vs. -current

2002-11-18 Thread Terry Lambert
Luigi Rizzo wrote: Strictly speaking it is not necessary to get rid of the ipintr() code, it will just remain unused, so the relevant part of the patch is the direct call of ip_input() instead of schednetisr(). This patch will not make any difference if you have device_polling enabled,

Re: Small initial LRP processing patch vs. -current

2002-11-18 Thread Terry Lambert
Luigi Rizzo wrote: This patch will not make any difference if you have device_polling enabled, because polling already does this -- queues a small number of packets (default is max 5 per card) and calls ip_input on them right away. The problem with this is that it introduces a

Re: cd9660 and fcntl (shared locks)

2002-11-18 Thread Terry Lambert
Clark C. Evans wrote: When I open a file mounted via cd9660 as O_RDONLY and then flock(fd,LOCK_SH) it returns invalid argument; is there a reason why the cd-rom file system can't just return success here, make flock a no-op that is always successful? There are many cases where you want

Re: NFS exports under 4.7-RELEASE

2002-11-17 Thread Terry Lambert
Brian Reichert wrote: Now, I have to go read up on webnfs to find out what webnfs really is... RFC2054, RFC2055, RFC2755 (not implemented by FreeBSD). Abstract, RFC2054: This document describes a lightweight binding mechanism that allows NFS clients to obtain service from WebNFS-enabled

Re: NFS exports under 4.7-RELEASE

2002-11-17 Thread Terry Lambert
Brian Reichert wrote: ...basically: mount-less NFS server by IP address, one per IP address. One server per IP address make sense, but only one filesystem exported thusly doesn't. But, I _still_ haven't read the RFCs in question, so hopefully I'll see... No mount protocol = no way to

Re: bus_dmamem_alloc failing

2002-11-16 Thread Terry Lambert
Gary Thorpe wrote: Really, there's a lot of the kernel which could be pageable, which would help this. But for this to work, all the code in the paging path has to be marked non-pageable. The way Windows handles this is to have seperate ELF sections for pageable vs. unpageable vs.

Re: finding unmatched quotes in shell scripts

2002-11-16 Thread Terry Lambert
Lyndon Nerenberg wrote: I've tried a number of syntax-colouring editors, to no avail. The quotes (single, double, and back) *are* balanced, according to everything I've thrown the script at. That's why I'm more interested in something that can actually parse Bourne shell syntax (quiet Terry -

Re: bus_dmamem_alloc failing

2002-11-15 Thread Terry Lambert
Chuck Tuffli wrote: On Fri, Nov 15, 2002 at 11:03:44AM -0600, mark tinguely wrote: [snip] The memory is avaliable to the kernel/drivers when bus_dmamem_free() is called. The problem for you is that someone else does allocate a page within the 16 page chunk making it unable to reallocatable

Re: Patch #6 (Re: Shared files within a jail)

2002-11-14 Thread Terry Lambert
Matthew Dillon wrote: So this patch is a hack. It returns special devices directly whenever possible but must still synthesize temporary vnodes for them for RENAME and DELETE operations. But short of rewriting a big chunk of the device tracking infrastructure there is no

Re: Shared files within a jail

2002-11-13 Thread Terry Lambert
Matthew Dillon wrote: : Try using null mounts. The warning is in there because making the : null mount code work is a real hack and the authors aren't entirely : sure that everything's gotten covered. That said, use of a null mount : is certainly a lot safer if the stuff

Re: Shared files within a jail

2002-11-13 Thread Terry Lambert
Pawel Jakub Dawidek wrote: On Tue, Nov 12, 2002 at 07:08:47PM -0800, Hans Zaunere wrote: + -- mount_null seems to be the answer, however the warning at the end of + the man page is scary. + + Is there any combination of these (or anything I'm forgetting) that + could help me here? Is

Re: [hackers] Re: Netgraph could be a router also.

2002-11-13 Thread Terry Lambert
David Gilbert wrote: Terry The problem is that they don't tell me about where you are Terry measuring your packets-per-second rate, or how it's being Terry measured, or whether the interrupt or processing load is high Terry enough to trigger livelock, or not, or the size of the packet. Terry

Re: Shared files within a jail

2002-11-13 Thread Terry Lambert
The Anarcat wrote: On Tue Nov 12, 2002 at 11:11:54PM -0800, Terry Lambert wrote: Cameron Grant wrote: null mounts, in -stable at least, are broken for this purpose. on connection, sshd revoke()s some device- its pty, i assume, and when this hits the nullfs layer a null pointer

Re: [hackers] Re: Netgraph could be a router also.

2002-11-13 Thread Terry Lambert
Mattias Pantzare wrote: The problem is that they don't tell me about where you are measuring your packets-per-second rate, or how it's being measured, or whether the interrupt or processing load is high enough to trigger livelock, or not, or the size of the packet. And is that a

Re: Shared files within a jail

2002-11-13 Thread Terry Lambert
Pawel Jakub Dawidek wrote: On Wed, Nov 13, 2002 at 03:28:22PM -0800, Terry Lambert wrote: + Don't worry about it. It's only a problem for mmap'ed files + which are also read/written. Sheesh. I have found one little bug in nullfs. I've send it some time ago to hackers@, but without any

Re: Shared files within a jail

2002-11-13 Thread Terry Lambert
Matthew Dillon wrote: :VOP_GETVOBJECT is a different name, but the VOP was my suggestion, :to allow an upper layer to obtain a backing object, and to :collapse intermediate layers. : :The issue is that the NULLFS getpages falls through the the :vfs_default.c vop_stdgetpages(), which calls

Re: Shared files within a jail

2002-11-13 Thread Terry Lambert
The Anarcat wrote: On Wed Nov 13, 2002 at 05:00:24PM -0800, Terry Lambert wrote: The Anarcat wrote: On Tue Nov 12, 2002 at 11:11:54PM -0800, Terry Lambert wrote: 1)Use devfs instead. On -stable? Yes. Wasn't -stable devfs retired some time ago? No. You are thinking

Re: [hackers] Re: Netgraph could be a router also.

2002-11-12 Thread Terry Lambert
David Gilbert wrote: Terry == Terry Lambert [EMAIL PROTECTED] writes: Terry By it, I guess you mean FreeBSD? Terry What are your performance goals? Right now, I'd like to see 500 to 600 kpps. Terry Where is FreeBSD relative to those goals, right now, without Terry you doing anything

Re: Shared files within a jail

2002-11-12 Thread Terry Lambert
Hans Zaunere wrote: I want to allow the users the ability to compile and use their own instances of Apache and MySQL from within the jail. But instead of duplicating the basic system libs and bins, I'd like to maintain a single repository of this, which can then be read-only from within the

Re: Shared files within a jail

2002-11-12 Thread Terry Lambert
Matthew Dillon wrote: Try using null mounts. The warning is in there because making the null mount code work is a real hack and the authors aren't entirely sure that everything's gotten covered. That said, use of a null mount is certainly a lot safer if the stuff behind the

Re: Shared files within a jail

2002-11-12 Thread Terry Lambert
Cameron Grant wrote: null mounts, in -stable at least, are broken for this purpose. on connection, sshd revoke()s some device- its pty, i assume, and when this hits the nullfs layer a null pointer is dereferenced. if i had vfs-clue i'd have fixed it when i found the panic about two weeks

Re: sio howto

2002-11-11 Thread Terry Lambert
the evil toor wrote: I just followed the recent sio thread, but it did not answer my questions. I have a program that needs to set RTS and DTR and then later set them again and again.. I could go for the open /dev/io and then the IO adr of the serial port.. but as far as i've seen it would

Re: Netgraph could be a router also.

2002-11-09 Thread Terry Lambert
Alex Newman wrote: I'm well aware of the Click Router project (which dealt with data at layer 3, not layer 4, BTW). But I could have for instance zebra taking care of the control plane and click working with the data plane right? You're missing the point, which is that they've effectively

Re: Int 0x15 and VM86 question

2002-11-08 Thread Terry Lambert
Matthew Dillon wrote: I've been pulling my hair out all night trying to figure out how the hell the VM86 code is able to issue an int 0x15 to the BIOS. I can't find where it gets the interrupt descriptor table entry for int 0x15. My assumption is that it copies it from the idt

Re: resizing mounted filesystems

2002-11-08 Thread Terry Lambert
Bernd Walter wrote: Nearly impossible, without a JFS. You would need to be able to add new PP's to an LP, as you can do on AIX, or assign PP's to a hog partition, and them provide each LP with hog limits, so that they can allocate PP's to themselves automatically, as needed, up to some

Re: resizing mounted filesystems

2002-11-07 Thread Terry Lambert
Lukas Ertl wrote: how hard would it be to implement resizing of mounted filesystems? Currently, growfs requires the filesystem to be unmounted, and this is definitely a showstopper for FreeBSD when it comes to production use. I'd really like to promote FreeBSD more in my organisation, where

Re: sio i/o

2002-11-07 Thread Terry Lambert
Christoph Hellwig wrote: Umm, sys/io.h ispurely a userland header on linux, so he's probably referring to the userland versions of those that are provided by the linux ports with PC-like hardware.. Then the answer is even easier: Don't do it from userland, since you should not be using sys

Re: cpu class features

2002-11-07 Thread Terry Lambert
Sam wrote: I'm writing an application that needs info on the machine cpu architecture, the cpu class, and the cpu features. Is this a status display (e.g. About This Computer...) for a human to read? If not, the entire point of an OS is to hide that information from you, so that you can write

Re: Netgraph could be a router also.

2002-11-07 Thread Terry Lambert
Alex Newman wrote: Could we implement {bgp ospf} in netgraph? What would need to be done assuming the Netgraph TCP/IP happen? Is this a bad idea. Yes, you could do this. The Netgraph TCP/IP is a good idea for research work, but a bad idea for general implementation purposes, since it's

Re: Netgraph could be a router also.

2002-11-07 Thread Terry Lambert
Alex Newman wrote: Yes, you could do this. The Netgraph TCP/IP is a good idea for research work, but a bad idea for general implementation purposes, since it's performance will be very poor, compared to a monolithic TCP/IP implementation. Interesting, why is click so fast then? What

Re: input source for network application

2002-11-07 Thread Terry Lambert
Julian Elischer wrote: Also look at ng_etf the ethertype filter.. it is designed to connect to an ether node and filter out packets with a particular ethertype. yuo could alter it to examine for a particular tcp port number too. [ ... ] A more interesting problem is how to hook an address

Re: load time module parameters?

2002-11-06 Thread Terry Lambert
Maxime Henrion wrote: With kenv(1) you can modify kernel environment variables, which hold the tunables. Previously, you could only set those at boot time. Note that there are some values which are used to determine the size of KVA space allocations, and changing them after boot, even if it's

Re: load time module parameters?

2002-11-06 Thread Terry Lambert
Maxime Henrion wrote: The kernel environment is most useful for diagnostic porposes, and for use in the way descrived in this thread -- to provide a means of passing parameters that should not be parameters to modules that should not need parameters in the first place. Many times, hacking

Re: /usr/src/ed/bin/re.c:99

2002-11-06 Thread Terry Lambert
Marc Olzheim wrote: .. if ((nd = parse_char_class(++nd)) == NULL) { .. Hmmm... is this legal ? http://www.eskimo.com/~scs/C-faq/q3.1.html seems to tell otherwise... The FAQ entry you reference has nothing to say about this at all... it has to do with whether the *location* of the lvalue

Re: max phy mem known working with FreeBSD 4.x

2002-11-06 Thread Terry Lambert
Nate Lawson wrote: On Tue, 5 Nov 2002, Terry Lambert wrote: As far as PCI goes (or anything they publish, for that matter), the MindShare books are very, very good. But for the particular question of how much physical address space is eaten, you really have to go to the chipset spec

Re: /usr/src/ed/bin/re.c:99

2002-11-06 Thread Terry Lambert
Marc Olzheim wrote: In any case, your fears are unfounded, for the most part, since the FAQ entry you are referencing is not analogous to the construct you are trying to apply it to, anyway, and the FAQ fails to deal with many of these portability issues, too, since it assumes that the

Re: max phy mem known working with FreeBSD 4.x

2002-11-05 Thread Terry Lambert
Matt wrote: Anyone knows the max physical mem that can be used with FreeBSD4.3? [ ... ] any chance going more than 4G? Sure, if you want to install it to warm things up. No, if you want to access it; access is limited to 4G, because that's 32 bits of address space, and your machine is a 32

Re: max phy mem known working with FreeBSD 4.x

2002-11-05 Thread Terry Lambert
Julian Elischer wrote: The hardware changes to do 32 bit physical addresses include a redefinition of how page tables and page directories are layed out and to be able to use it we'd have to define and turn on code for that differnt mode. iIt has not yet been written. It wouldn't be hard to

Re: max phy mem known working with FreeBSD 4.x

2002-11-05 Thread Terry Lambert
Richard Sharpe wrote: Well, the P4 does have an address extension that allows addressing of up to 64GB, EPA or something like that. This is useless to discuss in the context of 4.3, or even 4.x, unless Paul Saab is doing his work in 4.7, and it makes it into 4.8. Given that we are pretty much

Re: max phy mem known working with FreeBSD 4.x

2002-11-05 Thread Terry Lambert
PS: Richard Sharpe wrote: Well, the P4 does have an address extension that allows addressing of up to 64GB, EPA or something like that. It has segments, too. We don't use those, either. 8-). -- Terry To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-hackers in the

Re: max phy mem known working with FreeBSD 4.x

2002-11-05 Thread Terry Lambert
Dinesh Nair wrote: On Tue, 5 Nov 2002, Richard Sharpe wrote: Well, we have 4GB in a 4.6.2 system, and I think that we ran 4.3 on those systems for a while. However, you lose anywhere between 128M and 512M because of the PCI address space. what PCI address space ? could someone

Re: max phy mem known working with FreeBSD 4.x

2002-11-05 Thread Terry Lambert
M. Warner Losh wrote: In message: [EMAIL PROTECTED] Terry Lambert [EMAIL PROTECTED] writes: : The CDROM and a full set of the specifications will run you US$1500, : plus US$15 shipping in the US, or US$40 shipping, international. : : The price goes from $1500 to $75, if you can

Re: dgb driver update

2002-11-04 Thread Terry Lambert
Wilko Bulte wrote: On Mon, Nov 04, 2002 at 11:05:29AM +0300, Oleg Sharoiko wrote: you could use send-pr to make the proposed patch visible in the bug tracking database Submit it to the PR database. It can get in line behind the other almost 3000 open PR's, 65% of which are ports, 30% of

Re: max phy mem known working with FreeBSD 4.x

2002-11-04 Thread Terry Lambert
Matt wrote: Anyone knows the max physical mem that can be used with FreeBSD4.3? 2G on Alpha. 4G on Intel, if you tune your kernel and modify your KVA size to 3G. -- Terry To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-hackers in the body of the message

Re: Hi folk, needing basic help with shared mem

2002-11-02 Thread Terry Lambert
Wrong list... try -questions, next time. Dave Julia Smith wrote: i.e my library has for example a func PostMessage(int app, word msg); and SendMessage(int app, word msg); for argument sake.. man msgsnd man msgrcv -- Terry To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe

Re: Patch to allow a driver to report unrecoverable write errors to the buf layer

2002-10-29 Thread Terry Lambert
Hanspeter Roth wrote: On Oct 29 at 18:34, Poul-Henning Kamp spoke: That's a slightly more involved issue because you would have to actually try to write to it before you find out that you can't. Isn't there a means to determine the state of the protection before the mount is attempted?

Re: New kevent types: NOTE_STARTEXEC and NOTE_STOPEXEC

2002-10-27 Thread Terry Lambert
Juli Mallett wrote: EVFILT_PROC operates on pids, while NOTE_{START,STOP}EXEC operate on vnodes - it is the main difference. Currently, you can't reliably get a notification when kernes started executing some arbitrary executable from your fs. This is not a job for the kernel, I don't

Re: i am looking for a 5 volt signal

2002-10-27 Thread Terry Lambert
Matthew Dillon wrote: Uh guys. Parallel port digital outputs do not generally have a whole lot of drive. I really doubt a parallel port output could drive a relay. Depends on the amperage the relay draws. 8-). I used to use the paralell port output to drive a pulse dialer and

Re: i am looking for a 5 volt signal

2002-10-27 Thread Terry Lambert
Matthew Dillon wrote: Huh. I would have expected you to use the current loop on the phone line to power the dialer. There's a significant amount of power available there, though you would have to isolate the circuit since the common mode could be upwards of one or two

Re: Show me the light

2002-10-27 Thread Terry Lambert
Baldur Gislason wrote: I have powered leds from the parallel port, there's about 10mA of current available on each data pin without destroying anything. so I wired 8 leds, each with a 330 ohm series resistor, no external power supply. Use 470 ohm; your chip will last longer with all bits lit.

Re: Increasing KVM

2002-10-27 Thread Terry Lambert
Ian Campbell wrote: How exactly would I go about increasing KVM? I tried bumping up KVA_PAGES from 256 to 260, but all that did was cause page faults whenever apache (or fatboy, like in this case) was started... here's the error from /var/log/messages [ ... ] I remember reading

Re: Scheduling a recurring task in a device driver

2002-10-22 Thread Terry Lambert
M. Warner Losh wrote: In message: [EMAIL PROTECTED] Luigi Rizzo [EMAIL PROTECTED] writes: : a timeout() call will do (at most once per tick). grep for timeout( : in most of device drivers to see how to use it. Also, A software interrupt would be good too, depending on the nature

Re: 5.0-RUSH: -current install testers wanted!

2002-10-22 Thread Terry Lambert
Poul-Henning Kamp wrote: I want as many people as possible to beat up on sysinstall as much as they can. And I want them to do it RSN: 5.0-R is only 9 days away. Please try to be creative in the choices you make in sysinstall, we don't need 20 people all testing ftp-passive, we need to

Re: malloc

2002-10-22 Thread Terry Lambert
Danny Braniss wrote: What a lame program... If this program is indicative of your real-world work-load, you can optimize a lot by getting better programmers. If it is not indicative, then forget about it. i wish i could :-) This is a memory overcommit architecture. If you want to

Re: 5.0-RUSH: -current install testers wanted!

2002-10-22 Thread Terry Lambert
Juli Mallett wrote: Anyone with a good idea on how to bootstrap a _clean_ 5.0 install to a box with only a CDROM drive, and 4.7 CD, with broken PXE firmware, and an IDE disk which can be thrashed, by all means tell me... I'd imagine that I could just use the mfsroot and kernel, but there's no

Re: 5.0-RUSH: -current install testers wanted!

2002-10-22 Thread Terry Lambert
Juli Mallett wrote: Find another box where it has already been successfully installed, and an ISO image has been built from sources. I don't have a CD burner. I have no ability to burn a CD at all. You don't burn a CD from the other box, you install from it. Though FreeBSD doesn't

Re: malloc

2002-10-22 Thread Terry Lambert
Danny Braniss wrote: If you want GNU malloc behaviour, then you should install the port for the GNU allocator, and use it instead of the system allocator, and you will end up with the same behaviour that your application has on Linux. what ticked my curiosity was that the linux binary

Re: malloc

2002-10-22 Thread Terry Lambert
Danny Braniss wrote: Your code is not efficient; try this instead: He, the code is not mine, and the programmer is being invited for some coffee and indocrination. Good. The program showed at least two things, 1- the linux emulation ignores the datasize limit, Possibly. One would expect

Re: PThreads problem

2002-10-22 Thread Terry Lambert
Bruce M Simpson wrote: On Mon, Oct 21, 2002 at 02:03:52PM -0700, Terry Lambert wrote: It is more correct to say that libcurl makes an assumption about signal delivery which is not guaranteed by POSIX, and therefore libcurl will not work with *any* POSIX compliant threads implementation

Re: Kernel Panic Problems

2002-10-22 Thread Terry Lambert
John Baldwin wrote: Panic #1: --- Is this a full backtrace? I don't see any way that the stack could have started with trap_pfault... it had to be running something to cause a page fault. It's a fault from userland perhaps. Panic #3 was a fault in userland, and it showed the

Re: malloc

2002-10-22 Thread Terry Lambert
Dan Nelson wrote: The FreeBSD malloc uses anonymous pages mmap'ed off of /dev/zero. The Linux malloc uses pages added to the process address space via a call to sbrk. Actually, on FreeBSD only the page directory is mmap'ed. Data returned to the user is allocated via sbrk. Please see:

Re: malloc

2002-10-22 Thread Terry Lambert
Brooks Davis wrote: On Tue, Oct 22, 2002 at 01:20:42AM -0700, Terry Lambert wrote: The FreeBSD malloc would be lower performance than the Linux malloc, if you allocate space in teeny, tiny chunks; it has much higher performance for large allocations. Good programmers allocate

Re: malloc

2002-10-22 Thread Terry Lambert
Tony Finch wrote: The FreeBSD malloc guarantees that the pages are zeroed before being obtained from the system; this is probably the majority of the cost. It is a security measure, so that you do not leak data from one process to another through anonymous pages. The Linux

Re: malloc

2002-10-22 Thread Terry Lambert
Dan Nelson wrote: The only calls to sbrk have a 0 argument. This is only used to find the segment end, so that the mmap's do not occur over top of anything important. Ah, but take a look at the calls to brk, especially in map_pages() and free_pages(). How the anonymous pages (which I

Re: ctwm port and XFree86 4.2 port incompatible?

2002-10-22 Thread Terry Lambert
Julian Elischer wrote: Nothing I have tried has been successful in getting the ctwm window manager to run successfully with the newest X ports. It can't find any fonts. twm seems to work fine. All my old configs failed when I upgraded to teh new XFree86 ports. Anyone able to get it

Re: malloc

2002-10-22 Thread Terry Lambert
Tony Finch wrote: You are arguing that there is nothing that can account for the performance difference, when in fact there is a measured performance difference. No, I'm saying that some of what you said is either wrong or misleading, and the comment about security was especially stupid.

Re: 5.0-RUSH: -current install testers wanted!

2002-10-22 Thread Terry Lambert
Poul-Henning Kamp wrote: In message [EMAIL PROTECTED], [EMAIL PROTECTED] .de writes: Is sysinstall still supposed to copy the contents of the mfsroot- image to /stand ? This at least results in two copies of sysinstall, one in /stand and the other one in /usr/sbin. That is intentional

Re: Kernel Panic Problems

2002-10-22 Thread Terry Lambert
Diego Wentz Antunes wrote: No Terry there are no modifications from me to local files. I realy don't know why the information is incomplete but I didn't make any modifications. The incompleteness is because you didn't do a backtrace in ddb at the time of the crash, and only did it in gdb

Re: malloc

2002-10-22 Thread Terry Lambert
Tony Finch wrote: You said that Linux doesn't guarantee to zero pages handed from the system to userland, which is wrong. You've also mentioned the in- kernel page-zeroing strategy which is irrelevant when comparing different userland malloc implementations on the same OS. No. I said: | The

Re: Kernel Panic Problems

2002-10-21 Thread Terry Lambert
Diego Wentz Antunes wrote: I have been experiencing several kernel panics from differents situations, since a ls to just boot the kernel. I configured all the options in rc.conf to save the core dump from memory to HD and some of the results are here in the file panics. Above all I

Re: PThreads problem

2002-10-21 Thread Terry Lambert
Linus Kendall wrote: That was very thorough, thanks! Now I at least have a notion of what is going on. Since this is slightly urgent I guess a hack into the libcurl source code to try to remove the sigalarms would do the trick (in my case). In the general case it seems like there's a rather

Re: Patch to allow a driver to report unrecoverable write errors to the buf layer

2002-10-19 Thread Terry Lambert
Matthew Dillon wrote: :Hmm, the current approach doesn't look all that right to me, because we are :retrying operation even though the upper-layer code that initiated it was :already notified about the failure (e.g. received EIO), so that it should not :assume that the data was actually

Re: Patch to allow a driver to report unrecoverable write errors to the buf layer

2002-10-19 Thread Terry Lambert
Poul-Henning Kamp wrote: Yes, I noticed that appeared at some time. That misfeature should be removed in toto. If a retry can solve the issue, it's the drivers responsibility to retry as much as makes sense and then fail if it doesn't work. Neither the buf nor the bio layer should get

Re: Trying to write a crash dump - Trying to debug a kernel panic

2002-10-19 Thread Terry Lambert
joe wrote: I am trying to debug a boot time kernel panic. [ ... ] has gotten me so far, but I am stuck. I can trap and get dumped into the debugger (I think it's the debugger, the prompt is db). However I am trying to get a core dump written and that's where I am having no success. It's

Re: Linux compatibility and /dev/null

2002-10-17 Thread Terry Lambert
Mark Murray wrote: -rw-r--r-- 1 root wheel 0 Oct 2 17:59 /compat/linux/dev/null Huh??! A _file_??! It should be a device! Definitely wrong. Hmm??? Doing chmod 666 /compat/linux/dev/null fixes the problem. Temporarily only. A better workaround is rm /compat/linux/dev/null; mknod

<    1   2   3   4   5   6   7   8   9   10   >