Re: FreeBSD 10 prognostication...

2012-05-02 Thread Luke S. Crawford
On Thu, May 03, 2012 at 12:31:12AM -0400, Vance Siemens wrote:
 Can't say that I wouldn't look forward to this, but it sounds a little off:
 
 http://www.trollaxor.com/2012/05/freebsd-x-berkeley-unix-apple-quality.html
 
 What do others think?

Please leave trollaxor on Kuro5hin or slashdot where he belongs.   

I mean, this isn't even adequacy level stuff.  
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: Using TMPFS for /tmp and /var/run?

2012-04-28 Thread Luke Dean



On Fri, 30 Mar 2012, Chris Rees wrote:


On 30 Mar 2012 14:26, sth...@nethelp.no wrote:



However, if you always want to use tmpfs instead of stable storage,

please do not.  Some people expect /tmp to be persistent.  This is why
/etc/defaults/rc.conf has clear_tmp_enable=NO.  Changing this would

break

the POLA.



This is a mistake.

The default should be clear_tmp_enable=YES
if only to uncover those broken configurations that expect /tmp to be
persistent.


If you want to break POLA and make a lot of people angry, sure.
Otherwise no.



I would very much like an example of where /tmp is expected to persist.

Chris


Yes, I'm a month behind on my mailing list reading and this conversation 
is probably over, but I do have a personal example.


In my periodic.conf, I have:
daily_clean_tmps_enable=YES
daily_clean_tmps_days=30

I tend to have many distractions and work on many projects at the same
time.  I don't always know when I'm finished.  Sometimes I just lose
interest.  I often don't remember to clean up after myself.

These settings in periodic.conf allow me to set up temporary workspaces in 
/tmp.  If I keep working on a project, my files remain.  If I forget about 
it for a month, periodic will clean up my mess.


If someday the default behavior were changed to make /tmp a memory-mounted 
filesystem or to clean it out on every reboot, I think I could set 
daily_clean_tmps_dirs to another directory and move my sandbox someplace 
else.  I would very much appreciate some warning, but this would not be a 
problem for me.

___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Guaranteed kernel panic with ZFS + nullfs

2011-03-17 Thread Luke Marsden
Hi all,

The following script seems to cause a guaranteed kernel panic on 8.1-R,
8.2-R and 8-STABLE as of today (2011-03-16), with both ZFS v14/15, and
v28 on 8.2-R with mm@ patches from 2011-03. I suspect it may also affect
9-CURRENT but have not tested this yet.

#!/usr/local/bin/bash
export POOL=hpool # change this to your pool name
sudo zfs destroy -r $POOL/foo
sudo zfs create $POOL/foo
sudo zfs set mountpoint=/foo $POOL/foo
sudo mount -t nullfs /foo /bar
sudo touch /foo/baz
ls /bar # should see baz
sudo zfs umount -f $POOL/foo # seems okay (ls: /bar: Bad file
descriptor)
sudo zfs mount $POOL/foo # PANIC!

Can anyone suggest a patch which fixes this? Preferably against
8-STABLE :-)

I also have a more subtle problem where, after mounting and then quickly
force-unmounting a ZFS filesystem (call it A) with two nullfs-mounted
filesystems and a devfs filesystem within it, running ls on the
mountpoint of the parent filesystem of A hangs.

I'm working on narrowing it down to a shell script like the above - as
soon as I have one I'll post a followup.

This latter problem is actually more of an issue for me - I can avoid
the behaviour which triggers the panic (if it hurts, don't do it), but
I need to be able to perform the actions which trigger the deadlock
(mounting and unmounting filesystems).

This also affects 8.1-R, 8.2-R, 8-STABLE and 8.2-R+v28.

It seems to be the zfs umount -f process which hangs and triggers
further accesses to the parent filesystem to hang. Note that I have
definitely correctly unmounted the nullfs and devfs mounts from within
the filesystem before I force the unmount. Unfortunately the -f is
necessary in my application.

After the hang:

hybrid@dev3:/opt/HybridCluster$ sudo ps ax |grep zfs
   41  ??  DL 0:00.11 [zfskern]
 3751  ??  D  0:00.03 /sbin/zfs unmount -f hpool/hcfs/filesystem1

hybrid@dev3:/opt/HybridCluster$ sudo procstat -kk 3751
  PIDTID COMM TDNAME
KSTACK   
 3751 100264 zfs  -mi_switch+0x16f
sleepq_wait+0x42 _sleep+0x31c zfsvfs_teardown+0x269 zfs_umount+0x1a7
dounmount+0x28a unmount+0x3c8 syscall+0x1e7 Xfast_syscall+0xe1 

hybrid@dev3:/opt/HybridCluster$ sudo procstat -kk 41
  PIDTID COMM TDNAME
KSTACK   
   41 100058 zfskern  arc_reclaim_thre mi_switch+0x16f
sleepq_timedwait+0x42 _cv_timedwait+0x129 arc_reclaim_thread+0x2d1
fork_exit+0x118 fork_trampoline+0xe 
   41 100062 zfskern  l2arc_feed_threa mi_switch+0x16f
sleepq_timedwait+0x42 _cv_timedwait+0x129 l2arc_feed_thread+0x1be
fork_exit+0x118 fork_trampoline+0xe 
   41 100090 zfskern  txg_thread_enter mi_switch+0x16f
sleepq_wait+0x42 _cv_wait+0x111 txg_thread_wait+0x79 txg_quiesce_thread
+0xb5 fork_exit+0x118 fork_trampoline+0xe 
   41 100091 zfskern  txg_thread_enter mi_switch+0x16f
sleepq_timedwait+0x42 _cv_timedwait+0x129 txg_thread_wait+0x3c
txg_sync_thread+0x355 fork_exit+0x118 fork_trampoline+0xe 

I will continue to attempt to create a shell script which makes this
latter bug easily reproducible.

In the meantime, what further information can I gather? I will build a
debug kernel in the morning.

If it helps accelerate finding a solution to this problem, Hybrid Logic
Ltd might be able to fund a small bounty for a fix. Contact me off-list
if you can help in this way.

-- 
Best Regards,
Luke Marsden
CTO, Hybrid Logic Ltd.

Web: http://www.hybrid-cluster.com/
Hybrid Web Cluster - cloud web hosting

Phone: +441172232002 / +16179496062



___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


ZFS hanging with simultaneous zfs recv and zfs umount -f

2011-02-01 Thread Luke Marsden
Hi FreeBSD-{stable,current,fs},

I've reliably been able to cause the ZFS subsystem to hang under FreeBSD
8.1-RELEASE under the following conditions:

Another server is sending the server an incremental snapshot stream
which is in the process of being received with:

zfs send -I $OLD $FS@$NEW |ssh $HOST zfs recv -uF $FILESYSTEM

On the receiving server, we forcibly unmount the filesystem which is
being received into with:

zfs umount -f $FILESYSTEM

(the filesystem may or may not actually be mounted)

This causes any ZFS file operation (such as ls) to hang forever and
when attempting to reboot the machine, it goes down and stops responding
to pings, but then hangs somewhere in the reboot process and needs a
hard power cycle. Unfortunately we don't have a remote console on this
machine.

I understand this is a fairly harsh use case but the ideal behaviour
would be for the zfs recv to emit an error message (if necessary) rather
than rendering the entire machine unusable ;-)

Let me know if you need any further information. I appreciate that
providing a script to reliably reproduce the problem, testing on
-CURRENT and 8.2-PRE, and submitting a bug report will help... I will do
this in due course, but don't have time right now -- just wanted to get
this bug report out there first in case there's an obvious fix.

Thank you for supporting ZFS on FreeBSD!!

-- 
Best Regards,
Luke Marsden
CTO, Hybrid Logic Ltd.

Web: http://www.hybrid-cluster.com/
Hybrid Web Cluster - cloud web hosting

Phone: +441172232002 / +16179496062



___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Virtio drivers for FreeBSD on KVM

2010-12-30 Thread Luke Marsden
Hi everyone,

With more cloud infrastructure providers using KVM than ever before, the
importance of having FreeBSD performant as a guest on these
infrastructures [1], [2], [3] is increasing. It seems that using Virtio
drivers give a pretty significant performance boost [4], [5].

There was a NetBSD driver, and there seems to (have been) some work
happening to port this to DragonFly BSD at [6] and [7] -- does anyone
know if this code is stable, or if it has stalled, or if anyone's
working on it?

It may be possible to use the work done on the Xen paravirtualised
network and disk drivers, combined with the NetBSD code, as starting
point for an implementation?

My company might soon be in a position to sponsor the work to get this
completed and available at some point in FreeBSD 8. I'd be very
interested to hear from anyone who's involved, or who might like to be.

-- 
Best Regards,
Luke Marsden
CTO, Hybrid Logic Ltd.

Web: http://www.hybrid-cluster.com/
Hybrid Web Cluster - cloud web hosting

Mobile: +447791750420


[1] http://www.elastichosts.com/
[2] http://www.cloudsigma.com/
[3] http://beta.brightbox.com/
[4] http://arstechnica.com/civs/viewtopic.php?f=16t=34039
[5] blog.loftninjas.org/2008/10/22/kvm-virtio-network-performance/
[6] kerneltrap.org/mailarchive/dragonflybsd-kernel/2010/10/23/6884356
[7] http://gitorious.org/virtio-drivers


___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: Switchover to CAM ATA?

2010-04-26 Thread Luke Dean



On Thu, 22 Apr 2010, Alexander Motin wrote:


So what is the public opinion: Is the lack of ataraid(4) fatal or we can
live without it?


Hardware mirroring is very important to me.  It's the only solution I'm 
aware of for realtime protection from drive failure in systems that boot 
multiple operating systems.

___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


subscribe

2003-01-08 Thread Luke Marsden
subscribe


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-current in the body of the message



RE: subscribe

2003-01-08 Thread Luke Marsden
bleh, okay then, if I have to ;)

sorry guys, not the best introduction to the list.. but yeah, hey.

-luke

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] 
Sent: 08 January 2003 15:45
To: Luke Marsden
Subject: Re: subscribe

No.  Subscibe yourself. 

:) 

Send an e-mail to [EMAIL PROTECTED] with the line subscribe
freebsd-current in the body. 


[snip]


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-current in the body of the message



Re: cpu name

1999-11-20 Thread Luke Hollins

 printf("CPU: ");
 Look again, the AMD identification can fill cpu_model using cpuid.
 
 The code doesn't appear to have changed lately, so if there is a
 problem it's probably a matter of some processor being incorrectly
 identified as supporting the feature.  Or the processor is broken.

I never reported it because I usually use -O2 , but I have a box that ran
-current up until very recently that was updated fairly often, and it showed
the CPU name as that \^E alot. I checked for sure and it did get the right
id, 0x580 , but still showed \^E instead of whats defined for 0x580

Luke



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



RE: protecting from attacks

1999-10-29 Thread Luke

I have been trying to figure out a sane method of stopping this one:
while(1) {
fork();
}

on a machine with no limits the load went to 290+ I tried fiddling with
limits and got it down to making the load 2-3 but the limits are ridiculous.
I didn't look in mail archives so sorry if this has been discussed before

Luke



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: ata driver (again)

1999-10-01 Thread Luke

 A dmesg to start with would be fine that way I may be able to reproduce
 it here pn semilar HW.
wdc0: unit 0 (wd0): ST39140A, LBA, DMA, 32-bit, multi-block-16,
  sleep-hack
wd0: 8693MB (17803440 sectors), 1108 cyls, 255 heads, 63 S/T, 512 B/S

(sleep-hack I turned on last night) 

  /kernel: wd0: wdtimeout() DMA status 4
 Thats not the ata driver thats the wd driver :)
 Looks like interrupt lossage to me...
 
yes it is, it happens to me with either driver. I keep suspecting it
is something other than the disk or OS , like the motherboard or something
but I have no idea how to find out.
Thanks

Luke
---
To be sure of hitting the target, shoot first and, whatever you hit,
call it the target.
XFMail 1.3 FreeBSD-current


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: gcc optimizer in -current system ...

1999-09-23 Thread Luke

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

  well, I just did -O3 -mpentium, and it both compiled cleanly, and
  appears
 
 Try build world with that kernel running. :-)
 
 I should have mentioned that I'm speaking from fairly stale experience.
 I got bitten by this last year and haven't tried since.

I have -03 -mpentium -fomit-frame-pointer and the only inexpicable
problem I have is I cant compile groff with more than -O for some reason. 
Other than that make world and make release have worked many times. 
I wonder does anyone think [or have stats] on whether O3-6 and things like
- -ffast-math actually make any difference?

Luke


-BEGIN PGP SIGNATURE-
Version: PGPfreeware 5.0i for non-commercial use
Charset: noconv

iQA/AwUBN+o/w/VVg78E7PJuEQKUUQCfchhb9H521psWgwpe36w0gyojVkAAoK5w
Fghbeaf0nxhgNrBjHDae4Bgg
=s/Ik
-END PGP SIGNATURE-


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: More benchmarking stuff...

1999-09-17 Thread Luke

 My results running postmark on a PII-450 with 196MB RAM and an IBM Deskstar
 DJNA 352030 running -current as of a few weeks ago are:
 1000/5UFS+softupdates MFS NFS
 
 tr/s  218 1562100
 read kb/s 699.05  4870321.56
 write kb/s714.77  4980328.79

I tried it on my -current of 2 days ago:
1000/5 on a UFS+softupdates K6-2/300 64MB seagate 9.1 7200 EIDE

tr/s   126
read kb/s 406.01
write kb/s 415.14




To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: more

1999-09-17 Thread Luke


On 12-Sep-99 Matthew Dillon wrote:
:On Sun, 12 Sep 1999, Chris Costello wrote:
:
: On Sun, Sep 12, 1999, Rodney W. Grimes wrote:
:  Not with me, and I am sure Warner and a few other die hard ``more''
:  users
:  are going to be chimming in here as soon as they get to this...
: 
:Down with "n"!  Up with "/"!
:
:No, up with '?'.
:
:--
: Ben Rosengart
 
 Up with '?' followed by 'n'!
 

that bold Search: scared me earlier. It seems to friendly!

Luke



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: more

1999-09-12 Thread Luke

On 12-Sep-99 Chris Costello wrote:
 On Sun, Sep 12, 1999, Rodney W. Grimes wrote:
 Not with me, and I am sure Warner and a few other die hard ``more'' users
 are going to be chimming in here as soon as they get to this...
 
Down with "n"!  Up with "/"!
 
I agree I didn't even know there was an "n"

Luke



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



AMD K6-2 CPUID output oddity

1999-06-08 Thread Luke
on current from @jun3 I noticed something odd from dmesg:

CPU: \^E (330.22-MHz 586-class CPU)

It is a K6-2/300 set at 330, the wt_alloc stuff all shows up and nothing seems
broken anywhere, just thought I'd mention it.


Luke
__
XFMail
--


To Unsubscribe: send mail to majord...@freebsd.org
with unsubscribe freebsd-current in the body of the message



RE: Buildworld fails on today 3.1-STABLE!

1999-02-16 Thread Luke
 === share/doc/psd/title
 touch _stamp.extraobjs
 (cd /usr/obj/src/share/doc/psd/title; groff -mtty-char -Tascii -ms -o1-
 /usr/obj/src/share/doc/psd/title/Title) |_ gzip -cn  Title.ascii.gz
 groff: can't find `DESC' file
 groff:fatal error: invalid device `ascii'

This has happened to me many times with various versions of current and
3.x , and its always fixed by lowering the -O# # , I don't know why I just know
it works :). I re cvsupped several times once, and erased obj, and it always
did it until i lowered the -O.

---

E-Mail: Luke l...@aus.org
Sent by XFMail
--

To Unsubscribe: send mail to majord...@freebsd.org
with unsubscribe freebsd-current in the body of the message



Re: Netscape | Mozilla

1999-01-28 Thread Luke

On 28-Jan-99 Ollivier Robert wrote:
 According to Luke:
 linux_lib port. [why does it install into / anyways]
 
 The standard sysinstall has been making a link into /usr/compat for months
 if not years :-)

Some people haven't used sysinstall for years :

E-Mail: Luke l...@aus.org
Sent by XFMail
--

To Unsubscribe: send mail to majord...@freebsd.org
with unsubscribe freebsd-current in the body of the message


Re: Netscape | Mozilla

1999-01-28 Thread Luke

On 28-Jan-99 Ollivier Robert wrote:
 According to Luke:
 This is 4.5b1 communicator, and locks up X often enough I dont use it.
 
 Beta versions of 4.5 were bad (in that case b2 was far worse than b1)
 whereas 4.5 release is more or less stable. (it still crashes from time to
 time but not that often).

I think my netscape problem is solved, I installed ports/linux_lib and
www/linux_netscape, and so far its working well, even after trying to crash it.

---

E-Mail: Luke l...@aus.org
Sent by XFMail
--

To Unsubscribe: send mail to majord...@freebsd.org
with unsubscribe freebsd-current in the body of the message


RE: Netscape | Mozilla

1999-01-27 Thread Luke
 Also, anyone even bothered to file the communicator 4.5 binary?

Hopefully this helps [4.0-current -DNOSECURE -O2 -pipe]

Netscape: FreeBSD/i386 compact demand paged dynamically linked executable
This is 4.5b1 communicator, and locks up X often enough I dont use it.

netscape.bin: unknown pure executable
This is a 3.x version and doesnt lock up X but can't view alot of pages properly
It does crash occasionally , but just coredumps.

I have a 1990429 mozilla built but it was built on 3.0 and doesnt work very
well, I am trying to build a new one.

 Matt or others might want to slap me for being way off but afaik the VM
 stuff was tied with the swapping and not paging. So this would mean that
 the VM_STACK cannot be the problem.

what is this VM_STACK option?

---

E-Mail: Luke l...@aus.org
Sent by XFMail
--

To Unsubscribe: send mail to majord...@freebsd.org
with unsubscribe freebsd-current in the body of the message


RE: Netscape | Mozilla

1999-01-27 Thread Luke
 I wrote a port for Linux Netscape if anyone wants it. I sent it in but it
 came back to me with some comments about netscape port proliferation.

I tried that one but it wants linux_lib installed on /compat and theres
no room. Do you know if its ok to make /compat a link to somewhere else for the
linux_lib port. [why does it install into / anyways]
---

E-Mail: Luke l...@aus.org
Sent by XFMail
--

To Unsubscribe: send mail to majord...@freebsd.org
with unsubscribe freebsd-current in the body of the message


Re: 4.0-Current, netscape halts system

1999-01-25 Thread Luke
 Aha! That figures.
 
 Since I upgraded to CURRENT, with its login.conf which defaults to
 unlimited resources, my frequent netscape core dumps have gone away.
 
 I hadn't realized why until now.
 
 Suggestion: wwhen people complain about Netscape, ask them to mail us
 back the output of ``ulimit -a''.
 
My login.conf has unlimited for everything for myself and netscape still
crashes/locks up. And I have 64M/175swap so I dont think its running out of
memory.
---

E-Mail: Luke l...@aus.org
Sent by XFMail
--

To Unsubscribe: send mail to majord...@freebsd.org
with unsubscribe freebsd-current in the body of the message


4.0-Current, netscape halts system

1999-01-24 Thread Luke
I built 4.0 and after getting over the libcrypt thing it worked ok.
But now every copy of netscape I have [5, all freebsd] 
freezes the system, waiting, switching to ttyv* dont help. and it doesnt dump
core or syslog anything. Im not exactly sure what info would be helpful.
Anyways other than netscape it works great

---

E-Mail: Luke l...@aus.org
Sent by XFMail
--

To Unsubscribe: send mail to majord...@freebsd.org
with unsubscribe freebsd-current in the body of the message


Re: 4.0-Current, netscape halts system

1999-01-24 Thread Luke

On 24-Jan-99 Kenneth Wayne Culver wrote:
 I've given up on Netscape.  On some FreeBSD-based machines
 I have, it just core dumps... on others it works.  Nobody
 seems to know (or care) why, so I would suggest following
 the development of Gzilla and Amaya.
 
 Of course, it would be immensely helpful if we knew what
 mysterious person within netscape provided the port to
 begin with (Hey, now there's a great idea) so we might ask
 some questions.  But, that's what you get for free...
 
 
 If you are having a problem with Netscape for FreeBSD, then just try the
 Linux version.

I was thinking of doing that, since FreeBSD can run BSDi,SCO, Linux etc
binaries, [I dont have Linux emulation installed (or even looked into)] which
one would be the best to try. It's become tiring since netscape forces hitting
the reset switch. I shouldnt be complaining :) I had 3.0-RELEASE and just had
to have that new number ..

---

E-Mail: Luke l...@aus.org
Sent by XFMail
--

To Unsubscribe: send mail to majord...@freebsd.org
with unsubscribe freebsd-current in the body of the message


Re: make world broken in /lib

1999-01-22 Thread Luke
 me too
 
 -DNOSECURE seems to help but it hasn't completed yet.
 
 julian

me too, but figured the longer strings with the crypt -DNOSECURE makes
must be better :). Anyone know of an easy or possible way to turn a DES crypted
passwd file into the normal libcrypt kind?

---

E-Mail: Luke l...@aus.org
Sent by XFMail
--

To Unsubscribe: send mail to majord...@freebsd.org
with unsubscribe freebsd-current in the body of the message