Re: Needed: suid library calls (was Re: cvs commit: src/crypto/openssh sshd_config)

2000-05-25 Thread Ville-Pertti Keinonen
[EMAIL PROTECTED] (Nick Sayer) writes: > What we _really_ need is some mechanism to recognize the difference > between a user program and a system library, with an eye towards > granting privileges to trusted libraries without letting those privileges > leak past the library in question. > > I d

Re: Why this works?

2000-05-11 Thread Ville-Pertti Keinonen
[EMAIL PROTECTED] (FengYue) writes: > I've 3 small programs. First one writes 4K of data contains 'A's into a > file /tmp/pagetest and then lseek() to the begin of the file. > Second one writes 4K of 'Z' into the same file /tmp/pagetest and > then lseek() to the begin of the file. They both do

Re: ipsec 'replay' syslog error messages after reboot of one host

2000-05-11 Thread Ville-Pertti Keinonen
> IPSec isn't well documented, but once I figured out the config > file it didn't seem too bad. I am guessing that replay prevention Reading the RFCs might be more helpful than most of the KAME documentation. There's also a lot of undocumented stuff for which the sources seem to be the

Re: ipsec 'replay' syslog error messages after reboot of one host

2000-05-11 Thread Ville-Pertti Keinonen
[EMAIL PROTECTED] (Matthew Dillon) writes: > The question is: What am I forgetting to do? Or is this a bug in our > IPSEC implementation? AFAIK this is more or less how it's supposed to work. IPsec is a mess. Security associations are not stateless, ESP provides replay protection us

Re: [OT] Finding people with GSM phones (was Re: GPS heads up )

2000-05-07 Thread Ville-Pertti Keinonen
[EMAIL PROTECTED] (Olaf Hoyer) writes: > Well, thats reality. > Sometimes the mobile telco hotlines are so overloaded, you cannot even tell > them that your phone was stolen. (Talk about service-but you get what you > pay for) > In germany, there is some list, where every cell phone can be enter

Re: What are the best gcc optimization options for Pentium 200 MMX

2000-04-09 Thread Ville-Pertti Keinonen
[EMAIL PROTECTED] (Kris Kennaway) writes: > Can you say "gimmick"? :-) gcc often produces demonstrably broken code for > optimisation levels higher than -O. That -O is safe seems to be a persistent myth. GCC also produces broken code for -O and no optimization in some cases, sometimes while pr

Re: Shared /bin and /sbin

2000-03-30 Thread Ville-Pertti Keinonen
[EMAIL PROTECTED] (Warner Losh) writes: > I have a system that has one file system on it (eg everything is on > /). I'm finding that a lot of space is wasted on the multiple static > copies of libc in /sbin and /bin. I was thinking about building, for > this system only, /bin and /sbin dynamic

Re: Accessing user data from kernel

2000-01-20 Thread Ville-Pertti Keinonen
[EMAIL PROTECTED] (Arun Sharma) writes: > 2. For cases where you've entered the kernel synchronously - through syscalls >for example, you need to check for the validity of data. You could >potentially skip the step and validate the data where it is used, rather >than doing it upfron

Re: UVM vs FreeBSD VM system

2000-01-19 Thread Ville-Pertti Keinonen
[EMAIL PROTECTED] (Jonas Bulow) writes: > How does the UVM system compare to the VM system in FreeBSD? Are there > any benchmark tests or research results in this area? The dissertation paper on UVM describes the differences (and is reasonably objective). It can be found on the UVM pages (htt

Re: libelf and Elf Interface Routines

2000-01-16 Thread Ville-Pertti Keinonen
[EMAIL PROTECTED] (Ronald F. Guilmette) writes: > The original libelf code was/is owned by, and developed by AT&T's Unix > Systems Group (USG) which AT&T sold to (I think) Novell and which Novell > then sold to SCO. > Bottom line is that the _real_ libelf is proprietary code. There is a free (

Re: vmnet (was: Linux ioctl not implemented error)

1999-12-07 Thread Ville-Pertti Keinonen
[EMAIL PROTECTED] (Vladimir N. Silyaev) writes: > are need to have steal nerves. I fill that, at the time when I was porting > vmware. I have too much hours of very interested work - load driver, launch > vmware and then looking into the DDB double fault screen. Reload box, > and then again. I

Re: journaling UFS and LFS

1999-10-31 Thread Ville-Pertti Keinonen
[EMAIL PROTECTED] (Don) writes: > > and the next question: now that LFS starts to get usable in NetBSD > > - has anybody started to look at getting it working again in > > FreeBSD too (maybe matt ?) or has it on the TODO list > LFS is being considered as a starting point for this project. The g

Re: X11/C++ question

1999-10-27 Thread Ville-Pertti Keinonen
[EMAIL PROTECTED] (Chuck Robey) writes: > Boy, I sure wish Java compiled and ran natively. I'd stop using C++ > forever. gcc-2.95.1 + libgcj already works, at least for simple programs. On FreeBSD 3.x programs seem to work as long as you use statically linked libraries (shared libraries cause

Re: --enable-haifa

1999-10-14 Thread Ville-Pertti Keinonen
[EMAIL PROTECTED] (W Gerald Hicks) writes: > I don't have a shiny new K7 yet, where I might expect the haifa > build to make more of a difference than my crusty old Pentium... Processors with out-of-order execution benefit *less* from scheduling than non-OOO superscalar processors. To Unsubsc

Re: Multiple routes to the same destination

1999-09-20 Thread Ville-Pertti Keinonen
[EMAIL PROTECTED] (Zhihui Zhang) writes: > As said by the 4.4 BSD book (page 423), 4.4 BSD does not support multiple > routes to the same destination (identical key and mask). Does the radix > tree code in FreeBSD - 4.0 has the same limitation? I am wondering if > there is already a solution fo

Re: aio_*

1999-09-14 Thread Ville-Pertti Keinonen
[EMAIL PROTECTED] (Jayson Nordwick) writes: > While reading through (at least trying to... I wish there was some sort of > kernel documentation available, the entry fee is very high) the aio_* calls, > I had a few questions to clear up my understanding: > 1) Do they only work on files? The on

Re: aio_*

1999-09-14 Thread Ville-Pertti Keinonen
nordw...@scam.xcf.berkeley.edu (Jayson Nordwick) writes: > While reading through (at least trying to... I wish there was some sort of > kernel documentation available, the entry fee is very high) the aio_* calls, > I had a few questions to clear up my understanding: > 1) Do they only work on fi

Re: Proposal: Add generic username for 3rd-party MTA's

1999-09-02 Thread Ville-Pertti Keinonen
sheld...@uunet.co.za (Sheldon Hearn) writes: > Actually, not. The postfix and exim ports, at least, would be taught to > use the new UID when it became available in STABLE. I'm pretty sure > smail and others would follow suit. Remember, _we_ control the ports and > can have packages install for w

Re: Proposal: Add generic username for 3rd-party MTA's

1999-09-02 Thread Ville-Pertti Keinonen
[EMAIL PROTECTED] (Sheldon Hearn) writes: > Actually, not. The postfix and exim ports, at least, would be taught to > use the new UID when it became available in STABLE. I'm pretty sure > smail and others would follow suit. Remember, _we_ control the ports and > can have packages install for wha

Re: Sharing file descriptors

1999-08-31 Thread Ville-Pertti Keinonen
bri...@wintelcom.net (Alfred Perlstein) writes: > 1) file descriptor passing (described in Unix Network Programming Vol I) Or just read recv(2), search for SCM_RIGHTS. > 2) shared address fork (should be on http://lt.tar.com) Or just read rfork(2), and you don't need to share the address space

Re: Sharing file descriptors

1999-08-30 Thread Ville-Pertti Keinonen
[EMAIL PROTECTED] (Alfred Perlstein) writes: > 1) file descriptor passing (described in Unix Network Programming Vol I) Or just read recv(2), search for SCM_RIGHTS. > 2) shared address fork (should be on http://lt.tar.com) Or just read rfork(2), and you don't need to share the address space.

Re: locking revisited

1999-08-30 Thread Ville-Pertti Keinonen
g...@lemis.com (Greg Lehey) writes: > All systems which do more than one thing at a time need file locking > at some time or another. Since it involves cooperation between > potentially unrelated processes, it's an obvious kernel function. Any > "solution" requiring cooperation between processe

Re: locking revisited

1999-08-30 Thread Ville-Pertti Keinonen
[EMAIL PROTECTED] (Greg Lehey) writes: > All systems which do more than one thing at a time need file locking > at some time or another. Since it involves cooperation between > potentially unrelated processes, it's an obvious kernel function. Any > "solution" requiring cooperation between proc

Re: Mandatory locking?

1999-08-27 Thread Ville-Pertti Keinonen
tlamb...@primenet.com (Terry Lambert) writes: > I think this has been the basis of your objection so far. If so, > it's a fundamental misunderstanding of "mandatory". In this context What I was objecting to were some of the arguments made by Greg Lehey and Wes Peters, both of whom explicitly s

Re: Mandatory locking?

1999-08-27 Thread Ville-Pertti Keinonen
[EMAIL PROTECTED] (Terry Lambert) writes: > I think this has been the basis of your objection so far. If so, > it's a fundamental misunderstanding of "mandatory". In this context What I was objecting to were some of the arguments made by Greg Lehey and Wes Peters, both of whom explicitly stat

Re: Mandatory locking?

1999-08-26 Thread Ville-Pertti Keinonen
> Not to jump down your throat, or anything, but you seem to be > perpetuating some incorrct assumptions about both effect and > proposed implementation details, and they must be stomped. 8-). I was assuming that mandatory locking, in the context of this discussion, does not mean automatic, forc

Re: Mandatory locking?

1999-08-25 Thread Ville-Pertti Keinonen
> Not to jump down your throat, or anything, but you seem to be > perpetuating some incorrct assumptions about both effect and > proposed implementation details, and they must be stomped. 8-). I was assuming that mandatory locking, in the context of this discussion, does not mean automatic, for

Re: Mandatory locking?

1999-08-25 Thread Ville-Pertti Keinonen
w...@softweyr.com (Wes Peters) writes: > And how many programmers with nearly (or more than) two decades of UNIX > experience it takes to convince someone it really is useful. It should only take one, as long as the arguments made are not bogus. IMHO Greg made some very silly arguments (or at l

Re: Mandatory locking?

1999-08-25 Thread Ville-Pertti Keinonen
[EMAIL PROTECTED] (Wes Peters) writes: > And how many programmers with nearly (or more than) two decades of UNIX > experience it takes to convince someone it really is useful. It should only take one, as long as the arguments made are not bogus. IMHO Greg made some very silly arguments (or at

Re: Mandatory locking?

1999-08-24 Thread Ville-Pertti Keinonen
gurne...@efn.org (John-Mark Gurney) writes: > Ville-Pertti Keinonen scribbled this message on Aug 24: > > cat writes part of oldmail to /var/mail/grog > > sendmail locks /var/mail/grog > > (cat may try to write more to /var/mail/grog but blocks) > >

Re: Mandatory locking?

1999-08-24 Thread Ville-Pertti Keinonen
[EMAIL PROTECTED] (John-Mark Gurney) writes: > Ville-Pertti Keinonen scribbled this message on Aug 24: > > cat writes part of oldmail to /var/mail/grog > > sendmail locks /var/mail/grog > > (cat may try to write more to /var/mail/grog but blocks) > >

Re: Mandatory locking?

1999-08-24 Thread Ville-Pertti Keinonen
g...@lemis.com (Greg Lehey) writes: > an agreement of some kind. But what if I want to merge the contents > of another mail folder: > cat oldmail >>/var/mail/grog > That works, but it's playing with fire: if sendmail is delivering a > message at the same time, it won't see me, and my cat doe

Re: Mandatory locking?

1999-08-24 Thread Ville-Pertti Keinonen
chu...@picnic.mat.net (Chuck Robey) writes: > On 23 Aug 1999, Ville-Pertti Keinonen wrote: > > And even without otherwise incorrect behavior, if you have a program > > that doesn't use any locking and another one that uses mandatory > > locking to prevent races with th

Re: Mandatory locking?

1999-08-24 Thread Ville-Pertti Keinonen
[EMAIL PROTECTED] (Greg Lehey) writes: > an agreement of some kind. But what if I want to merge the contents > of another mail folder: > cat oldmail >>/var/mail/grog > That works, but it's playing with fire: if sendmail is delivering a > message at the same time, it won't see me, and my cat

Re: Mandatory locking?

1999-08-24 Thread Ville-Pertti Keinonen
[EMAIL PROTECTED] (Chuck Robey) writes: > On 23 Aug 1999, Ville-Pertti Keinonen wrote: > > And even without otherwise incorrect behavior, if you have a program > > that doesn't use any locking and another one that uses mandatory > > locking to prevent races with th

Re: Mandatory locking?

1999-08-23 Thread Ville-Pertti Keinonen
g...@lemis.com (Greg Lehey) writes: > Again, if we have two concurrent transactions, we stand to gain money: > the updated balance is likely not to know about the other transaction, > and will thus "forget" one of the deductions. > Now I suppose you're going to come and say that this is bad > pr

Re: anybody love qsort.c?

1999-08-23 Thread Ville-Pertti Keinonen
gurne...@efn.org (John-Mark Gurney) writes: > Christopher Seiwald scribbled this message on Aug 18: > > It's a pretty straightforward change to bypass the insertion sort for > > large subsets of the data. If no one has a strong love for qsort, I'll > > educate myself on how to make and contribut

Re: Mandatory locking?

1999-08-23 Thread Ville-Pertti Keinonen
[EMAIL PROTECTED] (Greg Lehey) writes: > Again, if we have two concurrent transactions, we stand to gain money: > the updated balance is likely not to know about the other transaction, > and will thus "forget" one of the deductions. > Now I suppose you're going to come and say that this is bad

Re: anybody love qsort.c?

1999-08-23 Thread Ville-Pertti Keinonen
[EMAIL PROTECTED] (John-Mark Gurney) writes: > Christopher Seiwald scribbled this message on Aug 18: > > It's a pretty straightforward change to bypass the insertion sort for > > large subsets of the data. If no one has a strong love for qsort, I'll > > educate myself on how to make and contrib

Re: libcompat proposition

1999-08-12 Thread Ville-Pertti Keinonen
ch...@calldei.com (Chris Costello) writes: >I'm in favor of a libgnucompat rather than gnu functions in > libcompat. And how would a libgnucompat be different from libiberty? Except of course that it would be maintained by the FreeBSD folks... Or that it would be maintained at all. ;--)

Re: BSD-XFS Update

1999-08-12 Thread Ville-Pertti Keinonen
matthew.al...@anheuser-busch.com (Alton, Matthew) writes: > I am currently researching methods for implementing the 64-bit > syscalls stat64(), fstat64(), lseek64() &etc. delineated in the > SGI design doc _64 Bit File Access_ by Adam Sweeney. Do the design docs indicate how inode numbers shou

Re: libcompat proposition

1999-08-12 Thread Ville-Pertti Keinonen
[EMAIL PROTECTED] (Chris Costello) writes: >I'm in favor of a libgnucompat rather than gnu functions in > libcompat. And how would a libgnucompat be different from libiberty? Except of course that it would be maintained by the FreeBSD folks... Or that it would be maintained at all. ;--)

Re: BSD-XFS Update

1999-08-12 Thread Ville-Pertti Keinonen
[EMAIL PROTECTED] (Alton, Matthew) writes: > I am currently researching methods for implementing the 64-bit > syscalls stat64(), fstat64(), lseek64() &etc. delineated in the > SGI design doc _64 Bit File Access_ by Adam Sweeney. Do the design docs indicate how inode numbers should interact wi

Re: BSD voice synthesis

1999-08-04 Thread Ville-Pertti Keinonen
d...@flood.ping.uio.no (Dag-Erling Smorgrav) writes: > Ville-Pertti Keinonen writes: > > I certainly don't expect any of the available voices to be able to > > pronounce Finnish names correctly, even with phonetic specifications. > If the software were *designed* to sp

Re: BSD voice synthesis

1999-08-04 Thread Ville-Pertti Keinonen
[EMAIL PROTECTED] (Dag-Erling Smorgrav) writes: > Ville-Pertti Keinonen <[EMAIL PROTECTED]> writes: > > I certainly don't expect any of the available voices to be able to > > pronounce Finnish names correctly, even with phonetic specifications. > If the soft

Re: BSD voice synthesis

1999-08-04 Thread Ville-Pertti Keinonen
w...@softweyr.com (Wes Peters) writes: > available for "home" computers decades ago. (Anyone else here ever use > SAM "the Software Automated Mouth" for the Atari 800 or Commodore 64?) Yes. It's almost surprising how little speech synthesis has improved, at least judging from the festival demo

Re: BSD voice synthesis

1999-08-04 Thread Ville-Pertti Keinonen
[EMAIL PROTECTED] (Wes Peters) writes: > available for "home" computers decades ago. (Anyone else here ever use > SAM "the Software Automated Mouth" for the Atari 800 or Commodore 64?) Yes. It's almost surprising how little speech synthesis has improved, at least judging from the festival dem

Re: Documenting writev(2) ENOBUFS error

1999-08-01 Thread Ville-Pertti Keinonen
> > > :> [ENOBUFS] Insufficient system buffer space exists to complete > > > the op- > > > :>eration. > > > : > > > :Do you know what kind of circumstances that error *really* occurs > > > :under? > > > > So you can get ENOBUFS not related to mbufs for UDP/local data

Re: Documenting writev(2) ENOBUFS error

1999-08-01 Thread Ville-Pertti Keinonen
> > > :> [ENOBUFS] Insufficient system buffer space exists to complete the op- > > > :>eration. > > > : > > > :Do you know what kind of circumstances that error *really* occurs > > > :under? > > > > So you can get ENOBUFS not related to mbufs for UDP/local datagram >

Re: Documenting writev(2) ENOBUFS error

1999-07-31 Thread Ville-Pertti Keinonen
> :w...@softweyr.com (Wes Peters) writes: > : > :> [ENOBUFS] Insufficient system buffer space exists to complete the > op- > :>eration. > : > :Do you know what kind of circumstances that error *really* occurs > :under? > : > :If it happened with files, that would be a

Re: Documenting writev(2) ENOBUFS error

1999-07-31 Thread Ville-Pertti Keinonen
> :[EMAIL PROTECTED] (Wes Peters) writes: > : > :> [ENOBUFS] Insufficient system buffer space exists to complete the op- > :>eration. > : > :Do you know what kind of circumstances that error *really* occurs > :under? > : > :If it happened with files, that would be a b

Re: Documenting writev(2) ENOBUFS error

1999-07-30 Thread Ville-Pertti Keinonen
w...@softweyr.com (Wes Peters) writes: > [ENOBUFS] Insufficient system buffer space exists to complete the op- >eration. Do you know what kind of circumstances that error *really* occurs under? If it happened with files, that would be a bug and should be fixed. The

Re: Documenting writev(2) ENOBUFS error

1999-07-30 Thread Ville-Pertti Keinonen
[EMAIL PROTECTED] (Wes Peters) writes: > [ENOBUFS] Insufficient system buffer space exists to complete the op- >eration. Do you know what kind of circumstances that error *really* occurs under? If it happened with files, that would be a bug and should be fixed. The

Re: speed of file(1)

1999-07-21 Thread Ville-Pertti Keinonen
jere...@gsmx07.alcatel.com.au (Peter Jeremy) writes: > "Leif Neland" wrote: > >My 60MHz Pentium, FreeBSD > > > >time file /usr/home/leif/vnc-3.3.2r > >/usr/home/leif/vnc-3.3.2r3_unixsrc.tgz: gzip compressed data, deflated, > >original filename, last modified: Thu Jan 21 19:23:21 1999 > > > >real

Re: speed of file(1)

1999-07-21 Thread Ville-Pertti Keinonen
[EMAIL PROTECTED] (Peter Jeremy) writes: > "Leif Neland" <[EMAIL PROTECTED]> wrote: > >My 60MHz Pentium, FreeBSD > > > >time file /usr/home/leif/vnc-3.3.2r > >/usr/home/leif/vnc-3.3.2r3_unixsrc.tgz: gzip compressed data, deflated, > >original filename, last modified: Thu Jan 21 19:23:21 1999 > >

Re: Overcommit and calloc()

1999-07-19 Thread Ville-Pertti Keinonen
d...@flood.ping.uio.no (Dag-Erling Smorgrav) writes: > "Kelly Yancey" writes: > > Ahh...but wouldn't the bzero() touch all of the memory just allocated > > functionally making it non-overcommit? > > No. If it were an "non-overcomitting malloc", it would return NULL and > set errno to ENOMEM,

Re: Overcommit and calloc()

1999-07-19 Thread Ville-Pertti Keinonen
[EMAIL PROTECTED] (Dag-Erling Smorgrav) writes: > "Kelly Yancey" <[EMAIL PROTECTED]> writes: > > Ahh...but wouldn't the bzero() touch all of the memory just allocated > > functionally making it non-overcommit? > > No. If it were an "non-overcomitting malloc", it would return NULL and > set er

Re: Replacement for grep(1) (part 2)

1999-07-16 Thread Ville-Pertti Keinonen
c...@netbsd.org (Chris G. Demetriou) writes: > Matthew Dillon writes: > > The text size of a program is irrelevant, because swap is never > > allocated for it. The data and BSS are only relevant when they No, you can mprotect read-only vnode mappings to writable. Most things wouldn't

Re: Replacement for grep(1) (part 2)

1999-07-16 Thread Ville-Pertti Keinonen
jul...@whistle.com (Julian Elischer) writes: > If you wanted to fix this, you could add a patch to malloc that touched > every page that it handed to the application. (and trapped sig11s) How would you expect that to work? Several misunderstandings seem to be common regarding this issue (most n

Re: Replacement for grep(1) (part 2)

1999-07-16 Thread Ville-Pertti Keinonen
[EMAIL PROTECTED] (Chris G. Demetriou) writes: > Matthew Dillon <[EMAIL PROTECTED]> writes: > > The text size of a program is irrelevant, because swap is never > > allocated for it. The data and BSS are only relevant when they No, you can mprotect read-only vnode mappings to writable.

Re: Replacement for grep(1) (part 2)

1999-07-16 Thread Ville-Pertti Keinonen
[EMAIL PROTECTED] (Julian Elischer) writes: > If you wanted to fix this, you could add a patch to malloc that touched > every page that it handed to the application. (and trapped sig11s) How would you expect that to work? Several misunderstandings seem to be common regarding this issue (most n

Re: a BSD identd

1999-07-13 Thread Ville-Pertti Keinonen
gr...@freebsd.org (Brian F. Feldman) writes: > It's "out with the bad, in with the good." Pidentd code is pretty terrible. > The only security concerns with my code were wrt FAKEID, and those were > mostly fixed (mostly meaning that a symlink _may_ be opened, but it won't > be read.) If anyone wa

Re: a BSD identd

1999-07-12 Thread Ville-Pertti Keinonen
[EMAIL PROTECTED] (Brian F. Feldman) writes: > It's "out with the bad, in with the good." Pidentd code is pretty terrible. > The only security concerns with my code were wrt FAKEID, and those were > mostly fixed (mostly meaning that a symlink _may_ be opened, but it won't > be read.) If anyone w

Re: Rewriting pca(4) using finetimer(9) (was: Re: MPU401 now worksunder New Midi Driver Framework with a Fine Timer)

1999-07-09 Thread Ville-Pertti Keinonen
p...@critter.freebsd.dk (Poul-Henning Kamp) writes: > But shouldn't you still be able to use the timer in the local apic ? Did you read the last paragraph in my message? Here it is again: > >It's been a while since I looked at the documentation, but it *might* > >be possible that the local API

Re: Wrong comment in VM code?

1999-07-09 Thread Ville-Pertti Keinonen
zzh...@cs.binghamton.edu (Zhihui Zhang) writes: > At the beginning of the file vm_object.c, we have the following comment: > > The only items within the object structure which are modified after time > of creation are: > > reference count locked by object's lock > pager routine

Re: Rewriting pca(4) using finetimer(9) (was: Re: MPU401 now worksunder New Midi Driver Framework with a Fine Timer)

1999-07-09 Thread Ville-Pertti Keinonen
p...@critter.freebsd.dk (Poul-Henning Kamp) writes: > Somebody should study the abilities of the on-cpu APIC for this > for pentium ff. machines. The local APIC would work very nicely, but I'm not sure that you can enable it reliably in a non-SMP configuration. AFAIK most BIOSes don't provide a

Re: Rewriting pca(4) using finetimer(9) (was: Re: MPU401 now worksunder New Midi Driver Framework with a Fine Timer)

1999-07-09 Thread Ville-Pertti Keinonen
[EMAIL PROTECTED] (Poul-Henning Kamp) writes: > But shouldn't you still be able to use the timer in the local apic ? Did you read the last paragraph in my message? Here it is again: > >It's been a while since I looked at the documentation, but it *might* > >be possible that the local APIC tim

Re: Wrong comment in VM code?

1999-07-09 Thread Ville-Pertti Keinonen
[EMAIL PROTECTED] (Zhihui Zhang) writes: > At the beginning of the file vm_object.c, we have the following comment: > > The only items within the object structure which are modified after time > of creation are: > > reference count locked by object's lock > pager routine locke

Re: Rewriting pca(4) using finetimer(9) (was: Re: MPU401 now worksunder New Midi Driver Framework with a Fine Timer)

1999-07-09 Thread Ville-Pertti Keinonen
[EMAIL PROTECTED] (Poul-Henning Kamp) writes: > Somebody should study the abilities of the on-cpu APIC for this > for pentium ff. machines. The local APIC would work very nicely, but I'm not sure that you can enable it reliably in a non-SMP configuration. AFAIK most BIOSes don't provide an MP

Re: Bursting at the seams (was: Heh heh, humorous lockup)

1999-07-08 Thread Ville-Pertti Keinonen
patr...@mycenae.ilion.eu.org (Patryk Zadarnowski) writes: > > You can't extend the address space that way, segments are all parts of > > the single 4GB address space described by the page mapping. > True, but you can reserve a part of the 4GB address space (say 128MB of it) > for partitioning in

Re: Heh heh, humorous lockup

1999-07-08 Thread Ville-Pertti Keinonen
dil...@apollo.backplane.com (Matthew Dillon) writes: > pair-down the fields in both structures. For example, the vnode structure > contains a lot of temporary clustering fields that could be removed > entirely if clustering operations are done at the time of the actual I/O > rath

Re: Bursting at the seams (was: Heh heh, humorous lockup)

1999-07-07 Thread Ville-Pertti Keinonen
jul...@whistle.com (Julian Elischer) writes: > we already use the gs register for SMP now.. > what about the fs register? > I vaguely remember that the different segments could be used to achieve > this (%fs points to user space or something) You can't extend the address space that way, segm

Re: Bursting at the seams (was: Heh heh, humorous lockup)

1999-07-07 Thread Ville-Pertti Keinonen
[EMAIL PROTECTED] (Patryk Zadarnowski) writes: > > You can't extend the address space that way, segments are all parts of > > the single 4GB address space described by the page mapping. > True, but you can reserve a part of the 4GB address space (say 128MB of it) > for partitioning into tiny (s

Re: Heh heh, humorous lockup

1999-07-07 Thread Ville-Pertti Keinonen
[EMAIL PROTECTED] (Matthew Dillon) writes: > pair-down the fields in both structures. For example, the vnode structure > contains a lot of temporary clustering fields that could be removed > entirely if clustering operations are done at the time of the actual I/O > rather then b

Re: Bursting at the seams (was: Heh heh, humorous lockup)

1999-07-07 Thread Ville-Pertti Keinonen
[EMAIL PROTECTED] (Julian Elischer) writes: > we already use the gs register for SMP now.. > what about the fs register? > I vaguely remember that the different segments could be used to achieve > this (%fs points to user space or something) You can't extend the address space that way, segm

Re: Overwrite an executable file that is running

1999-07-07 Thread Ville-Pertti Keinonen
zzh...@cs.binghamton.edu (Zhihui Zhang) writes: > For a big executable file that is being run by the OS, all its contents > may not be loaded into the memory. At the same time, the developer gets > impatient and wants to create a new version of the same file. He could > modify the makefile to o

Re: Overwrite an executable file that is running

1999-07-06 Thread Ville-Pertti Keinonen
[EMAIL PROTECTED] (Zhihui Zhang) writes: > For a big executable file that is being run by the OS, all its contents > may not be loaded into the memory. At the same time, the developer gets > impatient and wants to create a new version of the same file. He could > modify the makefile to output

TCP input processing bug

1999-06-22 Thread Ville-Pertti Keinonen
I think I've located a problem in TCP input processing...and it has been there for quite a while. It breaks half-open connection discovery for many cases since version 1.15 of netinet/tcp_input.c (committed by Garrett Wollman, which is why this is Cc'd to him), although that isn't where the (pres

Re: vinum performance

1999-06-17 Thread Ville-Pertti Keinonen
g...@lemis.com (Greg Lehey) writes: > > You've accidentally striped subdisks on the same drive? ;--) > > > > Like Greg Lehey said, you haven't really provided enough details. > > He did provide one detail, though; this is a concatenated plex, not a > striped one. Or he at least *thinks* it's c

Re: vinum performance

1999-06-17 Thread Ville-Pertti Keinonen
cro...@cs.rpi.edu (David E. Cross) writes: > I have a drive that is rated at ~16 Meg/second, and indeed it delivers on the > order of 15+ Meg/second. If I use Vinum to create a concatinated device > of 2 such units performance drops to 2.5 Meg/sec. This seems like a > drastic drop in performan

Re: oops, here's the patch

1999-06-15 Thread Ville-Pertti Keinonen
dil...@apollo.backplane.com (Matthew Dillon) writes: > However, if the inside of the first conditional generates an error, the vp > may be vput twice. What I recommend is this for the last bit: That can't happen (the attributes are straight from VATTR_NULL along that path) - if it could

Re: symlink question

1999-06-15 Thread Ville-Pertti Keinonen
dsche...@enteract.com (David Scheidt) writes: > First try: Suppose foo depends on /usr/local/etc/foo.conf. > /usr/local/etc is a link to /usr/local/${ARCH}/etc. User does > export $ARCH=../../home/user, so /usr/local/etc/foo.conf is now in > their home directory. Depending on how poorly writte

Re: coarse vs fine-grained locking in SMP systems

1999-06-15 Thread Ville-Pertti Keinonen
m...@servo.ccr.org (Mike O'Dell) writes: > very fine-grain-locked systems often display convoying and > are prone to priority inversion problems. coarse-grained Priority inversion problems are design flaws. Depending on the type of locks, they may not even be possible. Spin locks held for shor

Re: question about vnode and inode locking

1999-05-31 Thread Ville-Pertti Keinonen
zzh...@cs.binghamton.edu (Zhihui Zhang) writes: > It seems to me that we can lock at the vnode layer AND at the inode layer. No, the inode lock is, in most cases, the vnode layer lock. It isn't obvious because the code assumes that any filesystem using vop_stdlock has a 'struct lock' as the fi

Re: FS tuning (Was: File system gets too fragmented ???)

1999-05-31 Thread Ville-Pertti Keinonen
jo...@gnu.org (Joel Ray Holveck) writes: > As we all know, tunefs -o space will hurt write performance. Will it > hurt read performance? If I don't care about install-time speed, but > do care about run-time speed and free space, should I populate my > filesystems at install time with space tun

Re: A bug in namei cache? (stale entries)

1999-05-28 Thread Ville-Pertti Keinonen
> Suppose, you have a directory hierarchy a -> b -> c. In each of a, b, and > c, we have the following files: > > a: ., .., a1, a2, a3, b (a1, a2, a3 are not directory files) > b: ., .., b1, b2, b3, c (b1, b2, b3 are not directory files) > > If I do a "mv a a_new", then cache entrie

Re: A bug in namei cache?

1999-05-27 Thread Ville-Pertti Keinonen
zzh...@cs.binghamton.edu (Zhihui Zhang) writes: > Suppose you want to mv a directory file (with subdirectories) to another > name (it is like grafting a subtree to another point), the namecache > associated with the source directory file will be purged by calling > cache_purge() (done in ufs_renam

Re: Repeatable kernel panic for 3.2-RELEASE NFS server

1999-05-18 Thread Ville-Pertti Keinonen
cro...@cs.rpi.edu (David E. Cross) writes: > One of our users way able to reliably crash an NFS server 3 times today. > I have since copied his program and have reliably crashed a seperate and > unloaded machine with the exact same panic, "lockmgr: locking against > myself". I check the recent DG