rc.d scripts to control multiple instances of the same daemon?

2013-06-25 Thread Garrett Wollman
I'm in the process of (re)writing an rc.d script for kadmind (security/krb5). Unlike the main Kerberos daemon, kadmind needs to have a separate instance for each realm on the server -- it can't support multiple realms in a single process. What I need to be able to do: 1) Have different flags and

Re: NFS server bottlenecks

2012-10-12 Thread Garrett Wollman
< said: > I've attached the patch drc3.patch (it assumes drc2.patch has already been > applied) that replaces the single mutex with one for each hash list > for tcp. It also increases the size of NFSRVCACHE_HASHSIZE to 200. I haven't tested this at all, but I think putting all of the mutexes in

Re: NFS server bottlenecks

2012-10-10 Thread Garrett Wollman
< said: > And, although this experiment seems useful for testing patches that try > and reduce DRC CPU overheads, most "real" NFS servers will be doing disk > I/O. We don't always have control over what the user does. I think the worst-case for my users involves a third-party program (that they

Re: NFS server bottlenecks

2012-10-03 Thread Garrett Wollman
< said: >> Simple: just use a sepatate mutex for each list that a cache entry >> is on, rather than a global lock for everything. This would reduce >> the mutex contention, but I'm not sure how significantly since I >> don't have the means to measure it yet. >> > Well, since the cache trimming i

Re: NFS server bottlenecks

2012-10-02 Thread Garrett Wollman
[Adding freebsd-fs@ to the Cc list, which I neglected the first time around...] < said: > I can't remember (I am early retired now;-) if I mentioned this patch before: > http://people.freebsd.org/~rmacklem/drc.patch > It adds tunables vfs.nfsd.tcphighwater and vfs.nfsd.udphighwater that can >

NFS server bottlenecks

2012-10-01 Thread Garrett Wollman
I had an email conversation with Rick Macklem about six months ago about NFS server bottlenecks. I'm now in a position to observe my large-scale NFS server under an actual production load, so I thought I would update folks on what it looks like. This is a 9.1 prerelease kernel (I hope 9.1 will be

Re: Replacing BIND with unbound (Was: Re: Pull in upstream before 9.1 code freeze?)

2012-07-09 Thread Garrett Wollman
< said: > I could care less about the resolver daemon itself, I agree with what > you're saying and I don't think most end users will care about that. > But getting rid of dig and host in base would be bad. I don't think it's as bad as you suggest, although I do think they we would likely get a f

Re: Replacing BIND with unbound (Was: Re: Pull in upstream before 9.1 code freeze?)

2012-07-08 Thread Garrett Wollman
< said: > Neither of which has any relevance to the actual root zone ZSK, which > could require an emergency roll tomorrow. Surely that's why there's a separate KSK. The ZSK can be rolled at any time. -GAWollman ___ freebsd-hackers@freebsd.org mailing

Replacing BIND with unbound (Was: Re: Pull in upstream before 9.1 code freeze?)

2012-07-07 Thread Garrett Wollman
< said: > BIND in the base today comes with a full-featured local resolver > configuration, which I'm confident that Dag-Erling can do for unbound > (and which I would be glad to assist with if needed). Other than that, > what integration are you concerned about? The utilities (specifically host(

CFR: Exceedingly minor fixes to libc

2009-11-13 Thread Garrett Wollman
If you have a moment, please take a look at the following patch. It contains some very minor fixes to various parts of libc which were found by the clang static analyzer. They fall into a few categories: 1) Bug fixes in very rare situations (mostly error-handling code that has probably never bee

Re: NFS client/buffer cache deadlock

2005-04-23 Thread Garrett Wollman
< said: > Can you find any evidence that it's acceptable to interleave multiple > writers that are doing O_APPEND? At best, to do what you're asking, > they could be kept from being interleaved from the context of one > specific NFS client host... As far as POSIX goes, the standard says that ap

Re: NFS client/buffer cache deadlock

2005-04-22 Thread Garrett Wollman
< POSIX == SUSv3 these days. Not quite. POSIX and SUSv3 use the same specification, but don't require the same things. (Specifically, SUSv3 requires the XSI option to be implemented.) -GAWollman ___ freebsd-hackers@freebsd.org mailing list http://lis

Re: NFS client/buffer cache deadlock

2005-04-21 Thread Garrett Wollman
< said: > I think the first is more useful behavior than the last. Supporting it > should be exactly the same as supporting what happens if the actual > filesystem fills up. In this case, the filesystem is being requested to > write more "than there is room for." Returning a short write for ope

Re: NFS client/buffer cache deadlock

2005-04-21 Thread Garrett Wollman
< said: > Btw.: I'm not sure write(),writev() and pwrite() are allowed to do short > writes on regular files... ? I believe it is the intent of the Standard to prohibit this (a paragraph in the rationale says that short writes can only happen if O_NONBLOCK is set, but this is clearly wrong becaus

Re: My project wish-list for the next 12 months

2004-12-02 Thread Garrett Wollman
[Cc list trimmed] < said: > The lack of speed in some apps can be blamed mostly on the toolkits. I'll second that. > GTK+ 1.2 was a speed demon, GTK+ 2.x is a lot slower. And either one is an enormous hog compared to Athena widgets. (This is something of an accomplishment, since people have b

Re: My project wish-list for the next 12 months

2004-12-02 Thread Garrett Wollman
< said: > This sounds very close to OpenAFS. I don't know what distinguishes a SAN > from other types of NAS. OpenAFS does everything you mentioned in the > above paragraph. OpenAFS _almost_ works on FreeBSD right now. AFS's consistency model is wholly unsuitable for clustering. -GAWollman

Problem detecting POSIX symbolic constants

2002-10-09 Thread Garrett Wollman
< said: > I was advised by Terry Lambert to use: > #ifdef _POSIX_REALTIME_SIGNALS Terry was wrong. If _POSIX_REALTIME_SIGNALS is undefined, it means one of two things: - The RTS option is not supported, or - You can't tell whether or not the RTS option is supported. The section of XBD you quo

Re: sem_init help?

2002-09-18 Thread Garrett Wollman
< said: > The semaphore remains active until it is destroyed. If you don't > want to track its page, can you hook it into ipcrm(1)? A simple way of implementing process-shared anonymous semaphores, using the kernel support, is to simply create a temporary semaphore, and (important part) store

Re: or not ? [Was: cvs commit: src/include grp.h]

2002-02-25 Thread Garrett Wollman
< said: >> From IEEE P1003.1 Draft 7: You're looking at the wrong document. FreeBSD is very far from being ready to implement POSIX 2001 header files. POSIX 1990, which we do implement, requires almost everywhere. -GAWollman To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe

Some thoughts on if_ioctl()

2001-10-08 Thread Garrett Wollman
< said: > Second, let's look at the handling of SIOCADDMULTI/SIOCDELMULTI. > There is code obviously taken from if_loop.c and used in some > drivers, which tries to do something with the third argument "data" > of the if_ioctl() driver method if "data" isn't NULL. The historic implementation pas

Re: [kernel patch] fcntl(...) to close many descriptors

2001-02-13 Thread Garrett Wollman
< said: > basically i am thinking of something like > generic_syscall("fdcloseall", ); No less clear than ret = syscall(SYS_FDCLOSEALL, ...); -GAWollman To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message

Re: [kernel patch] fcntl(...) to close many descriptors

2001-01-29 Thread Garrett Wollman
< said: > ok, sorry for the confusion then (though, how does one tell from > the manpage for pipe(2) what is going on there!) You're not supposed to -- it's an implementation detail. -GAWollman To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of t

Re: [kernel patch] fcntl(...) to close many descriptors

2001-01-29 Thread Garrett Wollman
< said: > but there is a problem with syscall() in that according to > the manpages it cannot handle in/out parameters as instead > it is supported by ioctl/fcntl Of course it can, and the manual page doesn't even suggest what you say. It says: There is no way to simulate system calls tha

Re: [kernel patch] fcntl(...) to close many descriptors

2001-01-29 Thread Garrett Wollman
< said: > And, this mechanism would be explicitly used for "non portable" or > experimental functions (such as the closeall() which started the > thread, or next time someone comes up with a start_http_server_thread()) > and avoiding overloading an existing syscall or having to modify > libc Thi

Re: [kernel patch] fcntl(...) to close many descriptors

2001-01-29 Thread Garrett Wollman
< said: > kind-of, though the function name should be a string and not > an integer (easier to extend/allocate), and it should allow > return values in user-supplied buffers, same as ioctl/fcntl > calls do. dlsym() -GAWollman To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe f

Re: RFC: /dev/console -> /var/log/messages idea/patch

2000-11-22 Thread Garrett Wollman
< said: > Do you mean something like this? Yes, exactly like that! -GAWollman -- Garrett A. Wollman | O Siem / We are all family / O Siem / We're all the same [EMAIL PROTECTED] | O Siem / The fires of freedom Opinions not those of| Dance in the burning flame MIT, LCS, CRS, or NSA|

mtree verification output format

2000-10-02 Thread Garrett Wollman
< said: > make "extra" and "missing" attributes in the output > rather than prefixes which can be confused with filenames. > Don't do the "run-in" of the first attribute with a short > filename This looks like a good change, but while you're there: > size

Announcement: Two new FreeBSD-related mailing-lists

2000-09-26 Thread Garrett Wollman
- Standards relevant to printing, such as IPP. - Support for foreign printing protocols in FreeBSD using tools like `CAP' and `samba'. This list is maintained and retroactively moderated by Garrett Wollman, wollman@{{FreeBSD,bostonradio,decalcomania}.org,lcs.mit.edu

kern.ipc.maxsockbuf vs reality?

2000-07-23 Thread Garrett Wollman
< said: > if ((u_quad_t)cc > (u_quad_t)sb_max * MCLBYTES / (MSIZE + MCLBYTES)) > return (0); I think the code here should clip the requested size into range rather than failing the allocation. That way, a program could just specify a ridiculously-large buffer size and get wh

Re: ACPI project progress report

2000-06-19 Thread Garrett Wollman
< said: > Hmm, this has me thinking again about suspend/resume. In the current > context, can we expect a suspend veto from some function to actually > DTRT? (ie. drivers that have been suspended get a resume call). That's how I originally implemented it, but I'm not sure whether that has bee

Re: [REPOST] Re: How do I get port inside kernel.... (fwd)

2000-06-07 Thread Garrett Wollman
< said: >> current process? Is it safe if I use proc0 to pass the proc structure to >> call socreate() and sobind()? How safe it is to use curproc >> structure? Somebody mentioned that it will not work in interrupt >> handlers. proc0 is passed because I didn't think things completely through whe

RE: stupid FS questions

2000-05-30 Thread Garrett Wollman
< said: > i know that :) i guess my questions were > 1) why the same piece of code duplicated in all ``mount_xxx'' utilities? Because the original loadable module system held strongly to the religion that the kernel should never load anything of its own accord. The designers of the current load

Re: NETGRAPH (proposal. FINAL)

2000-02-29 Thread Garrett Wollman
< said: > can you clarify this ? Looong ago i used the '586 on a bridge and it did let > me write the MAC header... The 82586 has a mode bit which selects one of two possibilities: 1) The transmit command specifies the destination address and length/ethertype field; the source address is insert

RE: NETGRAPH patches (proposal)

2000-02-23 Thread Garrett Wollman
CC's trimmed! < said: > this looks more and more like STREAMS Which is part of the reason why Netgraph will always remain an optional add-on, rather than the way the protocol stack is normally constructed. -GAWollman -- Garrett A. Wollman | O Siem / We are all family / O Siem / We're all th

New victim.. er.. committer

1999-12-17 Thread Garrett Wollman
< said: > although I actually live near Amherst, Massachusetts much of the > time. Anyone up for a Southern New England FreeBSD ftf gtg? I can host. If you think you might be interested, please reply privately. -GAWollman -- Garrett A. Wollman | O Siem / We are all family / O Siem / We're

Re: mbuf shortage situations (followup)

1999-09-13 Thread Garrett Wollman
< said: > This message is in MIME format. The first part should be readable text, > while the remaining parts are likely unreadable without MIME-aware tools. > Send mail to [EMAIL PROTECTED] for more info. It would be preferable if text were sent as text, since MIME-encoded patches requir

Re: mbuf shortage situations (followup)

1999-09-13 Thread Garrett Wollman
< said: > This message is in MIME format. The first part should be readable text, > while the remaining parts are likely unreadable without MIME-aware tools. > Send mail to m...@docserver.cac.washington.edu for more info. It would be preferable if text were sent as text, since MIME-encode

Re: Mandatory locking?

1999-08-22 Thread Garrett Wollman
< said: > Correct. I suppose it's worth discussing what the default should be. > Should they get EAGAIN or block? Obviously you'd want a way of > specifying which, but there would have to be a default for > non-lock-aware programs. I think I'd go for blocking; it's less error > prone. I'd be s

Re: Mandatory locking?

1999-08-22 Thread Garrett Wollman
< said: > Correct. I suppose it's worth discussing what the default should be. > Should they get EAGAIN or block? Obviously you'd want a way of > specifying which, but there would have to be a default for > non-lock-aware programs. I think I'd go for blocking; it's less error > prone. I'd be

Re: cvs commit: src/usr.sbin/ac ac.8 ac.c

1999-07-02 Thread Garrett Wollman
< said: > Remember, the question was, "Do we need to spend the effort making all > of our programs support the use of - to denote std{in,out}?" No, because most of them (for which such an option might be relevant) already do, or else don't need it (because they default to stdin). -GAWollman -

Re: cvs commit: src/usr.sbin/ac ac.8 ac.c

1999-07-02 Thread Garrett Wollman
< said: > Remember, the question was, "Do we need to spend the effort making all > of our programs support the use of - to denote std{in,out}?" No, because most of them (for which such an option might be relevant) already do, or else don't need it (because they default to stdin). -GAWollman --

timeconsuming processes on FreeBSD 3.1

1999-05-19 Thread Garrett Wollman
< said: > logonserver. Since than almost every day we find timeconsuming processes > running while the user isn't even logged in (anymore). These programs are > mostly tin and lynx and such interactive programs. We are sure that they Some broken interactive programs don't bother to check whether