Re: Critical Sections for userland.

2007-10-02 Thread Alfred Perlstein
* Daniel Eischen <[EMAIL PROTECTED]> [071002 20:16] wrote: > On Tue, 2 Oct 2007, Alfred Perlstein wrote: > > >* Daniel Eischen <[EMAIL PROTECTED]> [071002 20:02] wrote: > >>On Tue, 2 Oct 2007, Alfred Perlstein wrote: > >> > >>>* Daniel Eisc

Re: Critical Sections for userland.

2007-10-02 Thread Alfred Perlstein
* Daniel Eischen <[EMAIL PROTECTED]> [071002 20:02] wrote: > On Tue, 2 Oct 2007, Alfred Perlstein wrote: > > >* Daniel Eischen <[EMAIL PROTECTED]> [071002 19:46] wrote: > >>On Tue, 2 Oct 2007, Alfred Perlstein wrote: > >> > >>>Hi guys, we nee

Re: Critical Sections for userland.

2007-10-02 Thread Alfred Perlstein
* Kip Macy <[EMAIL PROTECTED]> [071002 20:00] wrote: > On 10/2/07, Alfred Perlstein <[EMAIL PROTECTED]> wrote: > > * Daniel Eischen <[EMAIL PROTECTED]> [071002 19:46] wrote: > > > On Tue, 2 Oct 2007, Alfred Perlstein wrote: > > > > > >

Re: Critical Sections for userland.

2007-10-02 Thread Alfred Perlstein
* Daniel Eischen <[EMAIL PROTECTED]> [071002 19:46] wrote: > On Tue, 2 Oct 2007, Alfred Perlstein wrote: > > >Hi guys, we need critical sections for userland here. > > > >This is basically to avoid a process being switched out while holding > >a user level s

Critical Sections for userland.

2007-10-02 Thread Alfred Perlstein
ement limits to this so that a haywire application is not able to be "critical" forever. Any help would be appreciated. -- - Alfred Perlstein ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/fre

Re: exporting subr_param values as sysctls

2007-07-12 Thread Alfred Perlstein
* Paul Saab <[EMAIL PROTECTED]> [070712 11:14] wrote: > Alfred Perlstein wrote: > >I would like to export the various parameters from subr_param.c > >into sysctl, these nodes would include the names from the following > >tunables as well as others in these files. > &g

exporting subr_param values as sysctls

2007-07-11 Thread Alfred Perlstein
H("kern.maxssiz", &maxssiz); sgrowsiz = SGROWSIZ; TUNABLE_ULONG_FETCH("kern.sgrowsiz", &sgrowsiz); any objections? I don't see any obvious way to get at these values on a running system. -- - Alfred Perlstein ___ f

serial help ?

2007-04-19 Thread Alfred Perlstein
x27;t there be some sort of DELAY in there? My platform has an emulated serial device in hardware, so it may be that the loop could run a LOT faster than transmit can happen... any ideas of what the DELAY should be? -- - Alfred Perlstein ___ freebsd-hacke

truss bug + PATCH, pls review

2005-03-02 Thread Alfred Perlstein
| POLLERR | POLLHUP | POLLNVAL | \ POLLRDNORM |POLLRDBAND | POLLWRBAND | POLLINIGNEOF) - u += snprintf(tmp + used, per_fd, + u = snprintf(tmp + used, per_fd, "%s%d 0x%hx%s%s%s%s%s%s%s%s%s ", i > 0 ? " " : "",

autofs available for FreeBSD 4, 5 and 6.

2004-09-08 Thread Alfred Perlstein
me know where we go from here! The only thing I have not implemented is trigger timeouts inside the autofs. I'll get to it eventually though. -- - Alfred Perlstein - Research Engineering Development Inc. - email: [EMAIL PROTECTED] cell: 408-480

(forw) Chuck Yerkes passed away. [SFBG] Fw: [ST] memorial (fwd)

2004-08-30 Thread Alfred Perlstein
ll to Please be > careful out there. > > Valerie > 2003 Triumph Sprint ST ___ Bikergoths-l mailing list [EMAIL PROTECTED] http://lists.sfgoth.com/mailman/listinfo/bikergoths-l - End forwarded message - -- - Alfred Perlstein

Re: sysctl hacks

2004-08-22 Thread Alfred Perlstein
* John-Mark Gurney <[EMAIL PROTECTED]> [040822 00:18] wrote: > Alfred Perlstein wrote this message on Sat, Aug 21, 2004 at 23:47 -0700: > > > > I have a sysctl node that takes a struct like so: > > > > struct mysysctldata { > > (data here) > >

Re: sysctl hacks

2004-08-21 Thread Alfred Perlstein
* Poul-Henning Kamp <[EMAIL PROTECTED]> [040821 13:29] wrote: > In message <[EMAIL PROTECTED]>, Alfred Perlstein writes: > >I'm doing some work that requires that I have a sysctl structure > >be passed around, but inside that structure are several point

sysctl hacks

2004-08-21 Thread Alfred Perlstein
ing IN the data from moredata? I need to make a copy of the sysctl req, but... I'm not sure what to initialize the 'lock' member to. Any hints would be appeciated. -- - Alfred Perlstein - Research Engineering Development Inc. - email: [EMAIL PROT

Re: RFC: "-exit" option for find(1)

2004-07-16 Thread Alfred Perlstein
nd would exit with a non-zero exit status? Ideas? Better ideas? The reason I want this is to avoid extracting a tarball over a directory that has files in it that are newer than the tarball. Neither tar nor find seem to make this easy... * Alfred Perlstein <[EMAIL PROTECTED]> [040716 0

RFC: "-exit" option for find(1)

2004-07-16 Thread Alfred Perlstein
c, F_EXECDIR }, + { "-exit", c_exit, f_exit, 0 }, { "-false", c_simple, f_not, 0 }, { "-flags", c_flags,f_flags, 0 }, { "-follow",c_follow, f_always_true, 0 },

Autofs: Need AMD users/experts.

2004-07-10 Thread Alfred Perlstein
. Lastly, please reply privately! thanks! -- - Alfred Perlstein - Research Engineering Development Inc. - email: [EMAIL PROTECTED] cell: 408-480-4684 ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "[EMAIL PROTECTED]"

api for sharing memory from kernel to userspace?

2004-05-19 Thread Alfred Perlstein
s address space. I was looking at pmap_qenter() but it didn't see attractive because it's for "short term mappings", this mapping will exist for quite a while. -- - Alfred Perlstein - Research Engineering Development Inc. - email: [

Re: bad news for bsdtar..

2004-04-24 Thread Alfred Perlstein
* Alexey Dokuchaev <[EMAIL PROTECTED]> [040424 03:14] wrote: > On Sat, Apr 24, 2004 at 01:59:13AM -0700, Alfred Perlstein wrote: > > > > Have you guys thought of using aio or at least another process > > to parallelize IO? (One to read files, and one t

Re: help with linking please

2004-01-13 Thread Alfred Perlstein
* Tim Kientzle <[EMAIL PROTECTED]> [040113 15:41] wrote: > Alfred Perlstein wrote: > >It will refuse to strip symbols if: > > > >foo.o:func1() references bar.o:func2(). > > > >But I need it to. > > I suppose there are good reasons why you > canno

Re: help with linking please

2004-01-10 Thread Alfred Perlstein
* Dag-Erling Sm?rgrav <[EMAIL PROTECTED]> [040110 03:17] wrote: > Alfred Perlstein <[EMAIL PROTECTED]> writes: > > I'm having a hell of a time doing this so I can produce a static > > .o or .a with most of the symbols stripped. Two problems seem to be > > th

help with linking please

2004-01-09 Thread Alfred Perlstein
rom obj2.o even after I combine the object files. Any hints? -- - Alfred Perlstein - Research Engineering Development Inc. - email: [EMAIL PROTECTED] cell: 408-480-4684 ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/fre

turn .so into .o?

2004-01-06 Thread Alfred Perlstein
Is there a way to turn a .so into a .o? I would like to link something statically, and I'm doing a bunch of work on the symbol table and would like to avoid a mess with using ar(1). -- - Alfred Perlstein - Research Engineering Development Inc. - email: [EMAIL PROTECTED] cell: 408-480

Re: [PATCH] sendfile erroniously returns ENOTCONN.

2004-01-03 Thread Alfred Perlstein
s blocking sigpipe can be hairy inside > > libraries. Now that we can selectively disable SIGPIPE using > > the setsockopt using Apple's code this is less of an issue. > >Yes, I think checking for SS_CATSENDMORE (and returning EPIPE) prior to > checking SS_ISCON

Re: [PATCH] sendfile erroniously returns ENOTCONN.

2004-01-02 Thread Alfred Perlstein
end(9). I could add the check, is there a reason not to? The one reason I figured was that sometimes blocking sigpipe can be hairy inside libraries. Now that we can selectively disable SIGPIPE using the setsockopt using Apple's code this is less of an issue. -- - Alfred Perlstein -

[PATCH] sendfile erroniously returns ENOTCONN.

2004-01-02 Thread Alfred Perlstein
error = ENOTCONN; - goto done; - } if (uap->offset < 0) { error = EINVAL; goto done; -- - Alfred Perlstein - Research Engineering Development Inc. - email: [EMAIL PROTECTED] cell:

Re: support for __thread

2003-12-21 Thread Alfred Perlstein
* Daniel Eischen <[EMAIL PROTECTED]> [031221 14:31] wrote: > On Sun, 21 Dec 2003, Alfred Perlstein wrote: > > > * Daniel Eischen <[EMAIL PROTECTED]> [031221 12:08] wrote: > > > On Sun, 21 Dec 2003, Alfred Perlstein wrote: > > > > > > > * Alf

Re: support for __thread

2003-12-21 Thread Alfred Perlstein
* Daniel Eischen <[EMAIL PROTECTED]> [031221 12:08] wrote: > On Sun, 21 Dec 2003, Alfred Perlstein wrote: > > > * Alfred Perlstein <[EMAIL PROTECTED]> [031221 02:47] wrote: > > > How do I get __thread to work for me? > > > > > > http://gcc.gnu.o

Re: support for __thread

2003-12-21 Thread Alfred Perlstein
* Alfred Perlstein <[EMAIL PROTECTED]> [031221 02:47] wrote: > How do I get __thread to work for me? > > http://gcc.gnu.org/onlinedocs/gcc/Thread-Local.html > > it seems the assembler chokes on it? Taking this code: #include __thread int x; int main(int argc, char **a

support for __thread

2003-12-21 Thread Alfred Perlstein
How do I get __thread to work for me? http://gcc.gnu.org/onlinedocs/gcc/Thread-Local.html it seems the assembler chokes on it? -- - Alfred Perlstein - Research Engineering Development Inc. - email: [EMAIL PROTECTED] cell: 408-480-4684 ___ [EMAIL

Re: HOWTO: install without floppy, cdrom, or pxe.

2003-12-01 Thread Alfred Perlstein
* Colin Percival <[EMAIL PROTECTED]> [031201 00:27] wrote: > At 00:18 01/12/2003 -0800, Alfred Perlstein wrote: > >Then type these commands into the loader: > >unload kernel > >load /ikernel > >load -t mfs_root /mfsroot > >set vfs.root.mountfrom > >bo

HOWTO: install without floppy, cdrom, or pxe.

2003-12-01 Thread Alfred Perlstein
ool if this could be automated[1], perhaps by setting the boot partition to the swap partition and setting it up temporarily as a ufs filesystem and then... oh... well... [1] http://www.jerkcity.com/jerkcity1426.html -- - Alfred Perlstein - Research Engineering Development Inc. - email: [EMAIL PROTECTED

[patch] psm hacks for kvm problems.

2003-10-15 Thread Alfred Perlstein
log(LOG_DEBUG, "psm%d: failed to get status (psmintr).\n", + sc->unit); + sc->inputbytes = 0; + continue; + } + sc->lastvalid = tv; /* * A kludge for Kensington device! -- - Alfred Perlstein - Re

rfc, optimizing select/poll.

2003-02-15 Thread Alfred Perlstein
blem. So, what I'm asking is... Can anyone state ahead of time why they would object to this? (please reply publically) Who will test it? (privately plz) Thanks! -- -Alfred Perlstein [[EMAIL PROTECTED]] 'Instead of asking why a piece of software is using "1970s technology,&

kevent kernel expert.

2003-02-13 Thread Alfred Perlstein
. thank you, -- -Alfred Perlstein [[EMAIL PROTECTED]] 'Instead of asking why a piece of software is using "1970s technology," start asking why software is ignoring 30 years of accumulated wisdom.' To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-ha

Re: rfork DoS

2003-01-09 Thread Alfred Perlstein
that it would be safest to require userland to set either RFPROC or RFTHREAD. Yes, the manpage is out of date. What the hell is a sigact anyhow? Can someone please fixup the manpage? :) -- -Alfred Perlstein [[EMAIL PROTECTED]] 'Instead of asking why a piece of software is using "1970s technol

rfork DoS

2003-01-09 Thread Alfred Perlstein
the refcount on the fdesc is still > 0 we leave it alone and leak lock structures. p1 exits Does this make sense as a problem area? I think we should only allow filedesc sharing if RFTHREAD is set. RFTHREAD seems to get it right because of the peers/leader mechanism. thanks, -- -Alf

uma issues with ctor/dtor/uminit/fini

2002-11-17 Thread Alfred Perlstein
able adding an error case to uma_zalloc, but who knows... -- -Alfred Perlstein [[EMAIL PROTECTED]] 'Instead of asking why a piece of software is using "1970s technology," start asking why software is ignoring 30 years of accumulated wisdom.' To Unsubscribe: send mail to [EM

Re: cvs commit: src/bin/sleep sleep.c

2002-11-15 Thread Alfred Perlstein
* Matthew Dillon <[EMAIL PROTECTED]> [021115 12:17] wrote: > :Will the knobs allow one to link /bin and /sbin against full blown > :libc? That would be nice as we can then start using pam and user > :management in / with dynamic modules (finally!). > : > :-- > :-

Re: cvs commit: src/bin/sleep sleep.c

2002-11-15 Thread Alfred Perlstein
ce as we can then start using pam and user management in / with dynamic modules (finally!). -- -Alfred Perlstein [[EMAIL PROTECTED]] 'Instead of asking why a piece of software is using "1970s technology," start asking why software is ignoring 30 years of accumulated wisdom.' T

Re: cvs commit: src/bin/sleep sleep.c

2002-11-14 Thread Alfred Perlstein
* Nate Lawson <[EMAIL PROTECTED]> [021114 15:42] wrote: > Please see earlier threads on hackers@ about bloat in libc and dynamic > linking of /[s]bin. Tim Kientzle submitted a patch that breaks exit's > dependency on malloc which saves space in the programs that don't > otherwise use malloc. > >

Re: libfetch bug.

2002-09-20 Thread Alfred Perlstein
* Kris Kennaway <[EMAIL PROTECTED]> [020920 14:46] wrote: > On Mon, Sep 16, 2002 at 09:37:21PM -0700, Alfred Perlstein wrote: > > libfetch seems to have a bug such that if a disconnect happens at > > a particular point it spins in a tight loop. > > > > I trac

Re: sem_init help?

2002-09-18 Thread Alfred Perlstein
royed. If you don't > want to track its page, can you hook it into ipcrm(1)? I don't really have a problem with it unless it's not necessary, I'll see if I can get access to solaris to figure out wth they do. :) -- -Alfred Perlstein [[EMAIL PROTECTED]] 'Instead of aski

Re: sem_init help?

2002-09-18 Thread Alfred Perlstein
* Daniel Eischen <[EMAIL PROTECTED]> [020918 18:40] wrote: > On Wed, 18 Sep 2002, Alfred Perlstein wrote: > > > > > Ok, any of you guys have a copy of the standards documents that > > describe the sem_* API? > > > > I have a question... > >

sem_init help?

2002-09-18 Thread Alfred Perlstein
did the sem_init? Or am I going to have to do some nastyness to record the memory location where the semaphore is and track that page's allocation? little help here... :) -- -Alfred Perlstein [[EMAIL PROTECTED]] 'Instead of asking why a piece of software is using "1970s technology,

Re: sysv_ipc regression suite

2002-08-12 Thread Alfred Perlstein
* Andrew R. Reiter <[EMAIL PROTECTED]> [020805 09:15] wrote: > On Mon, 5 Aug 2002, Alfred Perlstein wrote: > > :Can anyone point out or provide me with a suite to regression test > :sysv_ipc, specifically semaphores, message queues and shared memory? > : > :I'm

NY for two weeks

2002-07-24 Thread Alfred Perlstein
I'll be in NY for the next two weeks, I expect connectivity to be spotty, if anyone wants to get together let me know! -- -Alfred Perlstein [[EMAIL PROTECTED]] [#bsdcode/efnet/irc.prison.net] 'Instead of asking why a piece of software is using "1970s technology," start as

Re: SysV IPC message queues performance

2002-07-24 Thread Alfred Perlstein
s put in tight loops to keep a process from hogging the cpu > (release remainder of the timeslice). Does this mentality apply to freebsd, > and is there such a call? see the sched_yield(2) syscall. -- -Alfred Perlstein [[EMAIL PROTECTED]] [#bsdcode/efnet/irc.prison.net] 'Instead of

Re: Counting the clock cycles

2002-07-17 Thread Alfred Perlstein
nction pr_header(), it uses SYSCTL to grab system uptime. -- -Alfred Perlstein [[EMAIL PROTECTED]] 'Instead of asking why a piece of software is using "1970s technology," start asking why software is ignoring 30 years of accumulated wisdom.' Tax deductible donations for Fre

Re: rcorder cleanup from NetBSD

2002-07-16 Thread Alfred Perlstein
* David O'Brien <[EMAIL PROTECTED]> [020716 02:17] wrote: > On Sun, Jul 14, 2002 at 02:39:36AM -0700, Alfred Perlstein wrote: > > NetBSD has cleaned up sbin/rcorder quite a bit, and chance someone > > feels up to integrating thier changes? > > When did they do

rcorder cleanup from NetBSD

2002-07-14 Thread Alfred Perlstein
NetBSD has cleaned up sbin/rcorder quite a bit, and chance someone feels up to integrating thier changes? If I were to do it, would I need to 'cvs import' or simply commit the changes? -- -Alfred Perlstein [[EMAIL PROTECTED]] 'Instead of asking why a piece of software

Re: reboot frm ddb

2002-06-27 Thread Alfred Perlstein
* Danny Braniss <[EMAIL PROTECTED]> [020627 09:21] wrote: > hi, > how can i reboot - from the serial console - once im in the kernel > debugger? type 'panic' or 'sync' or 'boot' one of those should work. -- -Alfred Perlstein [[EMAIL PROTECTED

Re: tunings for many httpds...

2002-06-26 Thread Alfred Perlstein
ssue I am seeing (since > either way, all those greatly increased SHM/SEM settings I added are not > using KVA) ?? Without kern.ipc.shm_use_phys=1 you will use more KVA, however do realize that with it the shared memory is non-pageable, meaning it can not be swapped out if something else n

Re: tunings for many httpds...

2002-06-25 Thread Alfred Perlstein
* Terry Lambert <[EMAIL PROTECTED]> [020625 13:08] wrote: > > > > > At what point does it eat KVA that is other than for the backing > > > > data structures? > > > > > > It eats address space, not RAM. And even if the mappings are not > > > active (which they usually are, because of LRU and proc

Re: tunings for many httpds...

2002-06-25 Thread Alfred Perlstein
* Terry Lambert <[EMAIL PROTECTED]> [020624 19:58] wrote: > Alfred Perlstein wrote: > > * Terry Lambert <[EMAIL PROTECTED]> [020624 19:17] wrote: > > > > > > System V shared memory is allocated out of KVA space (annoying, > > > but true). >

Re: tunings for many httpds...

2002-06-24 Thread Alfred Perlstein
* Terry Lambert <[EMAIL PROTECTED]> [020624 19:17] wrote: > > System V shared memory is allocated out of KVA space (annoying, > but true). You keep saying this but the backing object allocated for sysvshm is taken from either an OBJT_PHYS or OBJT_SWAP object. At what point does it eat KVA that

Re: Bug in wakeup() (stable and current) ?

2002-06-23 Thread Alfred Perlstein
is just plain wrong, though, because > the queue mechanisms make no such (documented) guarentee. You're right, but other than await() why would a process find itself on a sleep queue if not in SSLEEP? -- -Alfred Perlstein [[EMAIL PROTECTED]] 'Instead of asking why a piece o

Re: Bug in wakeup() (stable and current) ?

2002-06-23 Thread Alfred Perlstein
* Matthew Dillon <[EMAIL PROTECTED]> [020623 13:14] wrote: > This doesn't look right at all. It looks like wakeup is not restarting > properly: > > s = splhigh(); > qp = &slpque[LOOKUP(ident)]; > restart: > TAILQ_FOREACH(p, qp, p_procq) { > if (p->

Re: FreeBSD NFS server benchmarks vs. OpenBSD, NetBSD?

2002-06-23 Thread Alfred Perlstein
* Mathieu Arnold <[EMAIL PROTECTED]> [020623 00:36] wrote: > > > --On Saturday, June 22, 2002 22:23:59 -0700 Alfred Perlstein > <[EMAIL PROTECTED]> wrote: > > > > >Actually FreeBSD 5.x should have lockd support. I should know, I > >ported it fr

Re: FreeBSD NFS server benchmarks vs. OpenBSD, NetBSD?

2002-06-22 Thread Alfred Perlstein
to do > > everything I want to with FreeBSD. It's NFS is missing locking support > > but it's very fast and works very well with FreeBSD and Mac OS X > > clients. I haven't used it with anything else. Actually FreeBSD 5.x should have lockd support. I shou

Re: (jail) problem and a (possible) solution ?

2002-06-22 Thread Alfred Perlstein
* Patrick Thomas <[EMAIL PROTECTED]> [020622 01:56] wrote: > > What it does is the userland hangs, but the kernel keeps running. > ... > I'm mostly just curious if this kind of crash (userland hung but kernel > running) is a possible outcome of someone in a jail fiddling with those > /dev nodes,

Re: The problem with FreeBSD

2002-06-18 Thread Alfred Perlstein
. > duck that identity...make full use of the internet to hide the source of > your venting. > > bill...alfred..was some kid denied a port or something to warrent this silly > temper tantrum? :) All I really have to say about the matter is that nothing says "lack of gen

Re: sorting in C

2002-06-13 Thread Alfred Perlstein
* echo dev <[EMAIL PROTECTED]> [020614 00:06] wrote: > I am pooling in as many different ways of sorting data in C i can anyone > have a fav??? If anyone can give me some ideas on the best way to sort data > in C would be helpful.. Thanks man qsort -- -Alfred Perlstein [[

Re: Questions about kernel/userspace backwards compatibilty between minor revisions

2002-06-09 Thread Alfred Perlstein
checking will be required. Can anyone confirm or > deny this? 4.x should be pretty compatible with respect to 4.2 to 4.3 to 4.4 and so on, if you come across any jitter then you can probably use __FreeBSD_version from sys/param.h. -- -Alfred Perlstein [[EMAIL PROTECTED]] 'Instead of as

Re: signals and applications

2002-06-09 Thread Alfred Perlstein
t can't be interupted and just wait >there? *sigh* Would you be willing to field a problem report this vague? Which web browser? How are you inputting a ^C? etc.etc... Applications have the option to ignore ^C, they can also futz with the terminal settings to that ^C doesn't wor

Re: GFP_NOFS alternative/information for FreeBSD Kernel Malloc

2002-06-01 Thread Alfred Perlstein
ow, and then worry > about it later. Which is what you should do. What was the point of asking me if you weren't going to take my advice? *sigh* -- -Alfred Perlstein [[EMAIL PROTECTED]] 'Instead of asking why a piece of software is using "1970s technology," start asking why sof

Re: C ????

2002-05-30 Thread Alfred Perlstein
need it to > asked the questions and then put it self into the background. If someone > could give me some liks to some docs I woould be vary grateful.. Have your program ask questions, then fork a child process, then have the parent exit, it will effectively detach. -- -Alfred Perlstein [

Re: __STDC__ removal?

2002-05-29 Thread Alfred Perlstein
* Peter Wemm <[EMAIL PROTECTED]> [020529 00:42] wrote: > Alfred Perlstein wrote: > > NetBSD is nuking almost all __STDC__ usages because it's always > > defined. Do we want to do the same? The exception I've seen > > is for assembler files where old sty

Re: __STDC__ removal?

2002-05-27 Thread Alfred Perlstein
* M. Warner Losh <[EMAIL PROTECTED]> [020527 11:22] wrote: > In message: <[EMAIL PROTECTED]> > Alfred Perlstein <[EMAIL PROTECTED]> writes: > : NetBSD is nuking almost all __STDC__ usages because it's always > : defined. Do we want to do the same?

__STDC__ removal?

2002-05-26 Thread Alfred Perlstein
_STDC__) telnet/ring.h:#if defined(__STDC__) || defined(LINT_ARGS) yacc/skeleton.c:"#if defined(__cplusplus) || __STDC__", yacc/skeleton.c:"#if defined(__cplusplus) || __STDC__", yacc/skeleton.c:"#if defined(__cplusplus) || __STDC__", -- -Alfred Per

Re: kernel daemon clean up

2002-05-20 Thread Alfred Perlstein
* Mike Silbersack <[EMAIL PROTECTED]> [020520 15:15] wrote: > > On Mon, 20 May 2002, Alfred Perlstein wrote: > > > level not edge. I think you can also use the CURSIG macro to check > > for pending signals if you don't want to yeild. > > > > -- >

Re: kernel daemon clean up

2002-05-20 Thread Alfred Perlstein
think you can also use the CURSIG macro to check for pending signals if you don't want to yeild. -- -Alfred Perlstein [[EMAIL PROTECTED]] 'Instead of asking why a piece of software is using "1970s technology," start asking why software is ignoring 30 years of accumulated wisdom.&

sysctl patch

2002-05-20 Thread Alfred Perlstein
err(1, "T_dev_T %d != %d", l2, sizeof(*d)); + if (l2 != sizeof(*d)) { + warnx("T_dev_T %d != %d", l2, sizeof(*d)); + return (0); + } if ((int)(*d) != -1) { if (minor(*d) > 255 || minor(*d) < 0)

Re: FreeBSD Development Status Report, February 2002 - April 2002

2002-05-18 Thread Alfred Perlstein
* Robert Watson <[EMAIL PROTECTED]> [020518 10:05] wrote: > > Attached, please find the status report covering activity from February > 2002 - April 2002. This may also be found on the FreeBSD.org web page > (once the site rebuilds sometime today) at: [snip] Excellent report, it really shows t

Re: tuning a CPU bound server

2002-05-16 Thread Alfred Perlstein
nc waitqueue } lock filedesc fdrop all files gotten before and remove from async wait queue it really seems like overkill for the case where you're doing the right thing, ie, one big process select'ing/poll'ing on lots of descriptors. -- -Alfred Perlstein [[EMAIL PROTECTED]] 'Inst

Re: tuning a CPU bound server

2002-05-16 Thread Alfred Perlstein
d average > spikes - this can be a bit alarming but doesn't actually affect things very > much. Is there a paper on avoiding this? I know how Linux does it, but they seem to need to hammer on the scheduler lock quite a bit as a workaround. -- -Alfred Perlstein [[EMAIL PROTECTED]] 

Re: Collect process sleeping statistics

2002-05-15 Thread Alfred Perlstein
* Zhihui Zhang <[EMAIL PROTECTED]> [020515 10:33] wrote: > > Basically I have a program that does a lot of I/O and alloctes/frees a lot > of memory. The time command gives result like this: > > 6.239u 19.329s 7:59.76 5.3% 310+775k 3993+246io 7pf+0w > > I want to know why CPU is running only 5

Re: File locking, closes and performance in a distributed filesystemenv

2002-05-15 Thread Alfred Perlstein
* Andrew R. Reiter <[EMAIL PROTECTED]> [020515 09:54] wrote: > On Wed, 15 May 2002, Alfred Perlstein wrote: > > :* Terry Lambert <[EMAIL PROTECTED]> [020515 01:36] wrote: > :> Alfred Perlstein wrote: > :> > As Terry stated you can't do that, however yo

Re: File locking, closes and performance in a distributed filesystemenv

2002-05-15 Thread Alfred Perlstein
* Terry Lambert <[EMAIL PROTECTED]> [020515 01:36] wrote: > Alfred Perlstein wrote: > > As Terry stated you can't do that, however you could cache that the > > VNODE has a lock, that would reduce the requirement for calling the > > ADVLOCK VOP. > You'd rea

Re: File locking, closes and performance in a distributed filesystemenv

2002-05-14 Thread Alfred Perlstein
t; > to > > > > fp->l_flag |= P_ADVLOCK; As Terry stated you can't do that, however you could cache that the VNODE has a lock, that would reduce the requirement for calling the ADVLOCK VOP. -- -Alfred Perlstein [[EMAIL PROTECTED]] 'Instead of asking why a pie

Re: Broadcom BCM5701 Chipset problems

2002-05-13 Thread Alfred Perlstein
* David Greenman-Lawrence <[EMAIL PROTECTED]> [020513 15:40] wrote: > >* David Greenman-Lawrence <[EMAIL PROTECTED]> [020513 13:10] wrote: > >> > >>The card doesn't drop the packet if the IP/TCP checksum is wrong. In my > >> tests, I did a software checksum on the supposedly bad packet, and f

Re: Broadcom BCM5701 Chipset problems

2002-05-13 Thread Alfred Perlstein
* David Greenman-Lawrence <[EMAIL PROTECTED]> [020513 13:10] wrote: > >The card doesn't drop the packet if the IP/TCP checksum is wrong. In my > tests, I did a software checksum on the supposedly bad packet, and found it > to be good every time. So it DMA's correctly, the checksum is just cal

Re: Memory and Reality

2002-05-11 Thread Alfred Perlstein
* Ed Hall <[EMAIL PROTECTED]> [020511 13:13] wrote: > At Yahoo! we use a lot of shared memory, both in the form of .so's and > for IPC. It would be very useful to be able to accurately measure the > amount of shared and private memory associated with a process, the > number of references to a giv

Re: per-user or -proc CPU reservation and limits

2002-05-09 Thread Alfred Perlstein
27;ll > just bug you off-list. *grin*) http://people.freebsd.org/~alfred/deltas/bind_cpu.diff.gz I'm not sure if it works and/or applies any longer. I asked for John and Jake to review it but they never gave me any sort of answer about it. Maybe I'll clean it up soon, maybe I won&#

Re: netatalk - sharing UNIX to Mac clients

2002-05-06 Thread Alfred Perlstein
* andrew mejia <[EMAIL PROTECTED]> [020506 17:54] wrote: > > [andrew]$ BTW, your attitude ever so *SLIGHTLY* > reminds > me of the largely pretentious and cryptic LINUX > community. let's not all get too big for our > britches, > eh? Your attitude is pretty rotten as well, quit whining, learn t

Re: RFC on my SHM tunings for multiple jailed postgres...

2002-05-03 Thread Alfred Perlstein
* Patrick Thomas <[EMAIL PROTECTED]> [020503 07:19] wrote: > > So kern.ipc.shm_use_phys=1 will give me more flexibility, but will slow > down performance (vs. using kernel memory) ? It will not cause any problems unless you don't have enough memory. -- -Alfred Perlste

Re: RFC on my SHM tunings for multiple jailed postgres...

2002-05-03 Thread Alfred Perlstein
ter problems as it will greatly reduce the amount of kernel memory required to track shared memory segments at the expense of making them non-pageable. -- -Alfred Perlstein [[EMAIL PROTECTED]] 'Instead of asking why a piece of software is using "1970s technology," start asking why

Re: netatalk - sharing UNIX to Mac clients

2002-05-03 Thread Alfred Perlstein
* andrew mejia <[EMAIL PROTECTED]> [020503 00:37] wrote: > anyone ever configure/install/use netatalk on their > BSD/Solaris machines? > > i'm trying to share out two 200gb plus raid arrays to > a Mac LAN and will accept any information that can be > offered. 1) This doesn't belong on -hackers.

Re: Kernel spin lock facilities

2002-05-01 Thread Alfred Perlstein
* Nelson, Trent . <[EMAIL PROTECTED]> [020501 06:41] wrote: > Hi, > > I'm working on porting the Linux Cisco VPN client kernel module to > FreeBSD. The API interface between the OS and their actual driver has four > spinlock functions that operate around a handle (void *) to a ``critical >

Re: msleep and spin locks

2002-04-24 Thread Alfred Perlstein
* Rob Anderson <[EMAIL PROTECTED]> [020424 10:03] wrote: > I'm trying to debug a deadlock problem I'm seeing in a kernel module, and > I wonder if someone could answer some questions I had about spinlocks. You shouldn't be using spinlocks. -Alfred To Unsubscribe: send mail to [EMAIL PROTECTED]

Re: need help: ld final link failed. Memory exhausted

2002-04-23 Thread Alfred Perlstein
; Anyway, is there a reason that the maxstack is 64MB only ? Because 64MB of stack should be enough for anybody? -- -Alfred Perlstein [[EMAIL PROTECTED]] 'Instead of asking why a piece of software is using "1970s technology," start asking why software is ignoring 30 years of accumu

Re: Erm, since everyone managed to HIJACK my sshd thread! ;)

2002-04-23 Thread Alfred Perlstein
> > # To change Kerberos options > #KerberosAuthentication no > > To Unsubscribe: send mail to [EMAIL PROTECTED] > with "unsubscribe freebsd-hackers" in the body of the message -- -Alfred Perlstein [[EMAIL PROTECTED]] 'Instead of asking why a piece of softwar

procfs issue.

2002-04-13 Thread Alfred Perlstein
error = EINVAL; + goto fail; + } + } + } + /* OK */ break; thanks, -- -Alfred Perlstein [[EMAIL PROTECTED]] 'Instead of asking why a piece of software is using &

Re: Is a debug kernel slower than a non-debug one ?

2002-04-05 Thread Alfred Perlstein
* Alessandro de Manzano <[EMAIL PROTECTED]> [020405 12:08] wrote: > On Fri, Apr 05, 2002 at 12:00:05PM -0800, Alfred Perlstein wrote: > > Wow, thanks for the super-fast answer! :)) > > > > > on my production servers' kernel so in the very rare case of crash

Re: Is a debug kernel slower than a non-debug one ?

2002-04-05 Thread Alfred Perlstein
* Alessandro de Manzano <[EMAIL PROTECTED]> [020405 11:57] wrote: > Hello! > > Well, the subj says more or less all.. ;-) > > On 4.x-STABLE systems, a kernel compiled with "options DDB" and > "makeoptions DEBUG=-g" is, at execution, slower than one compiled > without that two settings ? > Or is

Re: Junior Kernel Task: syscons screensavers

2002-04-05 Thread Alfred Perlstein
* Coleman Kane <[EMAIL PROTECTED]> [020405 11:06] wrote: > Or maybe make it only come out of screensaver if there is a console > message (i.e.: kernel messages, etc...), but stay there during tty > activity. That would be nice also, but I'm more interested in having the screen saver work like a r

Junior Kernel Task: syscons screensavers

2002-04-04 Thread Alfred Perlstein
inutes. thanks, -- -Alfred Perlstein [[EMAIL PROTECTED]] 'Instead of asking why a piece of software is using "1970s technology," start asking why software is ignoring 30 years of accumulated wisdom.' Tax deductible donations for FreeBSD: http://www.freebsdfoundation.org/

Re: I want to help

2002-04-03 Thread Alfred Perlstein
them personally. sometimes just seeing a message like that and 100% of the viewers are like, "well someone will commit that" and no one does. :) -- -Alfred Perlstein [[EMAIL PROTECTED]] 'Instead of asking why a piece of software is using "1970s technology," start asking wh

Re: I want to help

2002-04-03 Thread Alfred Perlstein
cgi/query-pr-summary.cgi I would also make sure to follow this list (freebsd-hackers) and possibly freebsd-current. best of luck and thanks for taking an interest! -- -Alfred Perlstein [[EMAIL PROTECTED]] 'Instead of asking why a piece of software is using "1970s technology,&quo

Re: procfs development

2002-04-02 Thread Alfred Perlstein
d/operands structs as input, and/or the status file offer > elaborate structures as output, or an lwp directory, etc? Not really, if someone where to present a patchset and documentation then it would likely be integrated. -- -Alfred Perlstein [[EMAIL PROTECTED]] 'Instead of asking why

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