Re: TeXLive merge into FreeBSD ports tree - FreeBSD project idea

2012-06-17 Thread David Schultz
On Wed, May 30, 2012, Aldis Berjoza wrote: On Sat, 26 May 2012 22:45:37 +1200 Sam Lin sam.lin...@gmail.com wrote: Hi FreeBSD fellows, Those who are using LaTeX on FreeBSD must know that tetex has been discontinued years ago and that TeXLive is now recommended, however TeXLive has

Re: TeXLive merge into FreeBSD ports tree - FreeBSD project idea

2012-06-17 Thread David Schultz
On Sun, Jun 17, 2012, Jan Henrik Sylvester wrote: Quite a few conflicts and changes in dependencies are needed for TeXLive. TeXLive does not just replace teTeX, but also ports like freetype-tools, t1utils, jadetex, etc. I have patches for all ports I use, which has been working for me for

Re: TeXLive merge into FreeBSD ports tree - FreeBSD project idea

2012-06-17 Thread David Schultz
On Sun, Jun 17, 2012, Jan Henrik Sylvester wrote: Even with a knob instead of checking if print/texlive-core is installed, it would put a lot of mess into the ports tree. Some maintainers will not agree to introduce these conditions, if there is no general agreement that we want to

Re: strange printf(9) format specifier (Z) in dev/drm code

2011-12-06 Thread David Schultz
On Sun, Dec 04, 2011, Alexander Best wrote: ... i couldn't find a reference to an upercase Z in the printf(9) man page. i talked to dinoex on #freebsd-clang (EFNet) and he said that the Z might come from linux'es libc5 and is the equaivalent to glibc's z. can we adjust those lines, so the

Re: [RFC] Replacing our regex implementation

2011-05-09 Thread David Schultz
On Sun, May 08, 2011, Bakul Shah wrote: On Sun, 08 May 2011 21:35:04 CDT Zhihao Yuan lich...@gmail.com wrote: 1. This lib accepts many popular grammars (PCRE, POSIX, vim, etc.), but it does not allow you to change the mode. http://code.google.com/p/re2/source/browse/re2/re2.h The mode

Re: fsync(2) manual and hdd write caching

2010-11-30 Thread David Schultz
On Thu, Oct 28, 2010, per...@pluto.rain.com wrote: Ivan Voras ivo...@freebsd.org wrote: ... The problem is actually pretty hard - since AFAIK SoftUpdates doesn't have checkpoints in the sense that it groups writes and all data before can guaranteed to be on-disk, the problem is *when*

Re: clogf(3) (complex.h)

2010-09-28 Thread David Schultz
On Mon, Sep 27, 2010, PÁLI Gábor János wrote: Hello, I would like to use the clogf(3) function from complex.h, but it seems there is no such function implemented on FreeBSD (8.1-STABLE). Am I missing something or is there any way to work this around? A simple workaround is something like:

Re: No end to swap zone exhausted problems?

2009-10-06 Thread David Schultz
On Fri, Oct 02, 2009, Anders Nordby wrote: Better post about my swap zone problems here than tear all my hair out. This concerns me: 1) How can SWAPMETA usage continue increasing, while swap space used is not? Example: http://anders.fupp.net/test/swapmeta.png. In the swap meta graph, used

Re: SoC 2009: BSD-licensed libiconv in base system

2009-04-28 Thread David Schultz
On Tue, Apr 28, 2009, Gabor Kovesdan wrote: Another idea to consider. Are all of our utilities wchar-clean? What about library functions? (regex is surely not) Do we lack any important utility or library? (we still do lack iconv and gettext and what else...?) What about standards, like C99

Re: SoC 2009: BSD-licensed libiconv in base system

2009-04-27 Thread David Schultz
On Thu, Apr 23, 2009, Gábor Kövesdán wrote: Hello all, my name is Gábor Kövesdán. I'm a Hungarian student and I'll be working on a BSD-licensed libiconv implementation for FreeBSD during this year's Summer of Code program. It'll be based on NetBSD's Citrus iconv but there is a lot to do

Re: SoC 2009: BSD-licensed libiconv in base system

2009-04-27 Thread David Schultz
On Mon, Apr 27, 2009, Joerg Sonnenberger wrote: On Mon, Apr 27, 2009 at 11:49:41AM -0700, Tim Kientzle wrote: David Schultz wrote: ... whether it would make more sense to standardize on something like UCS-4 for the internal representation. YES. Without this, wchar_t is useless. I

Re: SoC 2009: BSD-licensed libiconv in base system

2009-04-27 Thread David Schultz
On Mon, Apr 27, 2009, Joerg Sonnenberger wrote: On Mon, Apr 27, 2009 at 03:49:04PM -0400, David Schultz wrote: ...but isn't this moot at present because there are no widely-accepted encodings that include characters that aren't supported by UCS-4? Citrus doesn't seem to support any

Re: does Copyright on source files expire ?

2009-03-25 Thread David Schultz
On Wed, Mar 25, 2009, Luigi Rizzo wrote: Someone just asked me permission to move to a 3-clause BSD copyright some piece of software that I haven't touched in 10+ years. I said yes, but then I was wondering what happens if the person listed is not responding or not reachable anymore: does

Re: does Copyright on source files expire ?

2009-03-25 Thread David Schultz
On Wed, Mar 25, 2009, Luigi Rizzo wrote: On Wed, Mar 25, 2009 at 05:31:52AM -0400, David Schultz wrote: On Wed, Mar 25, 2009, Luigi Rizzo wrote: Someone just asked me permission to move to a 3-clause BSD copyright some piece of software that I haven't touched in 10+ years. I said

Re: Long double support in FreeBSD?

2009-03-23 Thread David Schultz
On Mon, Mar 23, 2009, Alexander Sack wrote: I'm working with building the Boost libraries and Boost.Math has long double support stubbed out for FreeBSD (personally I don't need it but..). I believe looking at some historical threads about this over the weekend and a lot of it was due to

Re: Doing away with NGROUPS_MAX in src/sys/sys/syslimits.h?

2009-03-22 Thread David Schultz
On Sun, Mar 22, 2009, Boris Kochergin wrote: Ahoy. I got bitten by this today--a system I administer for someone had users in more than 16 groups, so I had to bump the value, recompile the kernel, and reboot. It seems desirable to (at the very least) make this a read-only tunable that can

Re: Renaming all symbols in libmp(3)

2009-02-26 Thread David Schultz
On Thu, Feb 26, 2009, Ed Schouten wrote: One of the reasons why we can't compile the base system yet, is because some applications in the base system (keyserv, newkey, chkey, libtelnet) won't compile, because a library they depend (libmp)on has a function called pow(). By default, LLVM has a

Re: Renaming all symbols in libmp(3)

2009-02-26 Thread David Schultz
On Thu, Feb 26, 2009, Christoph Mallon wrote: David Schultz schrieb: On Thu, Feb 26, 2009, Ed Schouten wrote: One of the reasons why we can't compile the base system yet, is because some applications in the base system (keyserv, newkey, chkey, libtelnet) won't compile, because a library

Re: Renaming all symbols in libmp(3)

2009-02-26 Thread David Schultz
On Thu, Feb 26, 2009, Christoph Mallon wrote: David Schultz schrieb: As for gcc's math builtins, most of them are buggy. They fail to respect the dynamic rounding mode, fail to generate exceptions where appropriate, fail to respect FENV_ACCESS and other pragmas, etc. Also, the complex

Re: generalizing fd allocation code to id allocation

2009-02-11 Thread David Schultz
On Wed, Feb 11, 2009, Hans Petter Selasky wrote: On Wednesday 11 February 2009, Andriy Gapon wrote: My nose has just been rubbed into alloc_unr(9) :) Thanks, Roman! The only problem about alloc_unr() is that you cannot allocate multiple contiguous units? Both Solaris' vmem(9) and

Re: a little bit of c++ in kernel [module]

2009-02-11 Thread David Schultz
On Wed, Feb 11, 2009, Bruce Cran wrote: On Wed, 11 Feb 2009 22:51:02 +0100 Christoph Mallon christoph.mal...@gmx.de wrote: Aniruddha Bohra schrieb: On Wed, Feb 11, 2009 at 8:25 AM, Andriy Gapon a...@icyb.net.ua wrote: on 10/02/2009 22:43 Aniruddha Bohra said the following: You

Re: threaded, forked, rethreaded processes will deadlock

2009-01-21 Thread David Schultz
I think there *is* a real bug here, but there's two distinct ways to fix it. When a threaded process forks, malloc acquires all its locks so that its state is consistent after a fork. However, the post-fork hook that's supposed to release these locks fails to do so in the child because the child

Re: threaded, forked, rethreaded processes will deadlock

2009-01-21 Thread David Schultz
On Thu, Jan 22, 2009, Daniel Eischen wrote: On Wed, 21 Jan 2009, David Schultz wrote: I think there *is* a real bug here, but there's two distinct ways to fix it. When a threaded process forks, malloc acquires all its locks so that its state is consistent after a fork. However, the post

Re: threaded, forked, rethreaded processes will deadlock

2009-01-21 Thread David Schultz
On Thu, Jan 22, 2009, David Schultz wrote: If you can't implement functions that are required to be async-signal-safe like fork() and exec() without malloc(), then for now I guess we should go for something along the lines of what Brian is proposing. If the app programmer has taken special

Re: killing a kthread

2008-09-03 Thread David Schultz
On Wed, Sep 03, 2008, kr Lekha wrote: I understand when thread finishes it should call kthread_exit(). but if this thread was suspended before it finished, it might not be able to call kthread_exit(). Due to which we still see the thread suspended. I am unable to kill it even with killproc

Re: hashinit versus phashinit

2008-05-06 Thread David Schultz
On Mon, May 05, 2008, Roman Divacky wrote: hi when we want to use a hash table in kernel we call hashinit which initializes a hash table with power-of-2 size. There's also phashinit that creates hash table of size that is a prime number. This was added in 1995 by davidg@ but it is not used

Re: sort(1) memory usage

2008-02-04 Thread David Schultz
On Sun, Feb 03, 2008, Dag-Erling Smørgrav wrote: Dag-Erling Smørgrav [EMAIL PROTECTED] writes: Erik Trulsson [EMAIL PROTECTED] writes: Yep, it seems that GNU sort allocates a quite large buffer by default when the size of the input is unknown (such as when it reads input from stdin.) A

Re: Trying to support my product on BSD

2008-01-20 Thread David Schultz
On Fri, Jan 18, 2008, navneet Upadhyay wrote: Hi , My product is successfully running on Linux( all most all versions) and HP- UX and Windows . *It is 100 % C++ code*. I am planning to support it on FreeBSD, i have two queries : 1. *How to build my code into binaries* on

Re: FreeBSD on non-fpu device

2008-01-20 Thread David Schultz
On Sun, Jan 20, 2008, Heikki Suonsivu wrote: There is very low cost microscopic PC (see eBOX 2300 and eBOX 2300SX www.compactpc.com.tw), which previously run FreeBSD fine, being based on Vortex86 cpu on Sis SoC chip 550. Unfortunately the manufacturer switched to a new SoC cpu which is

Re: floating point operations

2007-11-01 Thread David Schultz
On Thu, Nov 01, 2007, Dag-Erling Smørgrav wrote: James Healy [EMAIL PROTECTED] writes: The remaining op is not easily converted to fixed point math, and we're wondering what impact a single flop on the receipt of each ACK will have. We don't have a strong understanding of the amount of

Re: Re: where to release proc.p_stats

2005-10-26 Thread David Schultz
On Mon, Oct 24, 2005, nocool wrote: Can memory management system utilize COW to supply zero-filled page to kernel or user process. That is to say: When processes want zeroed page, we give them a mirror of one already zerod pages. If they just read, they can read zero from the back page.

Re: where to release proc.p_stats

2005-10-21 Thread David Schultz
On Fri, Oct 21, 2005, John Baldwin wrote: On Friday 21 October 2005 09:13 am, nocool wrote: freebsd-hackersï¼Œhello Question about 5.4 kernel source code. I have some question about strust proc's initialize. Kernel use proc_zone to allocate proc items and initialize them

Re: kernel killing processes when out of swap

2005-04-12 Thread David Schultz
On Tue, Apr 12, 2005, Bruce M Simpson wrote: On Tue, Apr 12, 2005 at 05:24:15AM -0700, ALeine wrote: machine. Having a flag to tag processes as vital to prevent them from getting killed (or to give them lower next-to-be-killed priority so that all non-vital processes get killed first)

Re: kernel killing processes when out of swap

2005-04-12 Thread David Schultz
On Tue, Apr 12, 2005, Steven Hartland wrote: - Original Message - There is no large process detection. The first process that tries to fault in a new page after the system runs out of swap gets killed. That makes sense. Me trying to connect to see what was going on would hence

Re: organization

2005-03-31 Thread David Schultz
On Wed, Mar 30, 2005, David Leimbach wrote: Yes, procfs rules! Procfs is from linux? I thought it was from Plan 9... along with rfork :). Nope. It was first implemented by Sun's Roger Faulkner in SVR4, well before Linux or Plan 9 existed. Actually, someone wrote a prototype for Unix

Re: organization

2005-03-31 Thread David Schultz
On Thu, Mar 31, 2005, Christoph Hellwig wrote: On Thu, Mar 31, 2005 at 07:20:13AM -0500, David Schultz wrote: On Wed, Mar 30, 2005, David Leimbach wrote: Yes, procfs rules! Procfs is from linux? I thought it was from Plan 9... along with rfork :). Nope. It was first

Re: Fwd: 5-STABLE kernel build with icc broken

2005-03-30 Thread David Schultz
On Wed, Mar 30, 2005, Peter Jeremy wrote: On Tue, 2005-Mar-29 22:57:28 -0500, jason henson wrote: Later in that thread they discuss skipping the restore state to make things faster. The minimum buffer size they say this will be good for is between 2-4k. Does this make sense, or am I

Re: organization

2005-03-29 Thread David Schultz
On Tue, Mar 29, 2005, Warner Losh wrote: From: mohamed aslan [EMAIL PROTECTED] Subject: Re: organization Date: Tue, 29 Mar 2005 07:41:25 -0800 guys this is not a flame war but the linux way in arranging the source file is really better than freebsd way, it's a fact. however it's easy

Re: organization

2005-03-29 Thread David Schultz
On Tue, Mar 29, 2005, M. Warner Losh wrote: In message: [EMAIL PROTECTED] David Schultz [EMAIL PROTECTED] writes: : On Tue, Mar 29, 2005, Warner Losh wrote: : From: mohamed aslan [EMAIL PROTECTED] : Subject: Re: organization : Date: Tue, 29 Mar 2005 07:41:25 -0800

Re: Possible problems with mmap/munmap on FreeBSD ...

2005-03-29 Thread David Schultz
On Tue, Mar 29, 2005, Richard Sharpe wrote: Hi, I am having some problems with the tdb package on FreeBSD 4.6.2 and 4.10. One of the things the above package does is: mmap the tdb file to a region of memory store stuff in the region (memmov etc). when it needs to extend the

Re: 5-STABLE kernel build with icc broken

2005-03-27 Thread David Schultz
On Sun, Mar 27, 2005, c0ldbyte wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Sun, 27 Mar 2005 [EMAIL PROTECTED] wrote: Without intending to start any compiler holy wars, what benefits does ICC provide over GCC for the end user? ICC would provide better low level code

Re: contributing to fbsd

2005-03-25 Thread David Schultz
On Fri, Mar 25, 2005, Andriy Tkachuk wrote: As I see now there is for example O(n) algorithm for process IDs allocation... In linux it is addressed using bit-mapping (as far as i understand). In Oct 2003 there was topic in this list: Some mmap observations compared to Linux 2.6/OpenBSD in

Re: Kernel documentation and specification

2005-03-23 Thread David Schultz
On Thu, Mar 24, 2005, klowd9 - wrote: Where can i find resources about the freebsd kernel? I read over the developers handbook, and the architecture handbook, and both provide very little information i need. Also if anyone can recommend irc channels to visit where developers are to be

Re: some bugs in the kernel

2005-03-17 Thread David Schultz
On Mon, Mar 14, 2005, Ted Unangst wrote: These bugs were found using the Coverity Prevent static analysis tool. [...] Thanks for reporting these! It's great that your tools have been finding all these obscure bugs before users do. All of these should be fixed now, except for the if_ti bug,

Re: the current status of nullfs, unionfs

2005-03-09 Thread David Schultz
On Wed, Mar 09, 2005, Mikhail Teterin wrote: Hello! The respected manual contain dire warnings, but the Google search suggests, the situation is not *that* gloomy. For example, according to http://kerneltrap.org/node/652 , nullfs was used on Bento-cluster two years ago in 2003. Is

Re: FUD about CGD and GBDE

2005-03-07 Thread David Schultz
On Thu, Mar 03, 2005, Perry E. Metzger wrote: No, I am not. PHK invented new cryptographic modes for his work. The fact that he does not understand this is part of the problem. Hi Perry, You've brought up this claim at several points in this thread. Would you be willing to be more specific? I

Re: sched_4BSD

2005-03-03 Thread David Schultz
On Mon, Feb 28, 2005, Julian Elischer wrote: Ashwin Chandra wrote: I wanted to get some clarification about the 4BSD scheduler. I am sort of confused why there are two forms of scheduling, one done between processes and another done between threads in a process. The priority calculations

Re: function prototype of fdrop() and fdrop_locked() in kern_descrip.c

2005-02-28 Thread David Schultz
On Sat, Feb 26, 2005, Yan Yu wrote: HI, all, I have a Q on the input parameter of fdrop() and fdrop_locked() in kern/kern_descrip.c. i am curious about the design choice of their input parameter. currently, it is defined as A) fdrop( struct file

Re: vn_fullpath()

2005-02-20 Thread David Schultz
On Sun, Feb 20, 2005, Igor Shmukler wrote: Hello, I was wondering if anyone has figured a way to make vn_fullpath() reliable? Perhaps there is another approach to attacking this problem. Here is what I need to accomplish: I need to be able to determine dynamic linker, shared libraries

Re: vn_fullpath()

2005-02-20 Thread David Schultz
On Sun, Feb 20, 2005, David Schultz wrote: On Sun, Feb 20, 2005, Igor Shmukler wrote: Hello, I was wondering if anyone has figured a way to make vn_fullpath() reliable? Perhaps there is another approach to attacking this problem. Here is what I need to accomplish: I need

Re: malloc vs ptmalloc2

2005-02-14 Thread David Schultz
On Mon, Feb 14, 2005, Andrew MacIntyre wrote: David Schultz wrote: Other than that, I don't know enough details about ptmalloc to speculate, except to say that for most real-world workloads on modern systems, the impact of the malloc implementation is likely to be negligible. Of course, test

Re: malloc vs ptmalloc2

2005-02-14 Thread David Schultz
On Mon, Feb 14, 2005, John-Mark Gurney wrote: David Schultz wrote this message on Mon, Feb 14, 2005 at 08:04 -0500: Right, databases, language runtimes, and the small set of other applications for which it really matters usually have their own special-purpose allocators. I was counting

Re: malloc vs ptmalloc2

2005-02-13 Thread David Schultz
On Sun, Feb 13, 2005, Jason Henson wrote: I saw on a few of the lists here how linux uses ptmalloc2 and it outperforms bsd's malloc. I tried to do some research into it and found PHK's pdf on it and it seems bsd's malloc was ment to be ok in most every situation. Because of this it

Re: Star FreeBSD

2005-02-11 Thread David Schultz
On Fri, Feb 11, 2005, Jonathan Weiss wrote: Is the CDDL license compatible with the BSD and MIT licenses? According to the OpenBSD-folks: NO Actually, I think the answer is YES. You're apparently answering a different question. See below. It is my understanding that virtually any

Re: Star FreeBSD

2005-02-11 Thread David Schultz
On Sat, Feb 12, 2005, Eitarou Kamo wrote: Actually, I think the answer is YES. You're apparently answering a different question. See below. It is my understanding that virtually any open-source license is *compatible* with the MIT and 2-clause BSD licenses, since all the

Re: kernel vm question

2005-01-30 Thread David Schultz
On Fri, Jan 28, 2005, Dag-Erling Smrgrav wrote: [EMAIL PROTECTED] (Dag-Erling Smørgrav) writes: David Schultz [EMAIL PROTECTED] writes: When the line is there, the compiler is probably smart enough to realize that 'x=y; y=x' is (usually) a no-op, so it optimizes away both statements

Re: kernel vm question

2005-01-27 Thread David Schultz
On Thu, Jan 27, 2005, Jacques Fourie wrote: Hi, I have a kernel module with the following entry point : static int test_modevent(module_t mod, int type, void *unused) { int s; unsigned char *p = NULL; unsigned char v = 0x55; switch (type) { case MOD_LOAD: p =

Re: kernel vm question

2005-01-27 Thread David Schultz
On Thu, Jan 27, 2005, Jacques Fourie wrote: Hi, Yes, I am trying to patch a piece of code in the kernel. The strange thing is that this code works without a problem on FreeBSD 4.8 - has the VM system changed to such an extent between 4.8 and 4.9 that the pages in the kernel code segment are

Re: Resuming from a crashdump

2005-01-24 Thread David Schultz
On Tue, Jan 25, 2005, Bruce M Simpson wrote: If we could take a clean subsystem-by-subsystem approach to marshaling kernel state to disk, that would be good. What gives me particular pain here is dealing with things like the filesystem. How does one deal with open files, etc, with pending I/O?

Re: Benchmark: NetBSD 2.0 beats FreeBSD 5.3

2005-01-11 Thread David Schultz
On Sat, Jan 08, 2005, Ceri Davies wrote: On Fri, Jan 07, 2005 at 06:10:06PM +0800, Xin LI wrote: On Fri, Jan 07, 2005 at 09:21:10AM +, Ceri Davies wrote: I don't really think that this benchmark is bad news for either OS. My only real concern are the process creation/termination

Re: Kernel crash w/o reason

2004-12-23 Thread David Schultz
On Fri, Dec 24, 2004, Jan Engelhardt wrote: 1) In kmi_fops.d_open(): |if(!mtx_trylock(Open_lock)) { return EBUSY; } |return 0; this can not work. You cannot return to userland with a lock acquired. So? The full code also contains a uio_read() function. If I release the lock in

Re: Loadable Scheduler in Freebsd

2004-11-05 Thread David Schultz
On Thu, Nov 04, 2004, Devesh Shah wrote: Is there a loadable scheduler exist for freebsd 5.2.1 that I could use or any work in the pipeline to develope the infrastructure for freebsd? I believe, Linux has policy based loadable scheduler but could not find one for freebsd. I know, Freebsd

Re: Protection from the dreaded rm -fr /

2004-10-03 Thread David Schultz
On Sat, Oct 02, 2004, M. Warner Losh wrote: In message: [EMAIL PROTECTED] Giorgos Keramidas [EMAIL PROTECTED] writes: : On 2004-10-02 19:29, M. Warner Losh [EMAIL PROTECTED] wrote: : In message: [EMAIL PROTECTED] : Tillman Hodgson [EMAIL PROTECTED] writes: : :

Re: Protection from the dreaded rm -fr /

2004-10-02 Thread David Schultz
On Sat, Oct 02, 2004, Michael Reifenberger wrote: On Sat, 2 Oct 2004, Giorgos Keramidas wrote: Date: Sat, 2 Oct 2004 11:19:28 +0300 From: Giorgos Keramidas [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Protection from the dreaded rm -fr / John Beck, who works for Sun, has posted an

Re: Protection from the dreaded rm -fr /

2004-10-02 Thread David Schultz
On Sat, Oct 02, 2004, Jacques A. Vidrine wrote: FWIW, I'm not in favor of adding ad-hoc features to handle edge-cases. (feature because this is actually introducing a bug :-) I picked this email to which to respond, because I can share my own stupidity. Case much like the one described

Re: Protection from the dreaded rm -fr /

2004-10-02 Thread David Schultz
On Sat, Oct 02, 2004, Michael Reifenberger wrote: On Sat, 2 Oct 2004, David Schultz wrote: ... Do you also want to be able to swap to the root partition while it's mounted? We can bring back that feature, too. But personally, I don't see anything wrong with the view that operations

Re: Protection from the dreaded rm -fr /

2004-10-02 Thread David Schultz
On Sun, Oct 03, 2004, Giorgos Keramidas wrote: On 2004-10-02 17:22, Garance A Drosihn [EMAIL PROTECTED] wrote: At 8:57 PM +0300 10/2/04, Giorgos Keramidas wrote: On 2004-10-02 21:23, Lee Harr [EMAIL PROTECTED] wrote: How about: chflags sunlnk / ? Setting sunlink on / will only

Re: ZFS

2004-09-16 Thread David Schultz
On Thu, Sep 16, 2004, Frank Knobbe wrote: On Thu, 2004-09-16 at 11:20, Bruce M Simpson wrote: On Thu, Sep 16, 2004 at 11:12:16AM -0400, Kevin A. Pieckiel wrote: Where on earth would you find a disk system that can store 2^64 bytes of data or larger, anyway? You can bet that

Re: ZFS

2004-09-16 Thread David Schultz
On Thu, Sep 16, 2004 at 10:31:57AM -0500, Sam wrote: Let's suppose you generate an exabyte of storage per year. Filling a 64-bit filesystem would take you approximately 8 million years. I suggest that you review your calculations. I'm not saying we'll never get there, [...] It's

Re: FreeBSD Kernel buffer overflow

2004-09-16 Thread David Schultz
On Fri, Sep 17, 2004, [EMAIL PROTECTED] wrote: If we put your patch in but as a KASSERT then anyone ruinning with debugging turned on (and no-one in their right mind would write a kernel module without turning on debugging, right?) will immediatly find the problem. What you can't

Re: Fwd: How to read bad blocks error message marking of same

2004-08-06 Thread David Schultz
On Fri, Aug 06, 2004, Gary Corcoran wrote: Dan Nelson wrote: In the last episode (Aug 06), Gary Corcoran said: Mike Meyer wrote: Modern drives deal with bad block substitution all by themselves. Umm - not quite, right? That is, if a block goes bad and you get a read error, the

Re: Article on Sun's DTrace

2004-07-08 Thread David Schultz
On Thu, Jul 08, 2004, Wilko Bulte wrote: On Thu, Jul 08, 2004 at 01:23:04AM -0700, Avleen Vig wrote: On Thu, Jul 08, 2004 at 03:46:24AM -0400, Daniel Ellard wrote: I don't doubt that DTrace took a long time to do. However, in most projects the design phase consumes a lot of time, and it

Re: Article on Sun's DTrace

2004-07-07 Thread David Schultz
On Wed, Jul 07, 2004, Eitarou Kamo wrote: FreeBSD has good features such as jail, chroot e.t.c. which can controll Solaris 10 has these features, too, but I'm not sure what that has to do with DTrace. process or resources in parallel. So you need not port DTrace entirely. You can implement

Re: Article on Sun's DTrace

2004-07-05 Thread David Schultz
On Wed, Jun 30, 2004, Bruce M Simpson wrote: This recently caught my eye: http://www.samag.com/documents/s=9171/sam0406h/0406h.htm There are a number of good sounding suggestions in there. DTrace is pure magic. It would be well worth your time to install Solaris 10 just to try out DTrace

Re: kern___getcwd() returns ENOTDIR

2004-06-28 Thread David Schultz
On Mon, Jun 28, 2004, Pawel Jakub Dawidek wrote: On Sun, Jun 27, 2004 at 11:12:20AM -0700, David Schultz wrote: + On Sun, Jun 27, 2004, Kentucky Mandeloid Mo. wrote: + I'm writng a smal kernel module that catches file access syscalls. + At every syscall I need a full name of file is being

Re: kern___getcwd() returns ENOTDIR

2004-06-27 Thread David Schultz
On Sun, Jun 27, 2004, Kentucky Mandeloid Mo. wrote: I'm writng a smal kernel module that catches file access syscalls. At every syscall I need a full name of file is being passed to a syscall. I'm getting it with a path passed to syscall and if path is not starting with / I get current

Re: /bin/ls sorting bug?

2004-06-21 Thread David Schultz
On Mon, Jun 21, 2004, David Malone wrote: Sorting on nanoseconds too is likely to be more confusing than useful. Even if we use one of the precious few option letters ls doesn't use already to add a nanosecond display, most people won't know about it because they don't care about

Re: /bin/ls sorting bug?

2004-06-20 Thread David Schultz
On Sun, Jun 20, 2004, Scott Mitchell wrote: On Sun, Jun 20, 2004 at 09:59:12AM +0100, David Malone wrote: On Sat, Jun 19, 2004 at 11:52:29PM +0100, Scott Mitchell wrote: On Sat, Jun 19, 2004 at 10:06:01PM +0200, Dimitry Andric wrote: Looking through ls source shows that the sorting is

Re: Semantics of seteuid(uid) vs. setreuid(-1,uid)

2004-06-07 Thread David Schultz
On Sun, Jun 06, 2004, Stefan Eer wrote: Any reason, that there is a difference in semantics between: seteuid(id) vs. setreuid(-1, id)??? The tests performed on the arguments are different (assuming a fixed arg of -1 for ruid) in that seteuid does not support the case

Re: documentation on sysctl vm.defer_swapspace_pageouts?

2004-05-30 Thread David Schultz
On Sat, May 29, 2004, Geert Hendrickx wrote: where can I find documentation on the vm.defer_swapspace_pageouts sysctl? LINT only mentions it, without explaining, man sysctl doesn't mention it at all, and even Google yields very few useful results... vm.defer_swapspace_pageouts causes the

Re: copyin() EFAULT

2004-05-20 Thread David Schultz
On Wed, May 19, 2004, Tomas Pluskal wrote: I would like to ask you for help or explanation - why do I get EFAULT when invoking copyin() or fubyte() etc. I am writing a kernel module, and I [...] So copying of some blocks was OK, and on some blocks it returned EFAULT. Why? You will get EFAULT

Re: Another conformance question... This time fputs().

2004-03-03 Thread David Schultz
On Tue, Mar 02, 2004, Jordan K. Hubbard wrote: That gives us this behavior for our little test program: errno = 13, rc = -1 fwrite errno = 13, rc = 0 In both cases, we get EACCES for fputs() or fwrite() attempts on a read-only file pointer pointing to a read-only device, something we'd

Re: Branch prediction

2004-02-17 Thread David Schultz
On Sun, Feb 15, 2004, Trent Nelson wrote: For as long as I've been programming, I've always been under the impression that CPUs will always predict a branch as being false the first time they come across it. Many, many years ago, I came across a DEC programming guide that

Re: sources needed - msdosfs merge from darwin

2004-02-09 Thread David Schultz
On Thu, Feb 05, 2004, Friedemann Becker wrote: Hello, I want to take a look at the darwin msdosfs - merge is on the todo list. I had trouble logging in to the cvs and wrote a mail to the apple-support. I got an auto-answer containing: Q: I've registered, but I can't login to CVS or the

Re: Call for testers: New PID allocator patch for -CURRENT

2004-01-30 Thread David Schultz
On Fri, Jan 30, 2004, Tim Robbins wrote: [...] [1] That shouldn't be hard, given that the present algorithm takes O(N) amortized time in the worst case, and can examine as many as PID_MAX^2 pids if the number of processes in the system is close to PID_MAX. [...] In my

Re: Call for testers: New PID allocator patch for -CURRENT

2004-01-29 Thread David Schultz
On Thu, Jan 29, 2004, Xin LI wrote: Greetings, everyone A friend of mine has ported NetBSD's new PID allocation[1] code to FreeBSD, you can obtain the patch here: http://www.arbornet.org/~junsu/pid.diff Some of you may be already aware of this for he has posted[2] this to both

Re: adding more ram

2003-12-11 Thread David Schultz
On Wed, Dec 10, 2003, Mike Silbersack wrote: On Wed, 10 Dec 2003 [EMAIL PROTECTED] wrote: Hi all. I have a server with 1GB of RAM and a swap partition of 2GB i will upgrade the memory server to 2GB so my questions are: should i fix the swap partition to have now 4GB of space ?

Re: thread/process memory management source code

2003-12-01 Thread David Schultz
[Redirected to threads@; please avoid spamming multiple lists.] On Sat, Nov 29, 2003, Jay Sern Liew wrote: Can someone point to me the specific location in the FreeBSD kernel source where the code for FreeBSD's thread/process memory management are? Specifically, where the dispatcher and

Re: Size-independent byte order swapping functions.

2003-11-24 Thread David Schultz
On Mon, Nov 24, 2003, Pawel Jakub Dawidek wrote: If one is using strictly defined types as uint8_t, uint16_t, int32_t, etc. those macros are helpful IMHO, because futher value size changes does not affects code for byte order managing. This also does not hit perfromance, because this should be

Re: rfork problem

2003-11-11 Thread David Schultz
On Tue, Nov 04, 2003, David Schultz wrote: On Tue, Nov 04, 2003, Igor Serikov wrote: David, Is it okay to have a condition that can be created by a mortal user and then cannot be changed by the root? The waiting process cannot be killed and would keep waiting till system reboot

Re: geom_mirror implementation

2003-11-09 Thread David Schultz
On Sun, Nov 09, 2003, Christian Laursen wrote: David Schultz [EMAIL PROTECTED] writes: On Sun, Nov 09, 2003, Lukas Ertl wrote: Hi hackers@, I've played around with GEOM a bit and beefed up geom_mirror, which is already in the tree but not built yet. You can find the patch

Re: geom_mirror implementation

2003-11-09 Thread David Schultz
On Sun, Nov 09, 2003, Lukas Ertl wrote: If there's a good reason ccd(4) is harder to fix than geom_mirror, then you might want to talk to phk about rewriting geom_ccd based on geom_mirror. I believe scottl and phk have plans to fix raidframe, though, which would address a lot of the

Re: geom_mirror implementation

2003-11-08 Thread David Schultz
On Sun, Nov 09, 2003, Lukas Ertl wrote: Hi hackers@, I've played around with GEOM a bit and beefed up geom_mirror, which is already in the tree but not built yet. You can find the patch at http://mailbox.univie.ac.at/~le/geom.diff. Hmm...I believe geom_mirror is supposed to be an example,

Re: rfork problem

2003-11-04 Thread David Schultz
On Mon, Nov 03, 2003, Igor Serikov wrote: Hello, Combining flags RFNOWAIT and RFPPWAIT in rfork(2) under 4.6-RELEASE makes the parent process sleeping on channel ppwait forever. RFPPWAIT tells rfork() to wait for the child to exit, and RFNOWAIT tells rfork() to detach the child such

Re: rfork problem

2003-11-04 Thread David Schultz
On Tue, Nov 04, 2003, Igor Serikov wrote: David, Is it okay to have a condition that can be created by a mortal user and then cannot be changed by the root? The waiting process cannot be killed and would keep waiting till system reboot. Aah, I see. No, it's not okay that a non-root

Re: Some mmap observations compared to Linux 2.6/OpenBSD

2003-11-02 Thread David Schultz
On Fri, Oct 31, 2003, Vivek Pai wrote: Take a look at Figure 6, page 9 in the following: http://www.cs.princeton.edu/~yruan/DeBox/debox.pdf On a 1GHz box with 1GB of memory, we were spending 4-5 milliseconds per mmap call, and that was limiting the throughput of our server on SpecWeb99.

Re: Some mmap observations compared to Linux 2.6/OpenBSD

2003-10-27 Thread David Schultz
On Sun, Oct 26, 2003, Lowell Gilbert wrote: David Schultz [EMAIL PROTECTED] writes: On Sun, Oct 26, 2003, Dag-Erling Smrgrav wrote: Q [EMAIL PROTECTED] writes: Yes, it would appear this is a legacy thing that existed in the original 1994 import of the BSD 4.4 Lite source. Both

Re: Some mmap observations compared to Linux 2.6/OpenBSD

2003-10-26 Thread David Schultz
On Sun, Oct 26, 2003, Mike Silbersack wrote: On Sat, 25 Oct 2003, David Schultz wrote: But regardless of the approach, someone has yet to demonstrate that this is actually a performance problem in the real world. ;-) I could be way wrong, but I would think that a database might mmap

Re: Some mmap observations compared to Linux 2.6/OpenBSD

2003-10-25 Thread David Schultz
On Wed, Oct 22, 2003, Q wrote: As an effort to get more acquainted with the FreeBSD kernel, I have been looking through how mmap works. I don't yet understand how it all fits together, or of the exact implications things may have in the wild, but I have noticed under some synthetic conditions,

Re: Passthrough block device

2003-10-25 Thread David Schultz
On Wed, Oct 22, 2003, Sean Hamilton wrote: Does FreeBSD support a device that will allow for the passing of all reads and writes on it to a userland application? I wish to handle swapping myself, preferably without any kernel hacking. What would happen if the kernel decided to swap out

  1   2   3   >