Re: 20TB Storage System

2003-09-05 Thread Terry Lambert
David Gilbert wrote: Poul-Henning == Poul-Henning Kamp [EMAIL PROTECTED] writes: Poul-Henning I am not sure I would advocate 64k blocks yet. Poul-Henning I tend to stick with 32k block, 4k fragment myself. That reminds me... has anyone thought of designing the system to have more than 8

Re: Machine wedges solid after one serial-port source-line addition...

2003-09-16 Thread Terry Lambert
Barry Bouwsma wrote: Would anyone care to explain why the following simple patch could be enough to wedge my machine solid? (My original hack-patches without any console printf() debuggery did the same thing within seconds, as well...) All it does is notify the console whenever a serial port

Re: Any workarounds for Verisign .com/.net highjacking?

2003-09-17 Thread Terry Lambert
Clifton Royston wrote: For those who don't know what I'm talking about, try executing host thisdomainhasneverexistedandneverwill.com, or any other domain you'd care to make up in .com or .net. Verisign has abused the trust placed in them to operate a root name server, by creating wildcard A

Re: pppoe - nmap - No buffer space available

2003-09-17 Thread Terry Lambert
[EMAIL PROTECTED] wrote: sendto in send_tcp_raw: sendto(3, packet, 40, 0, X.X.X.X, 16) = No buffer space available Your interface is down. This happens all the time. If you use PPP on a dialup modem with a normal net connection, and unplug the modem while you are doing a ping, you will see

Re: tty layer and lbolt sleeps

2003-09-17 Thread Terry Lambert
Mike Durian wrote: I'm trying to implement a serial protocol that is timing sensitive. I'm noticing things like drains and reads and blocking until the next kernel tick. I believe this is due to the lbolt sleeps in the tty.c code. It looks like I can avoid these sleeps if isbackground()

Re: TCP information

2003-09-18 Thread Terry Lambert
Deepak Jain wrote: Is there a utility/hack/patch that would allow a diligent sysadmin to obtain which specific TCP connections are generating retransmits and receiving packet drops? netstat will show me drops on an interface, but not on a specific source/dest pair? I am guessing something

Re: Machine wedges solid after one serial-port source-lineaddition...

2003-09-18 Thread Terry Lambert
Barry Bouwsma wrote: You see, what I'm attempting to do, without knowing what I'm doing, is to implement the TIOCMIWAIT ioctl that apparently exists in Linux, to notify a userland program that there's been a status change on one or more of the modem status lines, and eliminate the need to poll

Re: [PATCH] : libc_r/uthread/uthread_write.c

2003-09-19 Thread Terry Lambert
Daniel Eischen wrote: If you are using libkse or libthr, you will get a partial byte count and not zero because the tape driver returns the (partial) bytes written. So exiting the loop in libc_r and returning 0 would only seem to correct the problem for libc_r. If there is a

Re: TCP information

2003-09-19 Thread Terry Lambert
Dan Nelson wrote: These types of statistics aren't kept. They usually do not make it into commercial product distributions for performance reasons, and because every byte added to a tcpcb structure is one byte less that can be used for something else. In practice, adding 134 bytes of

Re: TCP information

2003-09-19 Thread Terry Lambert
Deepak Jain wrote: If the tcpcb struct were expanded/changed and the various increments were added in the appropriate packet pushing code, this would work right? Is there something non-obvious that one would need to worry about to undertake such a project? Your overhead would be slightly

Re: has anyone installed 5.1 from a SCSI CD?

2003-09-30 Thread Terry Lambert
Peter Jeremy wrote: On Sun, Sep 28, 2003 at 06:14:25PM -0400, Sergey Babkin wrote: BTW, I have another related issue too: since at least 4.7 all the disk device nodes have charcater device entries in /dev. 'block' vs 'character' has nothing to do with random or sequential access and any

Re: user malloc from kernel

2003-09-30 Thread Terry Lambert
earthman wrote: how to allocate some memory chunk in user space memory from kernel code? how to do it correctly? If your intent is to allocate a chunk of memory which is shared between your kernel and a single process in user space, the normal way of doing this is to allocate the memory to a

Re: user malloc from kernel

2003-09-30 Thread Terry Lambert
Pawel Jakub Dawidek wrote: On Mon, Sep 29, 2003 at 06:56:13PM +0300, Peter Pentchev wrote: + I mean, won't the application's memory manager attempt to allocate the + next chunk of memory right over the region that you have stolen with + this brk(2) invocation? Thus, when the application tries

Re: Why is PCE not set in CR4?

2003-10-02 Thread Terry Lambert
Bruce M Simpson wrote: Now that I think on this a bit more, a sysctl might be a better place to put this, but it seemed to belong with the i386_vm86() bits, rather than polluting initcpu.c right away. The important thing is to allow the kernel to intermediate and control allocation of counters

Re: Why is PCE not set in CR4?

2003-10-02 Thread Terry Lambert
Bruce M Simpson wrote: On Wed, Oct 01, 2003 at 11:39:36AM +0200, Grumble wrote: However, I am not allowed to use the RDPMC instruction from ring 3 because the PCE (Performance-monitoring Counters Enable) bit is not set. You can do it with /dev/perfmon. man 4 perfmon. I have read the

Re: Changing the NAT IP on demand?

2003-10-07 Thread Terry Lambert
Julian Elischer wrote: On Mon, 6 Oct 2003, Leo Bicknell wrote: In a message written on Sun, Oct 05, 2003 at 08:11:05PM -0600, Nick Rogness wrote: In addition to keeping your NAT translations (as suggested by Wes), you need to also keep routes for those entries as well, so

Re: HZ = 1000 slows down application

2003-10-08 Thread Terry Lambert
Luigi Rizzo wrote: On Tue, Oct 07, 2003 at 06:17:04PM -0400, [EMAIL PROTECTED] wrote: We did some intensive profiling of our application. It does not seem like we are depending on clock ticks for any calculations. On the other hand we notice that our slow iterations happen almost at the

Re: netisr

2003-10-08 Thread Terry Lambert
Giovanni P. Tirloni wrote: I'm studying the network stack and now I'm confronted with something called netisr. It seems ether_demux puts the packet in a netisr queue instead of passing it directly to ip_input (if that was the packet's type). Is this derived from LRP ? No. NETISR is a

Re: Dynamic reads without locking.

2003-10-09 Thread Terry Lambert
Harti Brandt wrote: You need to lock when reading if you insist on consistent data. Even a simple read may be non-atomic (this should be the case for 64bit operations on all our platforms). So you need to do mtx_lock(foo_mtx); bar = foo; mtx_unlock(foo_mtx); if foo is a datatype that is

Re: Dynamic reads without locking.

2003-10-09 Thread Terry Lambert
Frank Mayhar wrote: The other thing is that the unlocked reads about which I assume Jeffrey Hsu was speaking can only be used in very specific cases, where one has control over both the write and the read. If you have to handle unmodified third-party modules, you have no choice but to do

Re: Recovery from mbuf cluster exhaustion

2003-10-09 Thread Terry Lambert
Peter Bozarov wrote: [ ... ] What I can't seem to figure out is how to flush out the stale mbufs/clusters. I can close down all network interfaces, and kill/restart most of the processes that I presume use up the mbufs. At a given point, there can't possibly be any processes that are hogging

Re: GEOM Gate.

2003-10-15 Thread Terry Lambert
Wilko Bulte wrote: On Tue, Oct 14, 2003 at 10:44:14PM +0200, Oldach, Helge wrote: From: Richard Tobin [mailto:[EMAIL PROTECTED] Ok, GEOM Gate is ready for testing. For those who don't know what it is, they can read README: Aaargh! It's the return of nd(4) from SunOS. Excuse

Re: Benchmarking kqueue() performance?

2003-10-17 Thread Terry Lambert
Lev Walkin wrote: One of the most comprehensive sites about that problem is: http://www.kegel.com/c10k.html That's about scaling to a large number of connections, not about kqueue() vs. select performance. The biggest problem with a large number of connections, at least as far as FreeBSD is

Re: Some mmap observations compared to Linux 2.6/OpenBSD

2003-10-25 Thread Terry Lambert
Ted Unangst wrote: On Fri, 24 Oct 2003, Michel TALON wrote: What is more interesting is to look at the actual benchmark results in http://bulk.fefe.de/scalability/ in particular the section about mmap benchmarks, the only one where OpenBSD shines. However as soon as touching pages is

Re: FreeBSD mail list etiquette

2003-10-25 Thread Terry Lambert
John-Mark Gurney wrote: Wes Peters wrote this message on Thu, Oct 23, 2003 at 01:43 -0700: Kip Macy, other DragonFlyBSD developers, and anyone else wishing to contribute are invited to join and participate in the open FreeBSD mail lists, sharing code, design information, research and test

Re: Fine grained locking (was: FreeBSD mail list etiquitte)

2003-10-28 Thread Terry Lambert
Robert Watson wrote: On Sat, 25 Oct 2003, Matthew Dillon wrote: It's a lot easier lockup path then the direction 5.x is going, and a whole lot more maintainable IMHO because most of the coding doesn't have to worry about mutexes or LORs or anything like that. You still have

Re: non-root process and PID files

2003-10-28 Thread Terry Lambert
Leo Bicknell wrote: Dan Langille wrote: Any suggestions? Here's a slightly backwards concept. We're all familar with how you can open a file, remove it from the directory, and not have it go away until the application closes it. Well, extend those semantics to the namespace. That

Re: freeing data segment

2003-10-30 Thread Terry Lambert
Vinod R. Kashyap wrote: I have this huge data structure in the data segment of my scsi driver. This data structure is initialized at driver build time, and is used only during driver initialization. I am trying to find out if I can free-up the memory it occupies, once I am done with the

Re: non-root process and PID files

2003-10-30 Thread Terry Lambert
Christopher Vance wrote: You can already mark a fd 'close on exec'. May I suggest a different feature: the ability to mark an open file (not just its fd) 'remove on close', with permission checked at mark time rather than close time (this status forgotten if not permitted when set) and the

Re: O_NOACCESS?

2003-10-31 Thread Terry Lambert
andi payn wrote: As far as I can tell, FreeBSD doesn't have anything equivalent to linux's O_NOACCESS (which is not in any of the standard headers, but it's equal to O_WRONLY | O_RDWR, or O_ACCMODE). In linux, this can be used to say, give me an fd for this file, but don't try to open it for

Re: kevent and related stuff

2003-10-31 Thread Terry Lambert
andi payn wrote: First, let me mention that I'm not nearly as experienced coding for *BSD as for linux, so I may ask some stupid questions. I've been looking at the fam port, and this has brought up a whole slew of questions. I'm not sure if all of them are appropriate to this list, but I

Re: non-root process and PID files

2003-10-31 Thread Terry Lambert
Nielsen wrote: Christopher Vance wrote: May I suggest a different feature: the ability to mark an open file (not just its fd) 'remove on close', with permission checked at mark time rather than close time (this status forgotten if not permitted when set) and the unlink actually done at

Re: O_NOACCESS?

2003-11-01 Thread Terry Lambert
andi payn wrote: Now hold on. The standard (by which I you mean POSIX? or one of the UNIX standards?) doesn't say that you can't have an additional flag called O_NOACCESS with whatever value and meaning you want. A strictly conforming implementation can not expose things into the namespace

Re: O_NOACCESS?

2003-11-01 Thread Terry Lambert
M. Warner Losh wrote: Rewind units on tape drives? If there's no access check done, and I open the rewind unit as joe-smoe? The close code is what does the rewind, and you don't have enough knowledge to know if the tape was opened r/w there. Which brings up the idea of passing fp-fd_flags

Re: spambouncer tags much freebsd list mail as spam

2003-11-03 Thread Terry Lambert
C. Kukulies wrote: I installed the spambouncer.org procmail script and before I was switching the behaviour from SILENT to COMPLAIN I took a look at my spam.incoming folder and found a lot of messages from freebsd-bugs and freebsd-mobile in there. Both lists are not directed to folders prior

Re: Kylix in FreeBSD

2003-11-07 Thread Terry Lambert
Rod Person wrote: On Thursday 06 November 2003 09:09 am, It was written: If you futs with getting Kylix to run under FreeBSD, don't forget the special glibc requirements that some versions of Kylix have. Maybe you should probably simply replace the entire /compat userland with the

Re: FreeBSD 5.1-p10 reproducible crash with Apache2

2003-11-07 Thread Terry Lambert
Mike Silbersack wrote: On Wed, 5 Nov 2003, [ISO-8859-1] Branko F. Grac(nar wrote: I tried today with yesterday's -CURRENT. Same symptoms. No kernel panic, just lockup. Ok, submit a PR with clear details on how to recreate the problem, and we'll see if someone can take a look into it. I'm

Re: non-root process and PID files

2003-11-13 Thread Terry Lambert
Jos Backus wrote: On Mon, Oct 27, 2003 at 10:31:18AM -0500, Dan Langille wrote: If a process starts up and does a setuid, should it be writing the PID file before or after the setuid? Two methods exists AFAIK: 1 - write your PID immediately, and the file is chown root:wheel 2 -

Re: kqueue, NOTE_EOF

2003-11-13 Thread Terry Lambert
Jaromir Dolecek wrote: marius aamodt eriksen wrote: in order to be able to preserve consistent semantics across poll, select, and kqueue (EVFILT_READ), i propose the following change: on EVFILT_READ, add an fflag NOTE_EOF which will return when the file pointer *is* at the end of the file

Re: Confused about HyperThreading and Performance

2003-11-13 Thread Terry Lambert
Daniel Ellard wrote: Can someone point me at some non-marketing documentation about hyperthreading on the latest Intel chips? I'm seeing some strange performance measurements and I would like to figure out what they mean. Go out to Intel's web site's developer section, and look for SMT.

Re: non-root process and PID files

2003-11-14 Thread Terry Lambert
Jos Backus wrote: On Thu, Nov 13, 2003 at 02:45:18AM -0800, Terry Lambert wrote: Why use pid files at all if you could be using a process supervisor instead? Who supervises the supervisor? Heh. The supervisor should be small and robust, like init. Has init died on you recently? Do you

Re: non-root process and PID files

2003-11-15 Thread Terry Lambert
Jos Backus wrote: On Fri, Nov 14, 2003 at 01:45:45AM -0800, Terry Lambert wrote: OK. We already have one of those. We call it init. 8-). Feature-wise init and svscan/supervise don't quite match; svscan has more features, one of which being that it doesn't use a single control file which

Re: Conflict between sys/sysproto.h stdio.h ... ?

2003-11-20 Thread Terry Lambert
lucy loo wrote: I am writing a kernel loadable module to reimplement some system calls. I have included sys/sysproto.h, sys/systm.h, etc. -- very standard header files for kld implmentation. So far... I also want to do file i/o in this module, therefore I need to include stdio.h. But it

Re: secure file flag?

2003-11-25 Thread Terry Lambert
Wes Peters wrote: On Tuesday 18 November 2003 16:31, Rayson Ho wrote: e.g. when deleting a secure file, the OS will overwrite the file with random data. Better to overwrite it with a more secure pattern. See ports/ sysutils/obliterate for references. It has been mentioned before that

Re: Library libgcc_pic.a missing on 5.1?

2003-11-25 Thread Terry Lambert
Jim Durham wrote: Is liibgcc_a not supposed to be on 5.1? Is the one in /usr/lib not good enough for you? 8-) 8-). -- Terry ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to

Re: getpwnam with md5 encrypted passwds

2003-11-26 Thread Terry Lambert
[EMAIL PROTECTED] wrote: i am trying to validate a given user password against my local passwd-file with this piece of code : if (!( pwd = getpwnam ( user ))) { log(ERROR,User %s not known,user); stat=NOUSER; } if (!strcmp(

Re: getpwnam with md5 encrypted passwds

2003-11-27 Thread Terry Lambert
Clifton Royston wrote: If you will need to do authentication after your program drops privileges, your best course is probably to go through PAM, to install a separate daemon which implements a PAM-supported protocol and which runs with privileges, and then to enable that protocol as a PAM

Re: getpwnam with md5 encrypted passwds

2003-11-27 Thread Terry Lambert
Peter Pentchev wrote: On Wed, Nov 26, 2003 at 02:21:04PM +0100, Kai Mosebach wrote: Looks interesting ... is this method also usable, when i dropped my privs ? I think Terry meant pam_authenticate() (not pan), but to answer your question: no, when you drop your privileges, you do not have

Re: NFS Flags Oddity

2003-11-27 Thread Terry Lambert
Kris Kirby wrote: FreeBSD (4.9-RC) doesn't appear to export schg flags over NFS. You've got to shell in locally to the machine to move the schg flags; ls -lao doesn't report them over NFS, but does list them locally. Non-local flags are not defined, so they are not permitted to be exported

Re: question about _exit() function

2003-11-28 Thread Terry Lambert
rmkml wrote: is the _exit() function safe for a thread ? my program use vfork() and then execve in a thread context. The documentation mentions that the process has to call _exit() in case of failure. But this _exit() is really safe for the parent thread ? The behaviour is undefined in the

Re: question about _exit() function

2003-11-28 Thread Terry Lambert
rmkml wrote: Thanks a lot for the answer. I will change vfork() with fork(). An another question: in the man page of vfork() it is mentionned that the fork() function has to use _exit(0) too when something wrong with the execve() happens! I can see how you might read it this way, but that's

Re: FreeBSD VFS System?

2003-12-19 Thread Terry Lambert
Ryan Sommers wrote: Are there any good web resources or books on the VFS system that the FreeBSD kernel uses? I'm guessing it might have originated from the 4.4BSD(?) interface. I've been attempting to read through the source code for different system calls (ie mkdir, rmdir, mount/umount) and

Re: Machines with = 4GB of RAM

2003-12-19 Thread Terry Lambert
Andrew Kinney wrote: On 17 Dec 2003 at 15:44, Julian Elischer wrote: snip options KVA_PAGES=512 may be a start, but is it still required, and do I have to change anything else to match it? (where does the Makefile work out where to link the kernel for?) Is a value of 512 enough

Re: select()/poll() i kernel.

2002-07-30 Thread Terry Lambert
Daniel Lundqvist wrote: I was wondering if there is a select()/poll() for use in kernel by kernel threads? I've been looking around in sys/kern/ but didn't find anything. I'm currently developing under 4.6. Please CC me since I'm not a member of the list. 4.6 does not have kernel threads;

Re: Accessing memory below 1 MB

2002-07-30 Thread Terry Lambert
[EMAIL PROTECTED] wrote: I'm writing some graphics code (just for fun) and I need legal access to the memory addresses below 1 mb. The thing is, I know how to access those addresses (open /dev/mem, mmap, and that's it), but I'd like to be able to alloc some pages so that my accesses are

Re: Assembly, Kernels and Bootstraps

2002-07-31 Thread Terry Lambert
Ryan Sommers wrote: Several of the sites I have visited on assembly say it isn't needed anymore. Is it still needed to write a bootstrap? Yes. Either you have to write it, or it has to be written and placed in a library for you to use, but it's there, no matter what. There's no way to write

Re: poll

2002-07-31 Thread Terry Lambert
O Senhor wrote: Hello, My FreeBSD 4.6 box (running ldap server) sldap, stops with the sldap process in this loop: ... poll([{fd=3, events=POLLRDNORM}], 1, 1) = 0 gettimeofday({1028123628, 836383}, NULL) = 0 clock_gettime(0, 0xbfafefa4)= 0 poll([{fd=3,

Re: Assembly, Kernels and Bootstraps

2002-08-01 Thread Terry Lambert
Sergey Lyubka wrote: That question I presume is a sign of a more global need of good book describing FreeBSD internals and philosophy behind it. Linux community has an excellent 'Linux Device Drivers', 'Understanding The Linux Kernel' etc; why not FreeBSD community does have such source of

Re: Assembly, Kernels and Bootstraps

2002-08-01 Thread Terry Lambert
Terry Lambert wrote: Sergey Lyubka wrote: [ ... ] Linux community has an excellent 'Linux Device Drivers', 'Understanding The Linux Kernel' etc; [ ... ] It's just not possible to hit a moving target (or in this case, to document code that won't at least sit still at the interfaces). Note

Re: -fomit-frame-pointer for the world build

2002-08-02 Thread Terry Lambert
Dmitry Morozovsky wrote: What are the drawbacks of building FreeBSD with -fomit-frame-pointer? As far as I can see, it saves both space (which is not as worth as disk space got cheaper and cheaper) and execution time (which is, AFAICC, more important). I'd already done some tests, but not

Re: -fomit-frame-pointer for the world build

2002-08-02 Thread Terry Lambert
Dmitry Morozovsky wrote: [ ... -fomit-frame-pointer ... ] Yes, Terry, I'd read this note. However, it does not clarify for me which exactly functionality is lost with omitting this. I tried to build some binaries with -fomit..., then tried to debug it a bit, and gdb shows me both backtrace

Re: dhcp problems with my ISP

2002-08-03 Thread Terry Lambert
Bri wrote: Hi I have a Cable and have a Cable Modem for my internet connection of which you use dhcp to obtain an IP address great but this only seems to work successfully on a Windows machine I've registered all the other mac addresses of unix boxes and Apple macs I have and they seem to

Re: dhcp problems with my ISP

2002-08-03 Thread Terry Lambert
Andy Sparrow wrote: Often, once the cable company sees a MAC address, it filters all other MAC addresses from getting a lease from your wire. This is true, broadly speaking. Or broad-band-ly speaking? If they're mildly clueful (and probably if you convince them that you are), you may

Re: dhcp problems with my ISP

2002-08-03 Thread Terry Lambert
Clifton Royston wrote: However, one special and relevant case of Use the same exact NIC is to set up one of the various UNIX boxes as your gateway doing NAT, and have it act as a DHCP server for your LAN. Once that's done it can issue DHCP leases to all your other systems, and then (for

Re: dhcp problems with my ISP

2002-08-03 Thread Terry Lambert
Ron Roskens wrote: There could be another explanation. I had this problem with a NetBSD machine running dhclient connecting to ATTBI. By default dhclient uses a hard-coded value of 16 for the TTL on UDP packets. ATTBI had upgraded their network, and the DHCP server was further away such

Re: dhcp problems with my ISP

2002-08-03 Thread Terry Lambert
Wouter Van Hemel wrote: Use the same exact NIC. Wouldn't it be possible to change the mac address? A friend of mine used this method once to obtain a new ip address from the server when he was being DoS'ed on his home ip by some irc kiddies. Ofcourse, you'd have to change the other

Re: dhcp problems with my ISP

2002-08-03 Thread Terry Lambert
Andy Sparrow wrote: Hmm. I don't see where the original post mentions any specific ISP - thus this is simply the policy of a single ISP, and not the one the poster is on? (In fact, it looks rather like the poster is in Dear Old Blighty... ;-) Pretty irrelevant; once one provider learns a

Re: -fomit-frame-pointer for the world build

2002-08-04 Thread Terry Lambert
Darren Pilgrim wrote: Terry Lambert wrote: Dmitry Morozovsky wrote: What are the drawbacks of building FreeBSD with -fomit-frame-pointer? The frame pointer is used for debugging, specifically for the stack traceback function to know arguments. Removing it means losing some

Re: doFS.sh, FreeBSD To Go

2002-08-08 Thread Terry Lambert
Makoto Matsushita wrote: BTW, why you want a floppy image for your project? Doesn't 'cdboot' help you anything? FWIW, I think a floppy image is great. I have a number of older systems from which I cannot boot from the CDROM. It's also desirable from the third party driver perspective, as

Re: unsubscribe

2002-08-09 Thread Terry Lambert
It's a means of collecting email addresses, like the joke of the day subscriptions with reply addresses that don't go to the joke of the day site they pretend to be from. The expectation is that people will reply with information on how to unsubscribe, thereby validating their emial addresses...

Re: serial console com1 to com1 == login race condition?

2002-08-09 Thread Terry Lambert
Fricking glide-pad... Terry Lambert wrote: One incredibly As I was saying... one incredibly ugly hack I've seen used is to set the baud rate widely different between the ports, and then use explicit breaks to synchronize them so you can login. This relys on the UARTs not making the noise

Re: serial console com1 to com1 == login race condition?

2002-08-09 Thread Terry Lambert
Aled Morris wrote: On Fri, 9 Aug 2002, Terry Lambert wrote: My money is on the hacked CR-greedy getty, though... Why not bring up ppp or slip on the line permanently 10.0.0.1 - 10.0.0.2 Maybe you could bind a standalone telnetd to that IP only? The purpose is to handle things that can

Re: unsubscribe

2002-08-09 Thread Terry Lambert
Wouter Van Hemel wrote: Why not catch (un)subscribe's to mailing lists? That wouldn't only stop people fishing for addresses, but also newbies and distracted people... It's too compute intensive for high traffic lists, and it occasionally makse mistakes. For example, we would both have to

Re: Memory below 1 MB

2002-08-09 Thread Terry Lambert
[EMAIL PROTECTED] wrote: As I explained in another message, I am writing some graphics code (both for fun and educational purposes) and need to access memory below 1 MB. I have tried it by opening /dev/mem, calling mmap, i386_vm86 and even opening /dev/io to change permission levels.

Re: release variability

2002-08-10 Thread Terry Lambert
Colin Percival wrote: At 00:41 08/08/2002 -0700, Terry Lambert wrote: Colin Percival wrote: If two people `make release` on different machines, how much difference will there be between the results? Obviously the kernel will be different because it contains the user and host names

Re: m_freem() in tcp_respond()

2002-08-10 Thread Terry Lambert
FUJITA Kazutoshi wrote: --- /sys/netinet/tcp_subr.c.ORG Thu Jul 18 19:47:04 2002 +++ /sys/netinet/tcp_subr.c Sun Aug 11 04:00:09 2002 @@ -393,7 +393,8 @@ bcopy((caddr_t)th, (caddr_t)nth, sizeof(struct tcphdr)); flags = TH_ACK; } else { -

Re: release variability

2002-08-10 Thread Terry Lambert
Colin Percival wrote: The hardest part has got to be the archive files; I don't see how it could be avoided, without destroying information, at least in the archive update case, and probably in the archive recreation from object files case. Could someone point me towards information on

Re: Hi, how the kernel add the devices

2002-08-12 Thread Terry Lambert
ouyang kai wrote: Part 1.1Type: Plain Text (text/plain) Encoding: quoted-printable See /usr/src/sys/kernel.h. It is done using linker sets and SYSINIT. -- Terry To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-hackers in the body of the message

Re: Hi, how the kernel add the devices

2002-08-12 Thread Terry Lambert
ouyang kai wrote: Part 1.1.1Type: Plain Text (text/plain) Encoding: quoted-printable Name: kernel_init_problem.txt kernel_init_problem.txtType: Plain Text (text/plain) Encoding: quoted-printable If you

Re: Thread-safe resolver [patches for review]

2002-08-12 Thread Terry Lambert
Maxim Sobolev wrote: Attched please find two patches based on bin/29581 PR to make FreeBSD resolver thread-safe. They represent two approaches to reach this goal - the first is to introduce reentrant versions of the standard gethostbyXXX(3) APIs, similar to ones existing in other unices, and

Re: Thread-safe resolver [patches for review]

2002-08-12 Thread Terry Lambert
Maxim Sobolev wrote: You may also want to consider the use of a .init and .fini section for the code, to permit the creation of an initial lookup context chunk; this is kind of a tradeoff, but it will mean that a server will not have to do the recheck each time. The .fini section would

Re: Thread-safe resolver [patches for review]

2002-08-12 Thread Terry Lambert
David Xu wrote: localtime() etc. are candidate to make them use per thread storage. Any call that returns a pointer to a statically allocated data area is a candidate, by definition, I think. -- Terry To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-hackers in the body

Re: Thread-safe resolver [patches for review]

2002-08-12 Thread Terry Lambert
Peter Wemm wrote: Maxim Sobolev wrote: I also would like to hear from you whether or not you think that we need all those gethostbyXXX_r(3) functions. Yes. Because autoconf looks for them and will assume non-reentrancy if they are not present. Also, for source compatability with linux

Re: How the kernel add the devices when the kernel start

2002-08-12 Thread Terry Lambert
Sent with permission; the original to which this was a response was supposed to go to -hackers. (Captured for the next person with the same questions). ouyang kai wrote: Part 1.1.1Type: Plain Text (text/plain) Encoding: quoted-printable

Re: Thread-safe resolver [patches for review]

2002-08-13 Thread Terry Lambert
Maxim Sobolev wrote: This scenario doesn't look as a legitimate way to do things for me. Let's inspect what will happen when you are unloading a PIC module, which has one or more threads running. There are two possibilities: either thread scheduler (libc_r) was linked with the program itself

Re: IP routing question

2002-08-13 Thread Terry Lambert
Les Biffle wrote: You could use the draft-touch-ipsec-vpn-04.txt together with ipfw rules, but then you say you don't want to look at IP addresses... I'm happy to look at outside addresses, just not the ones on the inside. I would also consider matching up endpoint (VPN gateway or

Re: SysV IPC related question

2002-08-13 Thread Terry Lambert
Hiten Pandya wrote: I was wondering why we have a struct mymsg in sys/msg.h, when many utilities defined their own version of it. I am curious about this because our stock version of struct mymsg: struct mymsg { long mtype; /* message type */ char mtext[1];/*

Re: SysV IPC related question

2002-08-13 Thread Terry Lambert
Hiten Pandya wrote: OK. One more question; so, is there any particular reason why our cousin NetBSD doesnt use this overlay structure? Also, the NetBSD SysV Msg regression tool defines its own struct mymsg; and doesnt have one standard in the sys/msg.h header file. I don't know why NetBSD

Re: IP routing question

2002-08-13 Thread Terry Lambert
Lars Eggert wrote: Terry Lambert wrote: As you say, SA's are not interfaces. Try pinging over the link from hosts on either side of the tunnel, e.g.: 10.0.1.15/8---10.0.1.1/810.0.2.1/810.0.2.11/8 public IP #1---public IP #2 Ping #1

Re: IP routing question

2002-08-13 Thread Terry Lambert
Lars Eggert wrote: I don't think we have the same definition of the IPSec tunnel problem. Mine is tunnel mode SAs aren't interfaces, and IPsec duplicates encapsulation and firewalling techniques that are (better) handled outside IPsec, see draft-touch-ipsec-vpn. Having or not having a

Re: About 'sysctl' routine problem?

2002-08-15 Thread Terry Lambert
ouyang kai wrote: Part 1.1Type: Plain Text (text/plain) Encoding: quoted-printable | Hi guys, | In the TCP/IP Illustrated, Volume2: The Implementation book, | there give 'ioctl' and 'sysctl' in the kernel routine. | ioctl - sooioctl-(interface)ifioctl. | sysctl-

Re: possible to expand a file for vn-device FS usage ?

2002-08-15 Thread Terry Lambert
Daniel O'Connor wrote: On Thu, 2002-08-15 at 17:04, Patrick Thomas wrote: Any suggestions on how to expand that file without doing the dump/restore steps ? man 8 growfs perchance? :) You can unmount it, grow the underlying file with: dd if-/dev/zero bs=XXX,count=XXX filename

PATCHES: Support for kqueue for System V message queues

2002-08-15 Thread Terry Lambert
I got really tired of this support not eng there, so I have added it, with these patches (attached -- for weenies, I have included a unidiff, at the end, but you should really use the context diff when you port the code to -current... ;-)). The data part returns the number of messages pending on

Re: possible to expand a file for vn-device FS usage ?

2002-08-15 Thread Terry Lambert
Patrick Thomas wrote: What is the negative effect of this fragmentation, and does it mean I won't be able to use all of the space that I added ? Old disk: [X X ][XX ][ XX ][X X][ XX] New disk (initial state): [X X ][XX ][ XX ][X X][ XX][][][][][] New disk (after

Re: possible to expand a file for vn-device FS usage ?

2002-08-16 Thread Terry Lambert
Patrick Thomas wrote: Thank you for the very clear explanation. Does there exist a utility to immediately take a partition that has been growfs'd and fix it so that it does not experience this performance penalty ? That is, I am willing to sit and wait 10 minutes while some utility

Re: When to consider the new scehduler?

2002-08-16 Thread Terry Lambert
Jonathon McKitrick wrote: A couple of months ago, I saw a note on daemonnews that there was a patch for a proportional share scheduler. When would this work better than the existing priority feedback scheduler? NOTE: Please CC me, as I am not currently subscribed. Thanks. Basically, you

Re: When to consider the new scehduler?

2002-08-16 Thread Terry Lambert
Jonathon McKitrick wrote: | thrashing, but the result was that the X server had sufficiently | good interactive response to fullfill the move mouse - wiggle | cursor requirement amd avoid cognitive dissonance on the part | of the user attached to the mouse. 8-). Why don't they just add an

Re: Increasing size of if_flags field in the ifnet structure [patch

2002-08-16 Thread Terry Lambert
Maxim Sobolev wrote: There is no much point in this patch, because it will increase size of struct ifreq, which means that no ioctl's from older apps will be accepted anyway. Therefore, there is no difference between those two, while my approach is obviously cleaner. It does

PATCH2: Better kqueue patches

2002-08-17 Thread Terry Lambert
OK, these patches still add support for System V message queue integration into kqueue. They also fix the problems I noted before, by adding a third parameter to KNOTE(), and fixing up the kn_fop-f_event() functions to take a third parameter. This fixes the message queue ID 65536 problem, and

PATCH2: Better kqueue patches

2002-08-17 Thread Terry Lambert
OK, these patches still add support for System V message queue integration into kqueue. They also fix the problems I noted before, by adding a third parameter to KNOTE(), and fixing up the kn_fop-f_event() functions to take a third parameter. This fixes the message queue ID 65536 problem, and

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