Re: rwlock(9) upgrade

2013-09-30 Thread Matthew Fleming
e 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
#x27;t have to change any 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-hacker

Re: Discussing ideas or wish list

2013-08-08 Thread Matthew Seaman
elease schedule got reworked after the RoadMap was written and the security incident and the consequent necessity of completely redesigning and rebuilding the pkgng package building system has added various delays too. Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phi

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) ___ freebsd-hackers@freebsd.

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 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 to back up

Re: IBM blade server abysmal disk write performances

2013-01-18 Thread Matthew Jacob
mpt0: 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 systems (the 335, for one)

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-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 driver

Re: IBM blade server abysmal disk write performances

2013-01-15 Thread Matthew D. Fuller
x27;s a pretty unlikely combo 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 In

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 scr

Re: IBM blade server abysmal disk write performances

2013-01-15 Thread Matthew D. Fuller
out *KILLING* if you could 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 j

Re: Vice versa of 'pkg_info -W'

2013-01-02 Thread Matthew Seaman
data on the yet-to-be-commisioned pkgng build cluster. As that's currently 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.

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 message , 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 than 15 seconds from power-on... A Sun 3-50 with a 15.7MHz 68020

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 wrote: > Hi, > > On Wed, Aug 1, 2012 at 12:40 PM, Attilio Rao wrote: > > On Wed, Aug 1, 2012 at 5:32 PM, Arnaud Lacombe > wrote: > >> Hi, > >> > >> On Tue, Jul 31, 2012 at 4:14 PM, Attilio Rao > wrote: > >>> > >>> You don't want to work cooperativ

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

2012-07-05 Thread Matthew Seaman
ing a file index might be possible, but it would be several 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

Re: Pull in upstream before 9.1 code freeze?

2012-07-05 Thread Matthew Seaman
ted between the stub-resolver built into libc, and whatever 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,

Re: Gentoo Solution to Nanny Terminal Problem

2012-07-05 Thread Matthew Seaman
mand doesn't need the packages to be installed first. It's answering "what package should I install to get this program?" rather than "what package did this program come from?" Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil.

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

2012-06-21 Thread Matthew Seaman
ts has to be used to fulfil the dependency. (Perl module 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/pgpk

Re: diagonising a overheating problem

2012-05-14 Thread Matthew D. Fuller
I'm pretty sure that combo isn't 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) | fu

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 all

Re: Status of BSD Diff replacement?

2012-04-22 Thread Matthew Story
s a lot Ben. > > > > On Tue, Apr 17, 2012 at 8:30 PM, Matthew Story wrote: >> >> >> >> On Tue, Apr 17, 2012 at 10:01 PM, Ben Fiedler wrote: >>> >>> Gabor, >>> >>> I made a branch off of your perforce diff code in my work on the d

Re: Status of BSD Diff replacement?

2012-04-17 Thread Matthew Story
d.org/SOC2010BenFiedler#diff Awesome, thanks 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 wrote: > >> On 2012.04.17. 23:03, Matthew Story wrote: >

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 Ope

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 wrote: > On Tue, Feb 14, 2012 at 2:37 PM, Matthew Story wrote: > >> On Tue, Feb 14, 2012 at 2:35 PM, Jilles Tjoelker wrote: >> >>> On Tue, Feb 14, 2012 at 01:34:49PM -0500, Matthew Story wrote: >>> > After re

Re: xargs short-circuit

2012-02-14 Thread Matthew Story
On Tue, Feb 14, 2012 at 2:37 PM, Matthew Story wrote: > On Tue, Feb 14, 2012 at 2:35 PM, Jilles Tjoelker 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, &

Re: xargs short-circuit

2012-02-14 Thread Matthew Story
On Tue, Feb 14, 2012 at 2:35 PM, Jilles Tjoelker 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

Re: xargs short-circuit

2012-02-14 Thread Matthew Story
On Tue, Feb 14, 2012 at 2:05 PM, Devin Teske wrote: > > > > -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 >

Re: xargs short-circuit

2012-02-14 Thread Matthew Story
On Tue, Feb 14, 2012 at 1:34 PM, 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 > on first failure of [utility [arguments]]. > > e.g. > > $ jot - 1

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 non

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 wrote: > On Wed, Jan 18, 2012 at 10:12 PM, Jason Hellenthal wrote: > [...snip] > >> It would be nice if the completion made it down to 8.X. >> > > Agreed, on my 9.0 install, I have actua

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 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 > dash has

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

2012-01-18 Thread Matthew D. Fuller
or releases" that could improve things in some quarters. And they're local enough that they can conceptually be done without rippling out and messing with everything else in the project. But trying to do major shifts aren't as simple as "just make major releases less o

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 : (which is present in 8.0) FreeBSD sh is now actually a pretty usable interactiv

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

2012-01-17 Thread Matthew D. Fuller
my point. Whether due to malice, 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

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

2012-01-17 Thread Matthew D. Fuller
work as a user to transistion across 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-

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

2012-01-17 Thread Matthew D. Fuller
te that I also maintain several ports, and so 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

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

2012-01-17 Thread Matthew D. Fuller
lease [...] I doubt it would be easy to get stats. But you could probably draw a reasonable correlation between people 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 Syst

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

2012-01-17 Thread Matthew D. Fuller
evisions, could 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

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

2012-01-17 Thread Matthew D. Fuller
e another RC. You mean the 9.0-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. -- Matt

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-hack

Re: [ANN] host-setup 4.0 released

2012-01-03 Thread Matthew Seaman
m.) 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 signat

Re: [ANN] host-setup 4.0 released

2012-01-03 Thread Matthew Seaman
nges dedicated to special purpose usages, 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 -

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
here you are going to have to spend some quality time with the manuals I'm 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

Re: Phenom II 975 BE shows 0 celsius

2011-08-01 Thread Matthew D. Fuller
nly the initial 920 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-

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 s

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 m

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 "freebsd-hackers-unsubscr...@freeb

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

2011-04-13 Thread Matthew Fleming
dn't have been. > VFS_VGET gives you the vnode pointer; you shouldn't need getvnode() 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 Fle

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- >

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 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 > initializ

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

2011-04-13 Thread Matthew Fleming
at would return a vnode 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:

Re: ifconfig output: ipv4 netmask format

2011-04-08 Thread Matthew Seaman
d1 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 Priory Courtyard Flat 3 PGP: http:/

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 it

Re: DMA controller on Northbridge?

2011-03-22 Thread Matthew Fleming
On Tue, Mar 22, 2011 at 11:12 AM, Kostik Belousov 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? >> >>

DMA controller on Northbridge?

2011-03-22 Thread Matthew Fleming
t. Help? :-) Attached is the boot 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,

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 wrote: > On Thu, Mar 3, 2011 at 3:34 PM, Matthew Fleming wrote: >> On Thu, Mar 3, 2011 at 1:03 PM, Brandon Gooch >> wrote: >>> On Thu, Mar 3, 2011 at 11:49 AM, David Wolfskill >>> wrote: >>>> I'

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

2011-03-03 Thread Matthew Fleming
nge sysctl declarations at this point: > > http://www.freebsd.org/news/status/report-2010-10-2010-12.html#SYSCTL-Type-Safety The intent of the type-safety is to make sure that the types assumed for the kernel's sysctl handler match the type of the variable. This project won't fix issu

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
low 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&

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

2011-02-12 Thread Matthew Seaman
26) echo '255.255.255.192' ;; 27) echo '255.255.255.224' ;; 28) echo '255.255.255.240' ;; 29) echo '255.255.255.248' ;; 30) echo '255.255.255.252' ;; 31) echo '255.255.255.254' ;; 32)

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 di

Re: Divide-by-zero in loader

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

Re: Divide-by-zero in loader

2011-01-28 Thread Matthew Fleming
On Fri, Jan 28, 2011 at 11:00 AM, John Baldwin 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

Divide-by-zero in loader

2011-01-28 Thread Matthew Fleming
oader sees 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 === -

Re: NFS: file too large

2011-01-18 Thread Matthew Dillon
-Matt Matthew Dillon ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To

Re: Question about sysctl-ing coretemp module values

2011-01-15 Thread Matthew Fleming
ture as an int (hence len=4) in 10ths of a degree K. Then sysctl(8) is printing this as %.1fC, which is where the 37.0C comes from. So the sysctl returns an int with some value and then printf does the conversion. The coretemp sysctl uses the

Re: NFS: file too large

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

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: :... :- An

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
On Wed, Dec 8, 2010 at 3:01 PM, Bruce Cran wrote: > On Wed, 8 Dec 2010 14:54:57 -0800 > Matthew Fleming 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 fst

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

2010-12-08 Thread Matthew Fleming
open pid?  I would be happy to write up a python script to give me > 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

Re: Question about process rlimits

2010-12-02 Thread Matthew Fleming
There are two ways to deal with this: 1) edit /etc/malloc.conf 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, m

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
-Matt Matthew Dillon ___ 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-31 Thread Matthew Dillon
:cronfy 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() overhead entirely. : :

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

2010-10-30 Thread Matthew Dillon
e) rdirplus scanning the production filesystem via NFS should go pretty quickly. 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.

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

2010-10-24 Thread Matthew Seaman
t as slowly as you like. 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

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

Re: SCSI_DELAY cleanup

2010-10-19 Thread Matthew Jacob
ines and leave 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 p

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 do

Re: Examining the VM splay tree effectiveness

2010-09-30 Thread Matthew Fleming
nternally at $work about using a B+-tree with maybe branching factor 5-7; whatever makes sense for the size of a cache line. This seems likely to be better for performance than an RB-tree but does require a lot more changes, since 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-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 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 &g

Adding a V=R mapping for amd64?

2010-09-29 Thread Matthew Fleming
). So... any thoughts as to why, after an apparently successful installation of an xlation, I still get a panic as though 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: 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: 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 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=0xff0021

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 0xfff

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

2010-09-15 Thread Matthew Fleming
a result >   mtx_recurse field will be increased, but its value still can be >   uninitialized on architecture with relaxed memory ordering model. It seems to me that it's generally a programming error to rely on the return of mtx_initialized(), as there is no serialization with e.g. a

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 co

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 "freebsd-hack

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 vol

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: disk I/O, VFS hirunningspace

2010-07-13 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 th

Re: Using lex in a shared library

2010-07-06 Thread Matthew Fleming
On Fri, Jul 2, 2010 at 4:52 PM, Xin LI 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. Than

  1   2   3   4   5   6   7   8   9   10   >