Re: patch(1) depends on RCS - should it?

2013-10-09 Thread Benjamin Kaduk
I guess I'm late to the party (catching up on the whole thread took a while...) On Mon, 7 Oct 2013, Eitan Adler wrote: patch(1) explicitly tries to use RCS (and SCCS) in certain cases. Are we okay with a base system utility that behaves differently depending on whether a port is installed?

Re: Multiple page size support on FreeBSD?

2013-04-10 Thread Benjamin Kaduk
On Wed, 10 Apr 2013, Wojciech Puchar wrote: How do your tests work? Do you examine PTEs directly to check for superpages or are you relying on the vm.pmap.pde sysctls? the later. anyway - algorithm described on list - that heuristics detects consecutive page access doesn't really help the

Re: Multiple page size support on FreeBSD?

2013-04-07 Thread Benjamin Kaduk
On Sun, 7 Apr 2013, Sebastian Feld wrote: Does FreeBSD support multiple page sizes in a single userland process like Solaris 11 does? Superpage promotion happens automatically when consecutive data are accessed according to the proper heuristic. As promotion is dynamic, necessarily a

Re: Running kgdb in batch mode.

2012-11-26 Thread Benjamin Kaduk
On Mon, 26 Nov 2012, Ed Maste wrote: On 26 November 2012 01:21, Sushanth Rai sushanth_...@yahoo.com wrote: Basically I would like to get kernel backtrace of a bunch of threads from the live kernel under some conditions. When the condition is seen I would like to run kgdb, collect kernel

Re: Give users a hint when their locate database is too small.

2012-11-14 Thread Benjamin Kaduk
On Wed, 14 Nov 2012, Eitan Adler wrote: On 14 November 2012 11:32, Warren Block wbl...@wonkity.com wrote: On Tue, 13 Nov 2012, Benjamin Kaduk wrote: if (len (2*NBG)) - errx(1, database too small: %s, db); + errx(1, database too small: %s\nRun /usr/libexec

Re: Give users a hint when their locate database is too small.

2012-11-13 Thread Benjamin Kaduk
On Tue, 13 Nov 2012, Eitan Adler wrote: Ack to all. Final patch sent for approval: diff --git a/usr.bin/locate/locate/locate.c b/usr.bin/locate/locate/locate.c index b0faefb..95b3fed 100644 --- a/usr.bin/locate/locate/locate.c +++ b/usr.bin/locate/locate/locate.c @@ -292,7 +292,7 @@

Re: make -jN buildworld on 512MB ram

2012-11-01 Thread Benjamin Kaduk
On Thu, 1 Nov 2012, Peter Jeremy wrote: On 2012-Oct-31 12:58:18 -0700, Alfred Perlstein bri...@mu.org wrote: It seems like the new compiler likes to get up to ~200+MB resident when building some basic things in our tree. The killer I found was the ctfmerge(1) on the kernel - which exceeds

Re: Why fdisk can't open root disk with MBR for writing?

2012-09-15 Thread Benjamin Kaduk
On Sat, 15 Sep 2012, Julian H. Stacey wrote: I have been applying this diff to my man fdisk: http://berklix.com/~jhs/src/bsd/fixes/FreeBSD/src/gen/sbin/fdisk/ *** 8.0-RELEASE/src/sbin/fdisk/fdisk.8 Sat Mar 14 22:32:16 2009 --- new-generic/src/sbin/fdisk/fdisk.8 Sat Mar 14 22:35:10 2009

Re: dtraceall.ko with old nfsclient

2012-07-11 Thread Benjamin Kaduk
On Wed, 11 Jul 2012, Fabian Keil wrote: I'm using the following modification of Sean's patch: diff --git a/sys/modules/dtrace/dtraceall/dtraceall.c b/sys/modules/dtrace/dtraceall/dtraceall.c index c57f590..d50b1e5 100644 --- a/sys/modules/dtrace/dtraceall/dtraceall.c +++

Re: PORTS_MODULES in src.conf: make: don't know how to make instclean. Stop

2012-07-02 Thread Benjamin Kaduk
On Mon, 2 Jul 2012, David Wolfskill wrote: Huh??!? At least as far back as 06 Jan (based on the mtime of /etc/src.conf), I had set up src.conf to read: PORTS_MODULES=x11/nvidia-driver Don't do that. PORTS_MODULES is documented to belong in make.conf, not src.conf. That said, dougb has

Re: PORTS_MODULES in src.conf: make: don't know how to make instclean. Stop

2012-07-02 Thread Benjamin Kaduk
On Mon, 2 Jul 2012, Doug Barton wrote: On 07/02/2012 09:25, Benjamin Kaduk wrote: On Mon, 2 Jul 2012, David Wolfskill wrote: Huh??!? At least as far back as 06 Jan (based on the mtime of /etc/src.conf), I had set up src.conf to read: PORTS_MODULES=x11/nvidia-driver Don't do

Re: magic crashes - mostly solved but

2012-06-27 Thread Benjamin Kaduk
On Wed, 27 Jun 2012, Wojciech Puchar wrote: the reason was most probably of of date vbox and fuse kernel modules. after making everything in sync system boots successfully with WITNESS, INVARIANT etc. options enabled. STILL - mostly at booting i'm getting few messages. first comes when

Re: namecache documentation and locking

2012-06-03 Thread Benjamin Kaduk
On Sun, 3 Jun 2012, Konstantin Belousov wrote: On Sat, Jun 02, 2012 at 11:34:21PM +, Benjamin Kaduk wrote: Hi all, This caused me to take a look at the namecache functions and find not very much documentation of their use. I see that NetBSD has had a namecache.9 man page since 2001 [2

namecache documentation and locking

2012-06-02 Thread Benjamin Kaduk
Hi all, My colleague recently pointed out to me that I was calling vgone() when I probably wanted to be using cache_purge() (as is done for implementations of this OS-specific function in other BSDs [1]). This caused me to take a look at the namecache functions and find not very much

Re: BUG: REL 9.0 - MD malloc of custom sector size

2012-03-20 Thread Benjamin Kaduk
On Tue, 20 Mar 2012, rank1see...@gmail.com wrote: - Original Message - From: RW rwmailli...@googlemail.com To: freebsd-hackers@freebsd.org Date: Sun, 18 Mar 2012 13:41:56 + Subject: Re: BUG: REL 9.0 - MD malloc of custom sector size On Sun, 18 Mar 2012 14:01:39 +0100

Re: Kerberos and FreeBSD

2012-02-16 Thread Benjamin Kaduk
On Wed, 15 Feb 2012, Ansar Mohammed wrote: Going back on this topic, it seems that there are alot of things that are being shipped with FreeBSD that I am not sure we need in the base distribution. Does anyone use portalfs? Maybe not ... per http://wiki.freebsd.org/NONMPSAFE_DEORBIT_VFS it is

Re: Kerberos and FreeBSD

2012-02-08 Thread Benjamin Kaduk
On Wed, 8 Feb 2012, Ansar Mohammed wrote: Hello All, Is the port of Heimdal on FreeBSD being maintained? The version that ships with 9.0 seems a bit old. # /usr/libexec/kdc-v kdc (Heimdal 1.1.0) Copyright 1995-2008 Kungliga Tekniska Högskolan Send bug-reports to heimdal-b...@h5l.org My

Re: easy way to determine if a stream or fd is seekable

2011-11-21 Thread Benjamin Kaduk
On Mon, 21 Nov 2011, Alexander Best wrote: On Mon Nov 21 11, Alexander Best wrote: On Mon Nov 21 11, Benjamin Kaduk wrote: On Mon, 21 Nov 2011, per...@pluto.rain.com wrote: Alexander Best arun...@freebsd.org wrote: here's a revised patch. ... +.Sh CAVEATS +If the +.Fn lseek +system call

Re: easy way to determine if a stream or fd is seekable

2011-11-20 Thread Benjamin Kaduk
On Mon, 21 Nov 2011, per...@pluto.rain.com wrote: Alexander Best arun...@freebsd.org wrote: here's a revised patch. ... +.Sh CAVEATS +If the +.Fn lseek +system call is operating on a device, which is incapable of seeking, +it will request the seek operation and complete successfully. I

Re: rtadvd - WARNS and a missing break?

2011-10-15 Thread Benjamin Kaduk
On Sat, 15 Oct 2011, Eitan Adler wrote: I was playing around with WARNS on some programs and noticed that usr.sbin/rtadvd builds with WARNS=3 with both clang and gcc (and WARNS=6 with gcc). Perhaps the following could be committed ? WARNS changes should be verified by make universe; was that

Re: [PATCH] Remove -nostdinc in aicasm

2011-07-02 Thread Benjamin Kaduk
On Sat, 2 Jul 2011, Robert Millan wrote: The userland aicasm utility in sys/dev/aic7xxx/aicasm/Makefile is being built with -nostdinc -I/usr/include options. Unfortunately this breaks building aicasm on systems using the upstream version of GCC, where -nostdinc disables more search directories

Re: [PATCH] __FreeBSD_kernel__

2011-07-02 Thread Benjamin Kaduk
On Sat, 2 Jul 2011, Robert Millan wrote: My request is that FreeBSD also defines __FreeBSD_kernel__. If this happens, life would be made a bit easier on both sides, as it'd be % Index: contrib/gcc/config/freebsd-spec.h % === %

Re: porting third-party build system to bsd.kmod.mk

2011-06-21 Thread Benjamin Kaduk
AM, Benjamin Kaduk wrote: After getting a few pointers from jhb at BSDCan on what a bsd.kmod.mk-using Makefile should look like, I have been trying my hand at porting the OpenAFS kernel module build system to use it. (The main thing this gets us is not having to manually track version

Re: Opening files from within geom filters

2011-06-04 Thread Benjamin Kaduk
On Sat, 4 Jun 2011, Ali Mashtizadeh wrote: Hi Folks, I'm working on a small geom filter where I need to open a file with vn_open_cred, but this causes an assert because of a null pointer because g_run_event proc structure has null pointer for the current working directory. Hi Ali, In

porting third-party build system to bsd.kmod.mk

2011-05-21 Thread Benjamin Kaduk
After getting a few pointers from jhb at BSDCan on what a bsd.kmod.mk-using Makefile should look like, I have been trying my hand at porting the OpenAFS kernel module build system to use it. (The main thing this gets us is not having to manually track version- and architecture-dependent

Re: Freebsd on the sun x4440

2011-05-17 Thread Benjamin Kaduk
On Tue, 17 May 2011, krad wrote: On 17 May 2012 01:34, Mark Saad nones...@longcount.org wrote: All I am setting up 3 sun x4440 with freebsd 7.3 amd64 . The severs have 4x 4-core opterons and 128G of ram each . Once the servers boot they are a good fit for what we are doing and preform well .

Re: [ECFT] pkgng 0.1-alpha1: a replacement for pkg_install

2011-03-28 Thread Benjamin Kaduk
On Mon, 28 Mar 2011, Julien Laffaye wrote: On Mon, Mar 28, 2011 at 6:59 PM, Garrett Cooper gcoo...@freebsd.org wrote: On Mon, Mar 28, 2011 at 10:44 AM, Andriy Gapon a...@freebsd.org wrote: II. Package signing. That would be really nice. Right know we only planned to sign the repo

Re: [PATCH] Fix 'implicit declaration' warning and update vgone(9)

2010-10-27 Thread Benjamin Kaduk
On Wed, 27 Oct 2010, John Baldwin wrote: On Wednesday, October 27, 2010 7:33:13 am Sergey Kandaurov wrote: On 27 October 2010 10:23, Lars Hartmann l...@chaotika.org wrote: The vgonel function isnt declarated in any header, the vgonel prototype in vgone(9) isnt correct - found by Ben Kaduk

Re: [PATCH] Fix 'implicit declaration' warning and update vgone(9)

2010-10-27 Thread Benjamin Kaduk
On Wed, 27 Oct 2010, Kostik Belousov wrote: On Wed, Oct 27, 2010 at 10:59:56AM -0400, Benjamin Kaduk wrote: [1] The old (racy) function is osi_TryEvictVCache, here: http://git.openafs.org/?p=openafs.git;a=blob;f=src/afs/FBSD/osi_vcache.c;h=c2060c74f0155a610d2ea94f3c7f508e8ca4373a;hb=HEAD

Re: Timestamps in static libraries

2010-10-05 Thread Benjamin Kaduk
On Tue, 5 Oct 2010, Joerg Sonnenberger wrote: On Tue, Oct 05, 2010 at 03:28:36PM +0200, Erik Cederstrand wrote: I'm wondering if this is necessary, or if this can possibly be turned of with a knob somewhere. Newer binutils got a flag after a discussion about this and related issues in

Re: ar(1) format_decimal failure is fatal?

2010-09-17 Thread Benjamin Kaduk
On Sun, 29 Aug 2010, Jilles Tjoelker wrote: On Sat, Aug 28, 2010 at 07:08:34PM -0400, Benjamin Kaduk wrote: [...] building static egacy library ar: fatal: Numeric user ID too large *** Error code 70 This error appears to be coming from lib/libarchive/archive_write_set_format_ar.c , which

Re: Questions about mutex implementation in kern/kern_mutex.c

2010-09-16 Thread Benjamin Kaduk
On Thu, 16 Sep 2010, John Baldwin wrote: On Thursday, September 16, 2010 1:33:07 pm Andrey Simonenko wrote: The mtx_owned(9) macro uses this property, mtx_owned() does not use anything special to compare the value of m-mtx_lock (volatile) with current thread pointer, all other functions that

ar(1) format_decimal failure is fatal?

2010-08-28 Thread Benjamin Kaduk
Hi all, I've been working on fixing the OpenAFS network filesystem client for FreeBSD, and it's at the point where I want to use the lazy man's filesystem stress test: buildworld. However, quite early in the process, I get the following error: stage 1.1: legacy release compatibility shims

Re: Moving from FreeBSD7 to FreeBSD8 (cdev, minor, dev2unit)

2010-05-07 Thread Benjamin Kaduk
On Fri, 7 May 2010, Dmitry Krivenok wrote: It looks like dev2unit is exactly what I need to fix compilation issue. I changed the code of all modules as follows: - int dev_num = minor(dev); + int dev_num = minor(dev2unit(dev)); and now it compiles and works well. Is this the proper way of

add missing content to locking.9 ?

2009-07-19 Thread Benjamin Kaduk
Hi all, In trying to track down an unrelated issue, I happened to note that locking.9 needed a bit of help. They easy changes went into docs/136918, but I am less confident about my reading of the posix semaphore code. Would anyone care to comment on the following?: --- locking.9 2009-07-20