Re: Can't use gcc in a clang built world

2013-06-27 Thread Andrew Turner
i'm not sure > > if that matters). > > Yes, the arch matters a lot. For arm, adding __clear_cache() to > libgcc was explicitly disabled by Andrew here: > > http://svnweb.freebsd.org/base?view=revision&revision=244382 > > "Don't provide clear_cache

RE: Multiple page size support on FreeBSD?

2013-04-10 Thread Andrew Duane
of automatic use from big allocations, a rarely used API to advise for big TLBs, and some background work that coalesced when possible.  .... Andrew L. Duane Resident Architect - AT&T Technical Lead m   +1 603.770.7088 o +1 408.933.6944 (2-6944) skype: an

Re: Providing a default graphical environment on FreeBSD

2012-09-17 Thread Andrew Young
I spent years using Linux before I truly appreciated the key difference between a "desktop environment" and a "graphical environment". Probably because everyone had to have a desktop environment. I define graphical environment as simply X11 and a window manager. That's all you need to run Fire

Re: Question on io monitoring tools such as gstat and iostat

2012-08-28 Thread Andrew Young
Thanks Andrey! Sent from my iPhone On Aug 28, 2012, at 1:42 PM, Andrey Zonov wrote: > On 8/28/12 3:14 PM, Andy Young wrote: >> I am relatively new to using IO monitoring tools and wanted to confirm I >> understand them correctly. If I specify an interval of 5 seconds, my >> assumption is that t

RE: /proc filesystem

2012-07-12 Thread Andrew Duane
ts in freebsd's vm, but I think it's somehow related to > the running processes that are based on that executable vnode. For > example, if another copy of Xorg were running, I think REF would be 3, > and SHD would be 2. > > I don't know why there is no shadow objec

Re: dtraceall.ko with old nfsclient

2012-07-12 Thread Andrew Boyer
gt; defined, no dependency on either NFS module is registered. The compiler has >> no complaints, though. > > Interesting. Could you repeat after sufficient cleaning up? > I am not sure where from opt_nfs.h file could come. > Maybe related: check out sys/modules/ipfw/Makefile. It makes its own option headers for INET and INET6. -A -- Andrew Boyerabo...@averesystems.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: distinguish between Maxmem, realmem, physmem

2012-06-28 Thread Andrew Boyer
On Jun 28, 2012, at 11:18 AM, Andrew Boyer wrote: > It gets its info from the BIOS, which probed the SPD on each EEPROM at boot > time. Meant to say "SPD EEPROM on each DIMM." -A ------ Andrew Boyerabo...@

Re: distinguish between Maxmem, realmem, physmem

2012-06-28 Thread Andrew Boyer
use hw.physmem and round up to the nearest 1GB. You can also check the output of 'dmidecode -t 17' and total up the listed size of each DIMM. It gets its info from the BIOS, which probed the SPD on each EEPROM at boot time. dmidecode is in ports/sysutils/dmidecode. Someti

Wide character types

2012-06-06 Thread Andrew Turner
nt in ARM EABI and defined as an int elsewhere? Andrew ___ 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: proper newfs options for SSD disk

2012-05-24 Thread Andrew Duane
that spiral striping down a set of disk platters. My bet is no one has ever bothered to rethink this in the 25 years since ... Andrew Duane Juniper Networks +1 978-589-0551 (o) +1 603-770-7088 (m) adu...@juniper.net   _

Re: Please help me diagnose this crazy VMWare/FreeBSD 8.x crash

2012-05-21 Thread Andrew Boyer
s to have to make rc.conf > changes, pf.conf changes, and who knows what other software could be on these > machines that is trying to bind to a specific NIC... > > > Thanks! > You could try switching mpt to MSI. MSI interrupts are never shared. Add this to /boot/

RE: GSoC Project: Automated Kernel Crash Reporting System - Discussion

2012-05-16 Thread Andrew Duane
y exhaustion, lock issues, etc.)  ....... Andrew Duane Juniper Networks +1 978-589-0551 (o) +1 603-770-7088 (m) adu...@juniper.net   ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mai

Re: How does loader(8) decide where to load the kernel?

2012-05-08 Thread Andrew Turner
kernel there. I have a script at [1] that builds an image to load the kernel directly from U-Boot. It figures out where to tell U-Boot to load a kernel by using readelf to find the value of physaddr and kernbase to use to calculate what physical addresses to use to load the kernel to and where the first instruction to execute is. Andrew [1] http://fubar.geek.nz/files/freebsd/omap/build_beagle.sh ___ 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: Ways to promote FreeBSD?

2012-04-28 Thread Andrew Young
> On Fri, Apr 27, 2012 at 08:27:07PM +0200, Wojciech Puchar wrote: > >>> After using Linux for almost 15 years, I only recently started using >>> FreeBSD. I own an internet startup and was looking for a solution for >> >> Those who need FreeBSD already use it. no need to promote. Or maybe need

Re: Ways to promote FreeBSD?

2012-04-28 Thread Andrew Young
here! Even though there are >> so many applications where FreeBSD seems to be a better or at least >> more mature solution. >> >> What are the current efforts to promote and educate people on >> FreeBSD? I'd love to help spread the word. >> > > Hi A

Re: Ways to promote FreeBSD?

2012-04-28 Thread Andrew Young
> Andy Young wrote: >> After using Linux for almost 15 years, I only recently started using >> FreeBSD. I own an internet startup and was looking for a solution for >> implementing large-scale storage servers. In my research I found ZFS and >> subsequently found FreeBSD. As I learned more about i

cron(8): openlog: ProgramName -> "cron"

2012-04-21 Thread Andrew Pantyukhin
expecting no ":", "[", and "/" in the field? Best, Andrew ___ 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: mount_nfs does not like exports longer then 88 chars

2012-04-19 Thread Andrew Duane
MNAMELEN is used to bound the Mount NAMe LENgth, and is used in many many places. It may seem to work fine, but there are lots of utilities and such that will almost certainly fail managing it. Search the source code for MNAMELEN.  ... Andrew Duane Juniper

Re: Rebooting/Halting system from kernel module

2012-01-22 Thread Andrew Davis
>do you want to sync the disks first? of just hard reset? Why would anyone ever want to do that, you're a kernel mod, if you want to do that just triple-fault. On Sun, Jan 22, 2012 at 9:32 PM, Julian Elischer wrote: > On 1/22/12 2:19 AM, geoffrey levand wrote: > >> Hi, >> >> how would i reboot/

Re: mfi (Dell H700) + hot swapping doesn't appear to work with RC1

2011-12-16 Thread Andrew Boyer
On Dec 16, 2011, at 12:47 AM, Jan Mikkelsen wrote: > On 16/12/2011, at 3:40 AM, Andrew Boyer wrote: >> On Dec 15, 2011, at 4:19 AM, Jan Mikkelsen wrote: >> >>> For the mfi controllers I have been testing recently (MegaRAID 9261-8i), >>> you need to install t

Re: mfi (Dell H700) + hot swapping doesn't appear to work with RC1

2011-12-15 Thread Andrew Boyer
On Dec 15, 2011, at 1:10 PM, Hugo Silva wrote: > On 12/15/11 16:40, Andrew Boyer wrote: >> I'm not sure it would even be possible to come up with a worse interface. >> It boggles the mind. >> >> I recommend you always run with this configurati

Re: mfi (Dell H700) + hot swapping doesn't appear to work with RC1

2011-12-15 Thread Andrew Boyer
yone managed to get the real JBOD mode working on this controller? It advertises support in the firmware but doesn't seem to do anything. The documentation only lists JBOD mode as a feature of the lower-end controllers. Hope this helps. -Andrew ---

RE: BUG: 'glabel label' name's lenght, is truncated without err/warn

2011-11-08 Thread Andrew Duane
the check and the printf.  ....... Andrew Duane Juniper Networks o   +1 978 589 0551 m  +1 603-770-7088 adu...@juniper.net   > -Original Message- > From: owner-freebsd-hack...@freebsd.org [mailto:owner-freebsd- > hack...@freebsd.org] On Behalf Of Ed

RE: Hello World assembly language

2011-09-28 Thread Andrew Duane
Add a 0x0d to the end of the string (0xa = LF, 0xd = CR)  ... Andrew Duane Juniper Networks o   +1 978 589 0551 m  +1 603-770-7088 adu...@juniper.net   > -Original Message- > From: owner-freebsd-hack...@freebsd.org [mailto:owner-freebsd-

RE: Soliciting opinions on an extension of the bootinfo structure

2011-09-12 Thread Andrew Duane
nment variables for the time being.  ... Andrew Duane Juniper Networks o   +1 978 589 0551 m  +1 603-770-7088 adu...@juniper.net   -Original Message- From: John Baldwin [mailto:j...@freebsd.org] Sent: Friday, September 09, 2011 8:32 AM To: freebsd-a...@freebsd.o

RE: Soliciting opinions on an extension of the bootinfo structure

2011-09-09 Thread Andrew Duane
uch things.  ....... Andrew Duane Juniper Networks o   +1 978 589 0551 m  +1 603-770-7088 adu...@juniper.net   -Original Message- From: Peter Wemm [mailto:pe...@wemm.org] Sent: Thursday, September 08, 2011 6:48 PM To: Peter Grehan Cc: Andrew Duane; freebsd-hackers@f

Soliciting opinions on an extension of the bootinfo structure

2011-09-08 Thread Andrew Duane
endif /* OCTEON_VENDOR_JUNIPER */ Reasonable? Unreasonable? Insane? -- Andrew Duane Juniper Networks 978-589-0551 10 Technology Park Dr adu...@juniper.net Westford, MA 01886-3418 ___ freebsd-hackers@freebsd.org mailing list ht

Dumping core over NFS

2011-08-11 Thread Andrew Duane
, but nothing makes any forward progress. Sending SIGUSR1, SIGUSR2, or SIGABRT seem to work fine, as does any signal if the core dump is going to a local filesystem. Before I dig into this apparent deadlock, just wondering if it's been seen before. ....... An

RE: DEBUG - analysing core dumps

2011-05-25 Thread Andrew Duane
am not sure what steps I should follow to get more information ? > > > > Also, I believe that often, core dumps with signal 11 = RAM problems > and I would like a confirmation here. > > I am concerned because rsyslogd is the only process that crashes in > this way, even afte

Re: device_detach() on a device used by ixgbe driver (FreeBSD 7-STABLE through to 9-CURRENT)

2011-05-23 Thread Andrew Boyer
erally supported. > FYI, I submitted a patch to Jack to add this in all of the e1000/ixgbe drivers. Setting a disabled="1" hint causes the attach to fail with ENXIO. I don't know if it's 'correct' or not but it serves

Fwd: Re: scd and mcd

2011-04-23 Thread Andrew Lankford
My last desktop machine had an ASUS Pentium-3 (no ISA slots), USB1 only. It has outlived the original hard drive, CDROM, and power supply, but I think it makes more sense these days to throw these systems out rather than "future-proof" them, especially if a fanless SoC could be less power-hung

scd and mcd

2011-04-23 Thread Andrew Lankford
While we're talking about recent MFC's for SATA hardware (works for me, but I still need the old ata drivers for my cdrom), is anyone out there really still using the mcd (fbsd 1.0 vintage) and scd (2.0.5) drivers? ___ freebsd-hackers@freebsd.org maili

RE: retry mounting with ro when rw fails

2011-04-08 Thread Andrew Duane
For SCSI-attached disks, yes. But other hardware has write-protect sensing (SD cards, CD-roms, our platform). So if you can do that, you should Cleaning up after a failed write is a real problem, one that I needed to avoid. /Andrew -Original Message- From: Andriy Gapon [mailto:a

RE: retry mounting with ro when rw fails

2011-04-08 Thread Andrew Duane
ection from the device to the filesystem code. Our implementation uses a platform sysctl that checks the incoming device name against some hardware or software settings. Ick. I don't know enough about device/GEOM calls to do it better though.  ... Andrew Duane Jun

RE: looking for error codes

2011-04-02 Thread Andrew Duane
hese with union filesystems instead, to save space and complexity. -- Andrew Duane Juniper Networks 978-589-0551 10 Technology Park Dr adu...@juniper.net Westford, MA 01886-3418 From: owner-freebsd-hack...@freebsd.org [own

RE: looking for error codes

2011-04-01 Thread Andrew Duane
dates will not be able to complete. Once that is done, any attempt to open a file for writing fails. -- Andrew Duane Juniper Networks 978-589-0551 10 Technology Park Dr adu...@juniper.net Westford, MA 01886-3418 From: Andri

RE: looking for error codes

2011-04-01 Thread Andrew Duane
AFAIK, FreeBSD does not really detect read-only media. This was something I had to add as a small project here at work, and was considering cleaning up to try to get into CURRENT. If there's a real need for it, I could speed that up. -- Andrew Duane Juniper Networks 978-589

RE: New Boot-Loader

2011-03-28 Thread Andrew Duane
uot; is verbose, etc  ... Andrew Duane Juniper Networks o   +1 978 589 0551 m  +1 603-770-7088 adu...@juniper.net   ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers

Re: Unsigned wchar_t

2011-03-28 Thread Andrew Turner
On Sun, 27 Mar 2011 22:07:30 +0200 Stefan Farfeleder wrote: > On Mon, Mar 28, 2011 at 08:36:57AM +1300, Andrew Turner wrote: > > Along with this WCHAR_MIN and WCHAR_MAX are defined both in > > and . I would like to remove the copy > > from wchar.h and add an include

Unsigned wchar_t

2011-03-27 Thread Andrew Turner
N and WCHAR_MAX? Andrew ___ 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: seeking into /dev/{null,zero}

2011-02-22 Thread Andrew Duane
ck values, and those shouldn't change behaviour if someone uses /dev/null as a test file. It seems pretty trivial to update it, so why not make it behave the same. -- Andrew Duane Juniper Networks 978-589-0551 10 Technology Park Dr adu...@juniper.net Westford,

RE: reverse of getchar() read() open() fopen() ?

2011-02-11 Thread Andrew Duane
I've never seen any such thing, but I've done similar things a lot. I'd say malloc/read the whole file in and use a decrementing pointer to return the "previous" character. -- Andrew Duane Juniper Networks 978-589-0551 10 Technology P

Strange problems in the old libc malloc routines

2011-02-02 Thread Andrew Duane
s like page_dir look corrupted too. It seems as if maybe the "1" is coming from sbrk(0) which is just returning the value of curbrk (which is correct, and not even close to "1"). Does this ring any bells? -- Andrew Duane Juniper Networks 978-589-0551

Re: KERN - mfi driver for Dell raid h200 on r210 servers

2011-01-29 Thread Andrew Thompson
On 30 January 2011 06:20, Damien Fleuriot wrote: > Hello lists, > > > > I'm trying to get FreeBSD 8.0 or 8.1 to run on a Dell poweredge r210 server. > > It ships with a SATA/SAS h200 RAID controller. > This card may need the mps(4) driver which is only in

Question about process rlimits

2010-12-02 Thread Andrew Duane
continuing, just like the manuals say. Am I missing something? -- Andrew Duane Juniper Networks 978-589-0551 10 Technology Park Dr adu...@juniper.net Westford, MA 01886-3418 ___ freebsd-hackers@freebsd.org mailing list

Re: international crypto laws

2010-10-17 Thread Andrew Stesin
I think this is reasonable. WBR, Andrew 2010/10/15 Julian H. Stacey : > To quote 8.1-RELEASE/src/crypto/README >        ... >        The separation between src/contrib and src/crypto >        is the result of an old USA law, which made these sources export >        controlled, so

Re: disassembler

2010-09-05 Thread Andrew MacIntyre
have developed a problem - I not long ago had this happen to me, and the drive, when extracted (with some difficulty) from the case, could be accessed when connected directly to a P-ATA interface. -- ----- And

Re: 8.1-STABLE amd64 machine check

2010-08-11 Thread Andrew Heybey
On Aug 11, 2010, at 6:47 AM, Dan Langille wrote: > I am encountering a situation similar to one reported by Andrew Heybey > at http://docs.freebsd.org/cgi/mid.cgi?6E83197B-9DD5-4C7E-846D-AD176C25464D > > This morning I found this in my /var/log/messages: > > Aug 11 01:59:48

Re: 8.1RC2 amd64 machine check question

2010-07-15 Thread Andrew Heybey
On Jul 15, 2010, at 8:07 AM, John Baldwin wrote: > On Wednesday, July 14, 2010 11:25:29 am Andrew Heybey wrote: >> Got the following in /var/log/messages on my one-week-old amd64 box running >> 8.1RC2: >> >> Jul 13 20:30:17 spaten kernel: MCA: Global Cap

8.1RC2 amd64 machine check question

2010-07-14 Thread Andrew Heybey
things that happens but now it gets logged whereas before I was blissfully ignorant? thanks, andrew ___ 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: using cupsd instead of base lpr [was Re: [HEADS UP] Kernel modules don't work properly in FreeBSD 8.1-RC1 (solved)]

2010-06-24 Thread Andrew Reilly
hell will find them in their new locations just fine. You'll want to remove the old ones from /usr/bin, but make delete-old will probably do that nicely anyway. Cheers, -- Andrew ___ freebsd-hackers@freebsd.org mailing list http://lists.fre

RE: loader prompt: list / on other device

2010-06-23 Thread Andrew Duane
You *should* be able to use device1s2a:/ as a syntax, but I noticed a bug in our old loader code that parses devicenames like that where it wouldn't work correctly with unit numbers. I don't know if that bug is still around, but setting currdev did work around it. /Andrew >

Re: Are POSIX mqueues supposed to be functional on FreeBSD?

2010-06-20 Thread Andrew Thompson
I'll need to hunt down what's going on with the missing header. opt_* headers are auto-generated by the kernel config. Just add opt_compat.h to sys/modules/mqueue/Makefile right after opt_posix.h Andrew ___ 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: [FreeBSD 8/9] [64-bit IOCTL] Using the USB stack from a 32-bit application under a 64-bit kernel.

2010-05-30 Thread Andrew Thompson
t ABI structures and define > compat ioctls, then handle the ioctls by converting the structures > and calling the native handler. BIOCSRTIMEOUT32 is a good example. This has been done for other usb ioctls but the above struct has a pointer to an array of pointers in userland which makes

RE: bad RAM? prove it with a crash dump?

2010-05-06 Thread Andrew Duane
27;ve often found code that writes some buffer into e.g. a piece of memory it no longer owns that looks like memory corruption until you realize the garbage is always something specific like a vnode structure. /Andrew ___ freebsd-hackers@freebsd.org mail

Re: GSoC:Complete Package support in the pkg_install tools and cleanup

2010-05-04 Thread Andrew Brampton
efit is a complete package over many individual ones? Andrew ___ 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: kenv - output needed

2010-03-23 Thread Andrew Thompson
On Wed, Mar 24, 2010 at 02:09:41PM +1300, Atom Smasher wrote: > On Tue, 23 Mar 2010, Garrett Cooper wrote: > >> Are you looking for data represented similar to sysctl(8)? > > > it doesn't quite have to be, but it is being parsed in a script. How about pulling the kenv variables into

Re: kenv - output needed

2010-03-23 Thread Andrew Thompson
On Wed, Mar 24, 2010 at 08:06:23AM +1300, Atom Smasher wrote: > On Wed, 24 Mar 2010, Andrew Thompson wrote: > >> On Tue, Mar 23, 2010 at 05:12:47PM +1300, Atom Smasher wrote: >>> i'm trying to figure out what might be reasonable output from kenv. on >>> the t

Re: kenv - output needed

2010-03-23 Thread Andrew Thompson
ader prior to starting the kernel. If you want something more structured then maybe the dmidecode utility would be useful. cheers, Andrew ___ 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: ATA 4K sector issues

2010-03-17 Thread Andrew Stesin
he drive is? Thanks, Andrew ___ 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: Dead store elimination in the kernel?

2010-03-08 Thread Andrew Duane
rs-unsubscr...@freebsd.org" I would think the "correct" way to handle this is to make sure all appropriate items are declared volatile. This would eliminate dead store elimination, as the compiler can tell they are not dead. Unfortunately, the history of drivers (or any code) co

Per core, per device interrupt counts

2010-02-17 Thread Andrew Brampton
ht find time to implement this myself. thanks Andrew ___ 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: Future CPUs - 128 threads

2010-02-12 Thread Andrew Duane
ips. So they are of direct interest to us. >> >> They are probably not a very good fit for general purpose computing. >> >> --Artem I believe I know of one such company... :-) -- Andrew Duane Juniper Net

Re: KLD hello.ko: depends on kernel - not available or version mismatch

2010-02-11 Thread Andrew Brampton
and I get the "hello, fail" message, and then I typed sudo make unload and I got the "unload fail" message. Andrew ___ 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: sysctl with regex?

2010-02-09 Thread Andrew Brampton
venting the wheel, even if this wheel is the wrong colour ;) Andrew ___ 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: sysctl with regex?

2010-02-09 Thread Andrew Brampton
do something similar to what we want. BTW Feel free to implement this, I was going to have a go but I doubt I'd actually get around to it :( Andrew ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hacke

Re: sysctl with regex?

2010-02-09 Thread Andrew Brampton
2010/2/9 Dag-Erling Smørgrav : > Andrew Brampton writes: >> Today I was writing a script to read all the dev.cpu.?.temperature >> sysctl OIDs. I was parsing them using a simple grep, but it occurred >> to me it might be better if sysctl supported some form of regexp. > >

sysctl with regex?

2010-02-09 Thread Andrew Brampton
tl dev.cpu which lists all the OIDs under dev.cpu. Is this a feature people would find useful? Or would I be optimising a problem that doesn't exist? Thanks for any input Andrew ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/m

Re: devfs panic w/INVARIANTS

2010-02-05 Thread Andrew Gallatin
Kostik Belousov wrote: On Fri, Feb 05, 2010 at 08:51:25AM -0500, Andrew Gallatin wrote: Kostik Belousov wrote: On Thu, Feb 04, 2010 at 03:40:28PM -0500, Andrew Gallatin wrote: I've got a commercial driver that uses device cloning. At unload time, the driver calls clone_cleanup(). W

Re: devfs panic w/INVARIANTS

2010-02-05 Thread Andrew Gallatin
Kostik Belousov wrote: On Thu, Feb 04, 2010 at 03:40:28PM -0500, Andrew Gallatin wrote: I've got a commercial driver that uses device cloning. At unload time, the driver calls clone_cleanup(). When I unload the driver when the kernel is built with INVARIANTS, I'll see

devfs panic w/INVARIANTS

2010-02-04 Thread Andrew Gallatin
I've got a commercial driver that uses device cloning. At unload time, the driver calls clone_cleanup(). When I unload the driver when the kernel is built with INVARIANTS, I'll see a panic in devfs_populate_loop(). This happens in 6-stable, as well as 8-stable. From what I can see the clone has

RE: Spin down HDD after disk sync or before power off

2010-02-04 Thread Andrew Duane
t. extern void jsrxnle_poweroff_devices(void *junk, int howto); /* Registering power-off handler to be called at the system shutdown */ EVENTHANDLER_REGISTER(shutdown_final, jsrxnle_poweroff_devices, NULL, SHUTDOWN_PRI_LAST + 10); The howto argument can be checked for RB_POWEROFF: if (howto

Re: Cross-building amd64->i386 fails at RESCUE

2010-01-12 Thread Andrew Thompson
dworld buildkernel TARGET=i386 You may want to clear out your /usr/obj and try again. Andrew ___ 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: heap limits: mmap(2) vs. break(2) on i386

2009-11-28 Thread Andrew MacIntyre
n allocator, it relies on the platform malloc() rather than sbrk(), and therefore Jason's suggestion to use '-d' in /etc/malloc.conf should be effective for it. -- ----- Andrew I MacIntyre "

[Fwd: Failure to boot from HD formatted not by FreeBSD]

2009-10-23 Thread Andrew Lankford
from 8.0-RC1, and now it doesn't successfully boot. I gather from the 8.0 release notes that there have been some changes to some part of the boot code. In any case, I can boot via the Windows boot menu with the help of 7-stable's /boot/boot1 file. Hoping that helps

Re: semaphores between processes

2009-10-23 Thread Andrew Gallatin
Daniel Eischen wrote: We already use umtx. This really is a hack and I wouldn't advocate it. I'm not sure how you could make it work and not break existing ability to return appropriate error codes without slowing down the path in the non-shared case. You'd have to check to see if the addres

Re: semaphores between processes

2009-10-23 Thread Andrew Gallatin
Daniel Eischen wrote: On Fri, 23 Oct 2009, Andrew Gallatin wrote: Daniel Eischen wrote: On Fri, 23 Oct 2009, John Baldwin wrote: On Thursday 22 October 2009 5:17:07 pm Daniel Eischen wrote: On Thu, 22 Oct 2009, Andrew Gallatin wrote: Daniel Eischen wrote: On Thu, 22 Oct 2009, Andrew

Re: semaphores between processes

2009-10-23 Thread Andrew Gallatin
Daniel Eischen wrote: On Fri, 23 Oct 2009, John Baldwin wrote: On Thursday 22 October 2009 5:17:07 pm Daniel Eischen wrote: On Thu, 22 Oct 2009, Andrew Gallatin wrote: Daniel Eischen wrote: On Thu, 22 Oct 2009, Andrew Gallatin wrote: Hi, We're designing some software which has to

Failure to boot from HD formatted not by FreeBSD

2009-10-22 Thread Andrew Lankford
, and now everything seems to work alright. Anyway, all this procedure should be 75% correct since I've managed to successfully upgrade to 8.0 from 7-stable this way. For all I know, I might end up with a corrupted partition six months from now. Either that or Marcel Moolenar will

Re: semaphores between processes

2009-10-22 Thread Andrew Gallatin
Daniel Eischen wrote: On Thu, 22 Oct 2009, Andrew Gallatin wrote: Hi, We're designing some software which has to lock access to shared memory pages between several processes, and has to run on Linux, Solaris, and FreeBSD. We were planning to have the lock be a pthread_mutex_t residing i

semaphores between processes

2009-10-22 Thread Andrew Gallatin
Hi, We're designing some software which has to lock access to shared memory pages between several processes, and has to run on Linux, Solaris, and FreeBSD. We were planning to have the lock be a pthread_mutex_t residing in the shared memory page. This works well on Linux and Solaris, but FreeBS

Re: namei (via firmware_get(9)) from taskq in 7.x

2009-10-19 Thread Andrew Gallatin
Kostik Belousov wrote: It seems that you want a merge of r178042,183614,184842,188057 (one of Yes, I finally figured this out on Fri. I probably should have posted a response to this thread to avoid others wasting time on this. Drew ___ freebsd-ha

Re: crashtar

2009-10-15 Thread Andrew D. Boyd
the file is readable: if [ -r FILE ] and then print an error message. Although the awk error message is sufficient some people might find this helpful. Regards, Andrew ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/l

Re: sysinstall colours

2009-10-15 Thread Andrew D. Boyd
Ed Schouten wrote: > * Paul B Mahol wrote: >> This have nothing to do with ncurses, colors you like simple can not >> be displayed in current syscons(4) and making support for 256 colors >> or even true bit color in sysinstall(so that it looks amazing in >> konsole) is waste of time. > > Yes. As

namei (via firmware_get(9)) from taskq in 7.x

2009-10-15 Thread Andrew Gallatin
Hi, I'm trying to re-initialize a NIC which uses firmware(9) after a hardware fault. As part of the process, I need to re-load the firmware using firmware_get(). If the firmware kld is not resident, then the machine will panic like this: Fatal trap 12: page fault while in kernel mode cpuid = 0

Re: Make top display thread IDs

2009-10-07 Thread Andrew Brampton
there is no name wouldn't work for me. If you haven't looked at the patch I placed the TID directly after the PID column (when displaying threads in -H mode). thanks Andrew ___ freebsd-hackers@freebsd.org mailing list http://lists.freebs

Make top display thread IDs

2009-10-04 Thread Andrew Brampton
perhaps it should be included with FreeBSD. I'd be grateful for any feedback or suggestions. thanks Andrew Index: usr.bin/top/machine.c === --- usr.bin/top/machine.c (revision 197611) +++ usr.bin/top/machine.c (working

Re: netstat -i Ierrs column, Is it total, or per second?

2009-08-31 Thread Andrew Brampton
his patch to freebsd intel.com unless someone can point me toward the maintainers email address, or should I just create a PR? thanks Andrew diff -u ixgbe.old/ixgbe.c ixgbe/ixgbe.c --- ixgbe.old/ixgbe.c 2009-08-31 18:15:05.0 +0100 +++ ixgbe/ixgbe.c 2009-08-31 19:52:14.0

netstat -i Ierrs column, Is it total, or per second?

2009-08-31 Thread Andrew Brampton
t this value over time. I also tried a similar experiment with the e1000 driver but I couldn't get that interface to list any errors. I'm running these tests on FreeBSD 8.0-Beta3, but I observed the same behaviour on FreeBSD 7.2. Thanks Andrew _

DTrace lockup on a dual processor VMWare

2009-08-21 Thread Andrew Brampton
BREAK_TO_DEBUGGER options INVARIANTS options INVARIANT_SUPPORT options WITNESS options WITNESS_SKIPSPIN options DEBUG_MEMGUARD options HWPMC_HOOKS device hwpmc Can anyone suggest anything to try and debug/fix this problem. I'

vm_map_protect / pmap_protect Can't lower protection

2009-07-20 Thread Andrew Brampton
otect claims to do what I want, but has long been missing from FreeBSD. In case it matters, I'm using FreeBSD 7.2, on a amd64 machine. I've looked at HEAD and the relevant code looks the same, so I suspect I will still have problems with that. thanks for any help Andrew ___

Re: kthreads and sched_relinquish

2009-05-11 Thread Andrew Brampton
this more for my general understanding. thanks Andrew ___ 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"

kthreads and sched_relinquish

2009-05-08 Thread Andrew Brampton
ing if there are no other threads waiting. I would also be grateful if people could point me at other examples in the kernel where something like this is done. I have looked in quite a few places, but I can't see why my simple app is wrong. thanks Andrew __

Re: Definition of NULL

2009-05-02 Thread Andrew Brampton
2009/5/2 Erik Trulsson : > On Sat, May 02, 2009 at 04:59:03PM +0100, Andrew Brampton wrote: >> I'm writing a C++ Kernel Module, and one thing that has been bugging >> me is the kernel's definition of NULL. > > Is the use of C++ inside the kernel really supported?  

Definition of NULL

2009-05-02 Thread Andrew Brampton
efine NULL(0L) #else # define NULL0 #endif That way, if we are using GCC 4+ we use their __null definition, otherwise if we are not c++ we use the standard (void *)0, and then if we are 64bit we use 0L, and finally anything else uses 0. A quick amd64 kernel compile seems to allow m

Re: FreeBSD memguard + spinlocks

2009-04-11 Thread Andrew Brampton
2009/4/11 Robert Watson : > On Sat, 11 Apr 2009, Andrew Brampton wrote: > > Your understanding is mostly right.  The missing bit is this: there are two > kinds of interrupt contexts -- fast/filter interrupt handlers, which borrow > the stack and execution context of the kernel thre

FreeBSD memguard + spinlocks

2009-04-10 Thread Andrew Brampton
be easier to acquire than sleeping? I think for the moment I will fix my code by not using a MTX_SPIN (since the code is not in a interrupt), however, I think memguard should change its lock. thanks Andrew ___ freebsd-hackers@freebsd.org mailing li

Re: pahole - Finding holes in kernel structs

2009-02-12 Thread Andrew Brampton
2009/2/12 Kostik Belousov : > On Thu, Feb 12, 2009 at 02:08:22PM +0000, Andrew Brampton wrote: >> >> So I ran the tool pahole over a 7.1 FreeBSD Kernel, and found that > Did you ported it to FreeBSD, or run on the Linux host ? > Sorry no, I just ran it from a Linux host, b

pahole - Finding holes in kernel structs

2009-02-12 Thread Andrew Brampton
Is it worth my time trying to rearrange structs? If so do you think many of my patches would be accepted? 2) Is there a way to find out the most heavily used structs? There are ~3600 structs, and ~2000 holes, it might be a waste of my time fixing the structs which are only used once. thanks Andre

Re: CFT: Graphics support for /boot/loader

2009-02-05 Thread Andrew Thompson
reeBSD wiki: > > http://wiki.freebsd.org/OliverFromme/BootLoaderTest > > Any kind of feedback is welcome. Works well here, tried various combinations of the options. This is very cool. Andrew ___ freebsd-hackers@freebsd.org mailing list http://

  1   2   3   4   5   6   7   8   >