Re: rwlock(9) upgrade

2013-09-30 Thread Matthew Fleming
is not a good operation, since there's no way to know ahead of time if it can be done without a lock release. So code is better off explicitly unlocking the shared/read-mode lock and explicitly blocking for an exclusive/write lock. Thanks, matthew

Re: Trying to use /bin/sh

2013-09-28 Thread Matthew D. Fuller
invocations anywhere. -- Matthew Fuller (MF4839) | fulle...@over-yonder.net Systems/Network Administrator | http://www.over-yonder.net/~fullermd/ On the Internet, nobody can hear you scream. ___ freebsd-hackers@freebsd.org mailing list

Re: Discussing ideas or wish list

2013-08-08 Thread Matthew Seaman
necessity of completely redesigning and rebuilding the pkgng package building system has added various delays too. Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. PGP: http://www.infracaninophile.co.uk/pgpkey JID: matt...@infracaninophile.co.uk signature.asc Description: OpenPGP

Re: tape (sa0) on sparc64 ?

2013-05-17 Thread Matthew Jacob
On 5/16/2013 1:51 PM, Zaphod Beeblebrox wrote: ... [1:25:325]root@run:/home/foo dd if=/dev/sa0 of=tape5 hmm. try tcopy. Can we see any complaints from /var/log/messages? (this would be better discussed on freebsd-scsi) ___

Re: GSOC 2013 project Kernel Size Reduction for Embedded System

2013-04-10 Thread Matthew Jacob
On 4/9/2013 11:53 PM, Daniel Braniss wrote: this host can run x11 apps! so 'Huge' is a relative matter, my first PDP11/45 has 64K :-) danny Bah. Real old farts ran munix on a 32k PDP 11/03- shell and apps in the low 16k and the kernel in the upper. Or was it the other way around? At Tektronix,

Re: memory allocation in spinlock context

2013-03-01 Thread Matthew Jacob
On 3/1/2013 5:50 AM, Andriy Gapon wrote: I am trying to understand if it is possible to allow memory allocations (M_NOWAIT, of course) in a spinlock context. There are mechanisms to do just this- essentially by creating private pools that are organized in a way to allow for spinlock (and thus

Re: NMI watchdog functionality on Freebsd

2013-01-23 Thread Matthew Jacob
On 1/23/2013 7:25 AM, John Baldwin wrote: On Tuesday, January 22, 2013 5:40:55 pm Sushanth Rai wrote: Hi, Does freebsd have some functionality similar to Linux's NMI watchdog ? I'm aware of ichwd driver, but that depends to WDT to be available in the hardware. Even when it is available, BIOS

Re: ZFS regimen: scrub, scrub, scrub and scrub again.

2013-01-22 Thread Matthew Ahrens
On Mon, Jan 21, 2013 at 11:36 PM, Peter Jeremy pe...@rulingia.com wrote: On 2013-Jan-21 12:12:45 +0100, Wojciech Puchar woj...@wojtek.tensor.gdynia.pl wrote: While RAID-Z is already a king of bad performance, I don't believe RAID-Z is any worse than RAID5. Do you have any actual measurements

Re: IBM blade server abysmal disk write performances

2013-01-18 Thread Matthew Jacob
This is all turning into a bikeshed discussion. As far as I can tell, the basic original question was why a *SAS* (not a SATA) drive was not performing as well as expected based upon experiences with Linux. I still don't know whether reads or writes were being used for dd. This morning, I ran

Re: IBM blade server abysmal disk write performances

2013-01-18 Thread Matthew Jacob
mpt0: LSILogic SAS/SATA Adapter port 0x1000-0x10ff mem 0x9991-0x99913fff,0x9990-0x9990 irq 28 at device 0.0 on pci11 mpt0: MPI Version=1.5.20.0 mpt0: Capabilities: ( RAID-0 RAID-1E RAID-1 ) mpt0: 0 Active Volumes (2 Max) mpt0: 0 Hidden Drive Members (14 Max) Ah. Historically IBM

Re: IBM blade server abysmal disk write performances

2013-01-17 Thread Matthew Jacob
On 1/17/2013 8:03 PM, Dieter BSD wrote: I think it is time to ask the driver wizards why TCQ isn't working, so I'm cc-ing the authors listed on the mpt man page. It is the MPT firmware that implements SATL, but there are probably tweaks that the FreeBSD driver doesn't do that the Linux

Re: IBM blade server abysmal disk write performances

2013-01-15 Thread Matthew D. Fuller
sell a platter drive that can pull that off. Presumably this is an instance of Linux only has block devices for hard drives, not character devices, so you're getting your writes all buffered over there. Which is to say, nothing's wrong, you're just not measuring the same thing. -- Matthew Fuller

Re: IBM blade server abysmal disk write performances

2013-01-15 Thread Matthew D. Fuller
Dur... 10k ops in 2 seconds is 300k per second. RPM I mean... -- Matthew Fuller (MF4839) | fulle...@over-yonder.net Systems/Network Administrator | http://www.over-yonder.net/~fullermd/ On the Internet, nobody can hear you scream

Re: IBM blade server abysmal disk write performances

2013-01-15 Thread Matthew D. Fuller
with platter drives and remotely modern hardware unless it's under serious load otherwise) -- Matthew Fuller (MF4839) | fulle...@over-yonder.net Systems/Network Administrator | http://www.over-yonder.net/~fullermd/ On the Internet, nobody can hear you scream

Re: Vice versa of 'pkg_info -W'

2013-01-02 Thread Matthew Seaman
out of action as a consequence of the security incident, and the whole package building system is being revised, I don't know if that's still on the cards or likely to be implemented any time soon. Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. PGP: http

Re: [maybe spam] Re: FreeBSD 1.x Binaries Work Except under Chroot

2012-08-15 Thread Matthew Jacob
On 08/15/12 11:54, Poul-Henning Kamp wrote: In messageCAJ-Vmo=yzcz_jdhtvq3kyhgxdnutvzqzpp+sdsz+zwe7cym...@mail.gmail.com , Adrian Chadd writes: Holy. Crap. 17 seconds? Can we please go back to having it take this long? please? 386BSD was even better, and I have a machine that boots it in less

Re: On cooperative work [Was: Re: newbus' ivar's limitation..]

2012-08-01 Thread Matthew Story
On Wed, Aug 1, 2012 at 1:05 PM, Arnaud Lacombe lacom...@gmail.com wrote: Hi, On Wed, Aug 1, 2012 at 12:40 PM, Attilio Rao atti...@freebsd.org wrote: On Wed, Aug 1, 2012 at 5:32 PM, Arnaud Lacombe lacom...@gmail.com wrote: Hi, On Tue, Jul 31, 2012 at 4:14 PM, Attilio Rao

Re: Gentoo Solution to Nanny Terminal Problem

2012-07-05 Thread Matthew Seaman
? rather than what package did this program come from? Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate JID: matt

Re: Pull in upstream before 9.1 code freeze?

2012-07-05 Thread Matthew Seaman
trusted recursive resolver does the DNSSEC validation for you. AFAIK, no operating system has a stub resolver the capability to validate DNSSEC. But that would be a really excellent enhancement if it was feasible. Cheers, Matthew PS. Too paranoid? That's impossible. -- Dr

Re: Better error messages for command not found (was Re: Pull in upstream before 9.1 code freeze?)

2012-07-05 Thread Matthew Seaman
times the size of the existing INDEX and take correspondingly longer to generate. Also, you'ld probably want it as a sqlite database or BDB file for performance, rather than plain text. Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard

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

2012-06-21 Thread Matthew Seaman
dependencies are pretty much always done in this form nowadays in order to avoid having to use ${SITE_PERL} in dependency lines.) Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. PGP: http://www.infracaninophile.co.uk/pgpkey signature.asc Description: OpenPGP digital

Re: diagonising a overheating problem

2012-05-14 Thread Matthew D. Fuller
supported (and you're probably just running VESA anyway), the discrete is dead weight, and if it doesn't turn itself flat off (I don't know if it does or not), it may be contributing to heat problems. -- Matthew Fuller (MF4839) | fulle...@over-yonder.net Systems/Network Administrator

Re: Missing sysctl options for isp driver

2012-05-02 Thread Matthew Jacob
On 5/2/2012 1:39 PM, Trent Nelson wrote: [Resending from non-broken MTA.] Hi Matt, isp(4) mentions the following sysctl options: dev.isp.N.loop_down_limit This value says how long to wait in seconds after loop has gone down before giving up and expiring

Re: Status of BSD Diff replacement?

2012-04-22 Thread Matthew Story
, Matthew Story matthewst...@gmail.com wrote: On Tue, Apr 17, 2012 at 10:01 PM, Ben Fiedler bfied...@asu.edu wrote: Gabor, I made a branch off of your perforce diff code in my work on the diff tool: From my understanding you started those modifications from OpenBSD's diff in 2008, so Matthew's

Status of BSD Diff replacement?

2012-04-17 Thread Matthew Story
Just wondering what the current status is on a BSD diff replacement. The IdeasPage suggests that a goodly amount of work was done on this for GSoC 2010 (http://wiki.freebsd.org/IdeasPage#BSD-licensed_Text-Processing_Tools), but the GPLinBase page says it's unowned and suggests replacement with

Re: Status of BSD Diff replacement?

2012-04-17 Thread Matthew Story
for that link. Though there's only a few left, they are not trivial by any means. -Ben On Tue, Apr 17, 2012 at 4:48 PM, Gabor Kovesdan ga...@freebsd.org wrote: On 2012.04.17. 23:03, Matthew Story wrote: Just wondering what the current status is on a BSD diff replacement. The IdeasPage

FTSENT: name and path on `/' versus name and path on `*/'

2012-03-15 Thread Matthew Story
Found a curious incongruent behavior in fts(3), wondering if there is some reason for this, or if it's just a bug. If you include the path `/' the FTSENT at depth 0 that is returned for the path has both fts_path = / and fts_name = /, compared to other entries, like /var which has fts_path = /

Re: xargs short-circuit

2012-02-18 Thread Matthew Story
On Tue, Feb 14, 2012 at 3:25 PM, Matthew Story matthewst...@gmail.comwrote: On Tue, Feb 14, 2012 at 2:37 PM, Matthew Story matthewst...@gmail.comwrote: On Tue, Feb 14, 2012 at 2:35 PM, Jilles Tjoelker jil...@stack.nl wrote: On Tue, Feb 14, 2012 at 01:34:49PM -0500, Matthew Story wrote

xargs short-circuit

2012-02-14 Thread Matthew Story
After reading the man-page, and browsing around the internet for a minute, I was just wondering if there is an option in (any) xargs to short-circuit on first failure of [utility [arguments]]. e.g. $ jot - 1 10 | xargs -e -n1 sh -c 'echo $*; echo exit 1' worker || echo $? 1 1 such that any

Re: xargs short-circuit

2012-02-14 Thread Matthew Story
On Tue, Feb 14, 2012 at 1:34 PM, Matthew Story matthewst...@gmail.comwrote: After reading the man-page, and browsing around the internet for a minute, I was just wondering if there is an option in (any) xargs to short-circuit on first failure of [utility [arguments]]. e.g. $ jot - 1 10

Re: xargs short-circuit

2012-02-14 Thread Matthew Story
On Tue, Feb 14, 2012 at 2:05 PM, Devin Teske devin.te...@fisglobal.comwrote: -Original Message- From: owner-freebsd-hack...@freebsd.org [mailto:owner-freebsd- hack...@freebsd.org] On Behalf Of Matthew Story Sent: Tuesday, February 14, 2012 10:35 AM To: freebsd-hackers

Re: xargs short-circuit

2012-02-14 Thread Matthew Story
On Tue, Feb 14, 2012 at 2:35 PM, Jilles Tjoelker jil...@stack.nl wrote: On Tue, Feb 14, 2012 at 01:34:49PM -0500, Matthew Story wrote: After reading the man-page, and browsing around the internet for a minute, I was just wondering if there is an option in (any) xargs to short-circuit

Re: xargs short-circuit

2012-02-14 Thread Matthew Story
On Tue, Feb 14, 2012 at 2:37 PM, Matthew Story matthewst...@gmail.comwrote: On Tue, Feb 14, 2012 at 2:35 PM, Jilles Tjoelker jil...@stack.nl wrote: On Tue, Feb 14, 2012 at 01:34:49PM -0500, Matthew Story wrote: After reading the man-page, and browsing around the internet for a minute, I

Re: intent of tab-completion in /bin/sh in 9.0

2012-01-19 Thread Matthew Story
forgot to reply-to list ... On Thu, Jan 19, 2012 at 8:23 AM, Matthew Story matthewst...@gmail.comwrote: On Wed, Jan 18, 2012 at 10:12 PM, Jason Hellenthal jh...@dataix.netwrote: [...snip] It would be nice if the completion made it down to 8.X. Agreed, on my 9.0 install, I have actually

intent of tab-completion in /bin/sh in 9.0

2012-01-18 Thread Matthew Story
Just noticed that tab-completion in /bin/sh has been added in 9.0 (verified that it is not there in 8.0, dunno if it's there in 8.2, could probably go digging to figure it out). In addition to the command history via up:down (which is present in 8.0) FreeBSD sh is now actually a pretty usable

Re: FreeBSD has serious problems with focus, longevity, and lifecycle

2012-01-18 Thread Matthew D. Fuller
that all have _very_ seriously side effects, make a lot of things much worse, and would require a lot of _very_ careful rebalancing of everything else to avoid a significant overall lose. -- Matthew Fuller (MF4839) | fulle...@over-yonder.net Systems/Network Administrator | http://www.over

Re: intent of tab-completion in /bin/sh in 9.0

2012-01-18 Thread Matthew Story
On Wed, Jan 18, 2012 at 5:16 PM, Jilles Tjoelker jil...@stack.nl wrote: [...snip] On the contrary, our /bin/sh is minimalistic compared to many other shells used in that role, like bash, pdksh, mksh and ksh93. It (the 9.0 version) has only slightly more features than dash or NetBSD's sh, and

Re: FreeBSD has serious problems with focus, longevity, and lifecycle

2012-01-17 Thread Matthew D. Fuller
-RELEASE that's scheduled to be done (after having already slipped a month) at the beginning of Sept 2011? At some point (well before those add'l patches you're talking about, IMO) you have to STOP and release the damn thing already. -- Matthew Fuller (MF4839) | fulle...@over-yonder.net

Re: FreeBSD has serious problems with focus, longevity, and lifecycle

2012-01-17 Thread Matthew D. Fuller
that be improved to make it easier to have more releases, eg by not bundling ports packages? That's at LEAST a double edged sword. The moment you do that, you'll have a giant groundswell of complaining about how the quality of releases has gone down. -- Matthew Fuller (MF4839) | fulle...@over

Re: FreeBSD has serious problems with focus, longevity, and lifecycle

2012-01-17 Thread Matthew D. Fuller
using releases and binary packages, vs. source and port builds. That would probably be easier to get numbers on. -- Matthew Fuller (MF4839) | fulle...@over-yonder.net Systems/Network Administrator | http://www.over-yonder.net/~fullermd/ On the Internet, nobody can hear you scream

Re: FreeBSD has serious problems with focus, longevity, and lifecycle

2012-01-17 Thread Matthew D. Fuller
submit a steady trickle of PR's there. Almost none of them take more than a week from submission to application and closing, and it's fairly common for it to be less than 24 hours. I know the ports team carries a huge load with such things, but they're carrying it well.) -- Matthew Fuller

Re: FreeBSD has serious problems with focus, longevity, and lifecycle

2012-01-17 Thread Matthew D. Fuller
the barrier. -- Matthew Fuller (MF4839) | fulle...@over-yonder.net Systems/Network Administrator | http://www.over-yonder.net/~fullermd/ On the Internet, nobody can hear you scream. ___ freebsd-hackers@freebsd.org mailing list http

Re: * Re: FreeBSD has serious problems with focus, longevity, and lifecycle

2012-01-17 Thread Matthew D. Fuller
, incompetence, or the unalterable ways of the universe, 5 spent something approaching forever not ready to release, and depending on who you ask, kept that status until it became known as 6.0. And that, not 4 is awesome, is the principal reason 4 kept chugging so long. -- Matthew Fuller (MF4839

Re: [ANN] host-setup 4.0 released

2012-01-03 Thread Matthew Seaman
, and RFC 4193 which roughly is the IPv6 equivalent to RFC 1918, but somewhat more complicated. You might find https://www.sixxs.net/tools/grh/ula/ relevant too, although actually using that as a registry is pretty pointless. Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil

Re: [ANN] host-setup 4.0 released

2012-01-03 Thread Matthew Seaman
, Matthew -- Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate JID: matt...@infracaninophile.co.uk Kent, CT11 9PW signature.asc Description

Re: [ANN] host-setup 4.0 released

2012-01-03 Thread Matthew Seaman
On 03/01/2012 18:11, Devin Teske wrote: -Original Message- From: owner-freebsd-hack...@freebsd.org [mailto:owner-freebsd- hack...@freebsd.org] On Behalf Of Matthew Seaman Sent: Tuesday, January 03, 2012 10:07 AM To: freebsd-hackers@freebsd.org Subject: Re: [ANN] host-setup 4.0

Re: determining bus_dma memory usage by driver

2011-10-24 Thread Matthew Jacob
On 10/24/2011 5:21 PM, Chuck Tuffli wrote: Is there an easy way to determine the amount of bus_dma memory allocated by a driver? Something similar to vmstat -m bus_dma memory allocations are platform specific. Looking at least amd64 you can see that the memory is carved out M_DEVBUF.

Re: Clustering server in freebsd

2011-10-10 Thread Matthew Jacob
On Mon, 10 Oct 2011, elman wrote: Dear all I have plan to cluster server with freebsd 8.2 for mailserver. But I'm confusing with the software for clustering. Do you have a reference for me, or do you have blog and I can see your blog for reference to create clustering with freebsd. You

Re: Does anyone use nscd?

2011-10-05 Thread Matthew Seaman
afraid. 5) phpldapadmin is a pretty good tool for populating a directory with test data. Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey

Re: Phenom II 975 BE shows 0 celsius

2011-08-01 Thread Matthew D. Fuller
and 940 that were AM2-only. -- Matthew Fuller (MF4839) | fulle...@over-yonder.net Systems/Network Administrator | http://www.over-yonder.net/~fullermd/ On the Internet, nobody can hear you scream. ___ freebsd-hackers@freebsd.org mailing

Re: kexec or similar for FreeBSD

2011-06-16 Thread Matthew Jacob
Hi Russell! Yes, I think it is. Solaris supports something like this and the idea here is that with complicated I/O subsystems it's too hard to get them and locks cleaned up in a crash, but you want to get all the forensics you can, so doing a jump to a preloaded kernel that has a small and

Re: FreeBSD I/OAT (QuickData now?) driver

2011-06-06 Thread Matthew Jacob
At Panasas we were looking at using that for some background parity calculation. ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to

Re: FreeBSD I/OAT (QuickData now?) driver

2011-06-06 Thread Matthew Jacob
If there's really interest then perhaps I should get something together that can actually be checked in?? Yes? Yes please. Since Sandybridge interest has been growing particularly where systems are being put together with bridges (non-transparent) with a notion that IO/AT could be used to

Re: Getting vnode + credentials of a file from a struct mount and UFS inode #

2011-04-13 Thread Matthew Fleming
and I could VTOI() to get this information from the inode.. but I'm having a brainfreeze. VFS_VGET(mp, ino, flags, vp) is probably what you want. Cheers, matthew ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo

Re: Getting vnode + credentials of a file from a struct mount and UFS inode #

2011-04-13 Thread Matthew Fleming
On Wed, Apr 13, 2011 at 2:18 PM, Jonathan Stuart jstu...@adaranet.com wrote: Hi Matthew, Thanks, I'll give it a shot.. for some reason f_cred off the vnode is returning all zeros for uid/gid, and pulling the VTOI does the same thing (using getvnode()).. do these not get initialized

Re: Getting vnode + credentials of a file from a struct mount and UFS inode #

2011-04-13 Thread Matthew Fleming
. I haven't looked at this field before, but it looks that f_cred is set on falloc() to the cred of the thread creating the struct file (the thread that called open or socket or pipe or kqueue, etc.). Are you running this as root/wheel? Cheers, matthew -Original Message- From: Matthew

Re: Getting vnode + credentials of a file from a struct mount and UFS inode #

2011-04-13 Thread Matthew Fleming
() or struct file or anything else. There are other ways to get a vnode *, but from an ino_t that's the easiest I know of. Cheers, matthew -Original Message- From: Matthew Fleming [mailto:mdf...@gmail.com] Sent: Wednesday, April 13, 2011 3:20 PM To: Jonathan Stuart Cc: freebsd-hackers

Re: ifconfig output: ipv4 netmask format

2011-04-08 Thread Matthew Seaman
:8b0:151:1:d2f:23d1:314c:5e2e prefixlen 64 inet6 2001:8b0:151:1:57f9:9484:e8b0:12d1 prefixlen 128 IPv6 doesn't deal in netmasks per-se: just in the length of the network prefix. (64 is typical. 48 also fairly common.) Cheers -- Dr Matthew J Seaman MA, D.Phil. 7

Re: (free)(open)IPMI tools in base

2011-03-30 Thread Matthew Jacob
I don't think that this is a good idea for a number of reasons. IPMI is not nearly as prevalent as one might think it is, it is not a true standard (Intel only), and there are a variety of good toolsets that are very easy to install. Finally, users of IPMI are sophisticated enough to install

DMA controller on Northbridge?

2011-03-22 Thread Matthew Fleming
dmesg; I can also run pciconf commands, etc., to help out with figuring out what I have. Thanks, matthew Copyright (c) 2001-2011 Isilon Systems LLC. All rights reserved. Copyright (c) 1992-2011 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994

Re: DMA controller on Northbridge?

2011-03-22 Thread Matthew Fleming
On Tue, Mar 22, 2011 at 11:12 AM, Kostik Belousov kostik...@gmail.com wrote: On Tue, Mar 22, 2011 at 10:11:04AM -0700, Matthew Fleming wrote: How can I tell if the Northbridge on a machine has a built-in DMA controller?  And if it does, what device would I use to control it? I ask because I'm

Re: Puzzled about VFS sysctl OIDs -- signed vs. unsigned

2011-03-03 Thread Matthew Fleming
and the value wraps (at least, I presume that's what happened in this case?) Thanks, matthew ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to freebsd-hackers-unsubscr

Re: Puzzled about VFS sysctl OIDs -- signed vs. unsigned

2011-03-03 Thread Matthew Fleming
On Thu, Mar 3, 2011 at 2:03 PM, Brandon Gooch jamesbrandongo...@gmail.com wrote: On Thu, Mar 3, 2011 at 3:34 PM, Matthew Fleming mdf...@gmail.com wrote: On Thu, Mar 3, 2011 at 1:03 PM, Brandon Gooch jamesbrandongo...@gmail.com wrote: On Thu, Mar 3, 2011 at 11:49 AM, David Wolfskill da

Re: quotas an essential feature? (was: svn commit: r218953 - stable/8/usr.sbin/sysinstall)

2011-02-25 Thread Matthew Jacob
Actually, GENERIC is there to provide the most features for the most uses. A large percentage of users don't config new kernels, and FreeBSD has not elected the approach Digital Unix (aka DUH) took about installs which required a reconfig as one of the last steps of an installation. I can't

Re: mtx_init/lock_init and uninitialized struct mtx

2011-02-24 Thread Matthew Fleming
allow for detecting if the memory for a lock was released but the lock wasn't destroyed. Sadly, I have just enough time to propose this and not enough to write a patch at the moment. Thanks, matthew static int foo() {   struct mtx m;  // Uninitialized auto variable, so it's value

Re: [RELEASE] host-setup(1): a dialog(1)-based utility for configuring FreeBSD

2011-02-12 Thread Matthew Seaman
netmask length return -1 ;; esac return 0 } Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate JID: matt

Re: Scheduler question

2011-02-10 Thread Matthew Dillon
It sounds like there are at least two issues involved. The first could be a buffer cache starvation issue due to the load on the filesystem from the tar. If the usb program is doing any filesystem operation at all, even at low bandwidths, it could be hitting blockages due to the

Divide-by-zero in loader

2011-01-28 Thread Matthew Fleming
this incorrect geometry. But meanwhile, this patch fixes the issue, and I wonder if it would be a useful safety-belt for other devices where an incorrect geometry can be seen? Thanks, matthew Index: i386/libi386/biosdisk.c === --- i386/libi386

Re: Divide-by-zero in loader

2011-01-28 Thread Matthew Fleming
On Fri, Jan 28, 2011 at 11:00 AM, John Baldwin j...@freebsd.org wrote: On Friday, January 28, 2011 12:41:08 pm Matthew Fleming wrote: I spent a few days chasing down a bug and I'm wondering if a loader change would be appropriate. So we have these new front-panel LCDs, and like everything

Re: Divide-by-zero in loader

2011-01-28 Thread Matthew Fleming
On Fri, Jan 28, 2011 at 11:23 AM, John Baldwin j...@freebsd.org wrote: On Friday, January 28, 2011 2:14:45 pm Matthew Fleming wrote: On Fri, Jan 28, 2011 at 11:00 AM, John Baldwin j...@freebsd.org wrote: On Friday, January 28, 2011 12:41:08 pm Matthew Fleming wrote: I spent a few days

Re: NFS: file too large

2011-01-18 Thread Matthew Dillon
Matthew Dillon dil...@backplane.com ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to freebsd-hackers

Re: Question about sysctl-ing coretemp module values

2011-01-15 Thread Matthew Fleming
comes from. So the sysctl returns an int with some value and then printf does the conversion. The coretemp sysctl uses the unconventional IK format, meaning that it's a signed int that should be interpreted as Kelvin. Cheers, matthew ___ freebsd

Re: NFS: file too large

2011-01-13 Thread Matthew Dillon
by the buffer cache. That limit is completely irrelevant now and should probably be set to 0x7FFFLLU (since seek offsets are signed). -Matt Matthew Dillon dil

Re: MONITOR/MWAIT question

2011-01-08 Thread Matthew Dillon
:On Sat, Dec 18, 2010 at 02:24:34PM -0800, Matthew Dillon wrote: : Does anyone know if an IRET cancels/triggers a MONITOR event? : :AMD's Architecture Programmer's Manual explicitly contains: : :Events that cause an exit from the monitor event pending state include: :... :- Any far control

MONITOR/MWAIT question

2010-12-18 Thread Matthew Dillon
Does anyone know if an IRET cancels/triggers a MONITOR event? Here's the problem: (1) main line kernel code is executing a MONITOR/MWAIT sequence. It executes its MONITOR but has not yet gotten to the MWAIT. (2) An interrupt occurs inbetween the MONITOR and the MWAIT.

Re: getting a list of open files versus PID nos.?

2010-12-08 Thread Matthew Fleming
application versus count of open files list, if I could start with that files versus pids thing. This is what lsof is for. I believe there's one in ports, but I have never tried it. Cheers, matthew ___ freebsd-hackers@freebsd.org mailing list http

Re: getting a list of open files versus PID nos.?

2010-12-08 Thread Matthew Fleming
On Wed, Dec 8, 2010 at 3:01 PM, Bruce Cran br...@cran.org.uk wrote: On Wed, 8 Dec 2010 14:54:57 -0800 Matthew Fleming mdf...@gmail.com wrote: This is what lsof is for.  I believe there's one in ports, but I have never tried it. Is there any advantage to using lsof instead of fstat(1) (fstat

Re: Question about process rlimits

2010-12-02 Thread Matthew Fleming
and add the 'D' option to force malloc to use sbrk(2). I haven't tried this one. 2) limit the total virtual memory allowed by a process, RLIMIT_VMEM. This is what we used when migrating from FreeBSD 6 to 7. Cheers, matthew ___ freebsd-hackers@freebsd.org

Re: find(1): Is this a bug or not?

2010-11-29 Thread Matthew Jacob
can you report out the actual command line you're using and what release it's from? On 11/29/2010 12:08 PM, Denise H. G. wrote: Hi, I found that, while searching for empty directories, find(1) will not continue if it encounters a dir it can't enter (e.g. no privilege). I don't know if it's so

Re: Slow disk access while rsync - what should I tune?

2010-10-31 Thread Matthew Dillon
:cronfy cro...@gmail.com wrote: : : And also, maybe there are other ways to create incremental backups : instead of using rsync/hardlinks? : :Yes. Use dump(8) -- that's what it's for. It reads the inodes, :directories, and files directly from the disk device, thereby :eliminating stat()

Re: Slow disk access while rsync - what should I tune?

2010-10-31 Thread Matthew Dillon
Matthew Dillon dil...@backplane.com ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to freebsd-hackers-unsubscr...@freebsd.org

Re: Slow disk access while rsync - what should I tune?

2010-10-30 Thread Matthew Dillon
. It is possible for files to be caught mid-change but also fairly easy to detect the case if it winds up being a problem. And, of course, more sophisticated methodologies can be built on top. -Matt Matthew Dillon

Re: Slow disk access while rsync - what should I tune?

2010-10-24 Thread Matthew Seaman
. Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate JID: matt...@infracaninophile.co.uk Kent, CT11 9PW

Re: SCSI_DELAY cleanup

2010-10-19 Thread Matthew Jacob
the default at 2000ms? On 10/19/2010 3:34 AM, Alexander Best wrote: On Mon Oct 18 10, Matthew Jacob wrote: What problem are you solving by this change? code cleanup. the scsi delay value currently defaults to 2000ms. however that doesn't make sense, since on almost all platforms it gets set

Re: SCSI_DELAY cleanup

2010-10-19 Thread Matthew Jacob
I'd go for the gusto in -current, but it's ok to be conservative too. On Tue Oct 19 10, Matthew Jacob wrote: It would be an effective behavioral change for those of us who remove that line. Personally, I think 5 seconds is too long- even 2 seconds is more than adequate even for moderately

Re: SCSI_DELAY cleanup

2010-10-18 Thread Matthew Jacob
What problem are you solving by this change? any thoughts on this patch? i noticed the default SCSI_DELAY value of 2000ms was only used in very few places so i thought it would make more sense making 5000ms the default and adding a few special cases where SCSI_DELAY can in fact be lowered

Re: Examining the VM splay tree effectiveness

2010-09-30 Thread Matthew Fleming
separate memory is needed for the tree's nodes outside the vm_page structure. There just hasn't been time to implement it and try it out. Unfortunately I won't have the time to experiment at $work for a few months on this problem. Thanks, matthew ___ freebsd

Adding a V=R mapping for amd64?

2010-09-29 Thread Matthew Fleming
there were no xlation? Thanks, matthew ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to freebsd-hackers-unsubscr...@freebsd.org

Re: Adding a V=R mapping for amd64?

2010-09-29 Thread Matthew Fleming
On Wed, Sep 29, 2010 at 1:12 PM, Kostik Belousov kostik...@gmail.com wrote: On Wed, Sep 29, 2010 at 12:40:57PM -0700, Matthew Fleming wrote: I'm hacking around with making a fast reboot that puts a copy of the MBR from disk into address 0x7c00 and, after disabling various translation bits

race conditions for destroying and opening a dev

2010-09-16 Thread Matthew Jacob
Has anyone seen this scenario before? I am seeing it in RELENG_7, but the code in question exists through to head. Thread 1: (kgdb) where #0 sched_switch (td=0xff003a04ea80, newtd=0xff00210b4000, flags=Variable flags is not available. ) at ../../../kern/sched_ule.c:1944 #1

Re: race conditions for destroying and opening a dev

2010-09-16 Thread Matthew Fleming
On Thu, Sep 16, 2010 at 12:00 PM, Matthew Jacob m...@feral.com wrote: Has anyone seen this scenario before? I am seeing it in RELENG_7, but the code in question exists through to head. Thread 1: (kgdb) where #0  sched_switch (td=0xff003a04ea80, newtd=0xff00210b4000, flags=Variable

Re: race conditions for destroying and opening a dev

2010-09-16 Thread Matthew Jacob
kostik, matthew- thanks mucho! ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to freebsd-hackers-unsubscr...@freebsd.org

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

2010-09-15 Thread Matthew Fleming
to rely on the return of mtx_initialized(), as there is no serialization with e.g. a thread calling mtx_destroy(). A fully correct serialization model would require that a single thread initialize the mtx and then create any worker threads that will use the mtx. Cheers, matthew

Re: minidump: a hack to prevent vm_page_dump bitmap change during dumping

2010-09-03 Thread Matthew Jacob
You can do it this way, but IMO, the best thing to do is to when you're panicing stop all other CPUs. ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to

Re: minidump: a hack to prevent vm_page_dump bitmap change during dumping

2010-09-03 Thread Matthew Jacob
On 9/3/2010 9:17 AM, Andriy Gapon wrote: on 03/09/2010 19:10 Matthew Jacob said the following: You can do it this way, but IMO, the best thing to do is to when you're panicing stop all other CPUs. Entirely agree, that's the way it should be handled. Unfortunately, all I could come up

Re: Support for WD Advanced Format disks

2010-08-10 Thread Matthew Jacob
Is there truly no IDENTIFY information to determine the drive format? ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to freebsd-hackers-unsubscr...@freebsd.org

Re: Support for WD Advanced Format disks

2010-08-10 Thread Matthew Jacob
Yes, that should be it! After poking around some, it seems ATA/ATAPI-7 Identify Device word 106 bit 13 is set to 1 and bits 0-3 are set to 3 (for 2^3 or 8 LBAs per sector) for a 4KB sector size (pin 7-8 jumper on a WD AF disks presumably changes this setting to 0,0). See page 121 of Atapi-7

Re: disk I/O, VFS hirunningspace

2010-07-14 Thread Matthew Dillon
:void :waitrunningbufspace(void) :{ :/* :mtx_lock(rbreqlock); :while (runningbufspace hirunningspace) { :++runningbufreq; :msleep(runningbufreq, rbreqlock, PVM, wdrain, 0); :} :mtx_unlock(rbreqlock); :*/ :} : :so far, I can't

Re: Missing files device_if.h and bus_if.h

2010-07-10 Thread Matthew Jacob
config(8) creates them I believe line 523 of bus.h tries to include the following files: #include device_if.h #include bus_if.h however, I don't see them any where in my source tree. Are these missing or am I suppose to create them or are they built as part of the build process and if the

Re: Using lex in a shared library

2010-07-06 Thread Matthew Fleming
On Fri, Jul 2, 2010 at 4:52 PM, Xin LI delp...@delphij.net wrote: I think you could probably just change the code and use %option noyywrap in the .l file?  (do your code call yywrap() directly?) The code doesn't use yywrap directly, and this has fixed the build for amd64. Thanks! matthew

  1   2   3   4   5   6   7   8   9   10   >