Re: k3b causing system freeze/panic

2010-07-29 Thread Dag-Erling Smørgrav
Szilveszter Adam szi...@bsd.hu writes:
 Also, if I remember correctly, for people with a bit more recent
 controllers ATA_CAM offers other advantages, but those do not affect
 me. So, for me ATA_CAM is just a better version of the ata(4)
 driver...

It's the exact same driver, but plugged into CAM.

DES
-- 
Dag-Erling Smørgrav - d...@des.no
___
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: Panic booting vmware i386 after SRAT update

2010-07-29 Thread John Baldwin
On Wednesday, July 28, 2010 1:37:42 pm m...@freebsd.org wrote:
 I have a 2 cpu virtual image of FreeBSD current.  It panics during
 boot after building in the NUMA support.
 
 I'll transcribe the SRAT bootverbose messages and panic message as best I can.
 
 Table 'SRAT' at 0xfef07f6
 SRAT: Found table at 0xfef07f6
 SRAT: Found memory domain 0 addr 0 len a: enabled
 SRAT: Found memory domain 0 addr 10 len ff0: enabled
 
 then some MADT: messages about finding cpu 0 and 1
 
  cpu0 (BSP): APIC ID:  0
  cpu1 (AP): APIC ID:  1
 panic: SRAT: CPU with APIC ID 0 is not known
 
 I'm playing around now with trying to figure out what went missing,
 but I thought I'd send this out now.

Hmm, check_domains() in srat.c should reject the SRAT table in this case.
Oh, I see the problem, try this:

Index: srat.c
===
--- srat.c  (revision 210552)
+++ srat.c  (working copy)
@@ -150,7 +150,8 @@
for (i = 0; i  num_mem; i++) {
found = 0;
for (j = 0; j = MAX_APIC_ID; j++)
-   if (cpus[j].domain == mem_info[i].domain) {
+   if (cpus[j].enabled 
+   cpus[j].domain == mem_info[i].domain) {
cpus[j].has_memory = 1;
found++;
}

-- 
John Baldwin
___
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


/tmp and swap space

2010-07-29 Thread gahn
hi all:

is it possible to create /tmp directory under swap space? under solaris, it is 
automatically created under swap unless one specifically instructs the system 
not to do so..

tia


  
___
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: /tmp and swap space

2010-07-29 Thread Rui Paulo

On 29 Jul 2010, at 16:35, gahn wrote:

 hi all:
 
 is it possible to create /tmp directory under swap space? under solaris, it 
 is automatically created under swap unless one specifically instructs the 
 system not to do so..

echo tmpmfs=YES  /etc/rc.conf

Regards,
--
Rui Paulo


___
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: /tmp and swap space

2010-07-29 Thread Matthew Seaman
On 29/07/2010 16:35, gahn wrote:

 is it possible to create /tmp directory under swap space? under
 solaris, it is automatically created under swap unless one specifically
 instructs the system not to do so..

Yes, this is certainly possible.  Just add:

   tmpmfs=YES
   tmpsize=32m

to /etc/rc.conf, and then either reboot, or run:

   /etc/rc.d/tmp start

Note that this will mount a /tmp filesystem on top of anything that's
already there, thus making those files inaccessible until you unmount
again.

(use whatever value of 32m you prefer, of course)

Cheers,

Matthew



signature.asc
Description: OpenPGP digital signature


Re: /tmp and swap space

2010-07-29 Thread David Wolfskill
On Thu, Jul 29, 2010 at 08:35:30AM -0700, gahn wrote:
 hi all:
 
 is it possible to create /tmp directory under swap space?

Certainly; case in point:

localhost(9.0-C)[4] uname -v
FreeBSD 9.0-CURRENT #71 r210558M: Wed Jul 28 07:46:04 PDT 2010 
r...@localhost:/usr/obj/usr/src/sys/CANARY 
localhost(9.0-C)[5] df -h /tmp
FilesystemSizeUsed   Avail Capacity  Mounted on
tmpfs 2.0G 12K2.0G 0%/tmp
localhost(9.0-C)[6] 

 under solaris, it is automatically created under swap unless one specifically 
 instructs the system not to do so..

Quite so.

What I do -- both in CURRENT as well as stable/7 and stable/8 -- is:

localhost(9.0-C)[6] grep tmpfs /etc/fstab
tmpfs   /tmptmpfs   rw,size=2g  0  0
localhost(9.0-C)[7] 

Note: doing this causes a message:

WARNING: TMPFS is considered to be a highly experimental feature in FreeBSD.

to be issued.  That said, I've been using it quite a bit in the last
couple of months, and have never had an issue with it of which I'm aware.

The way I used to set up swap-backed /tmp was to have the following in
/etc/rc.conf:

# tmpmfs=YES
# tmpsize=2048m
# tmpmfs_flags=-i4096 -o async

(but since I'm now using tmpfs, I commented the above out in /etc/rc.conf).


Peace,
david   (a fan of swap-backed /tmp)
-- 
David H. Wolfskill  da...@catwhisker.org
Depriving a girl or boy of an opportunity for education is evil.

See http://www.catwhisker.org/~david/publickey.gpg for my public key.


pgp9VJ5HTF6LC.pgp
Description: PGP signature


Re: Panic booting vmware i386 after SRAT update

2010-07-29 Thread mdf
On Thu, Jul 29, 2010 at 7:18 AM, John Baldwin j...@freebsd.org wrote:
 On Wednesday, July 28, 2010 1:37:42 pm m...@freebsd.org wrote:
 I have a 2 cpu virtual image of FreeBSD current.  It panics during
 boot after building in the NUMA support.

 I'll transcribe the SRAT bootverbose messages and panic message as best I 
 can.

 Table 'SRAT' at 0xfef07f6
 SRAT: Found table at 0xfef07f6
 SRAT: Found memory domain 0 addr 0 len a: enabled
 SRAT: Found memory domain 0 addr 10 len ff0: enabled

 then some MADT: messages about finding cpu 0 and 1

  cpu0 (BSP): APIC ID:  0
  cpu1 (AP): APIC ID:  1
 panic: SRAT: CPU with APIC ID 0 is not known

 I'm playing around now with trying to figure out what went missing,
 but I thought I'd send this out now.

 Hmm, check_domains() in srat.c should reject the SRAT table in this case.
 Oh, I see the problem, try this:

 Index: srat.c
 ===
 --- srat.c      (revision 210552)
 +++ srat.c      (working copy)
 @@ -150,7 +150,8 @@
        for (i = 0; i  num_mem; i++) {
                found = 0;
                for (j = 0; j = MAX_APIC_ID; j++)
 -                       if (cpus[j].domain == mem_info[i].domain) {
 +                       if (cpus[j].enabled 
 +                           cpus[j].domain == mem_info[i].domain) {
                                cpus[j].has_memory = 1;
                                found++;
                        }

This appears to fix the issue for me.

Thanks,
matthew
___
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: /tmp and swap space

2010-07-29 Thread Pawel Worach
On Jul 29, 2010, at 17:35, gahn wrote:
 hi all:
 
 is it possible to create /tmp directory under swap space? under solaris, it 
 is automatically created under swap unless one specifically instructs the 
 system not to do so..

Why not use tmpfs ?

echo tmpfs /tmptmpfs   rw  0   
0  /etc/fstab
mount /tmp

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


Playing with Vnet in Jail on FreeBSD

2010-07-29 Thread Luiz Gustavo S. Costa
I just published in my recent blog (this is the first post) about the
use of Vnet Jail in FreeBSD.

See and know what you think.

http://world-unix.com/blog/2010/07/29/playing-with-vnet-in-jail-on-freebsd/

Thank you.

-- 
Luiz Gustavo Costa (Powered by BSD)
*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+
mundoUnix - Consultoria em Software Livre
http://www.mundounix.com.br
ICQ: 2890831 / MSN: cont...@mundounix.com.br
Tel: 55 (41) 9844-3701
Blog: http://www.luizgustavo.pro.br
___
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: /tmp and swap space

2010-07-29 Thread Lucius Windschuh
Hi gahn.

2010/7/29 gahn ipfr...@yahoo.com:
 hi all:

 is it possible to create /tmp directory under swap space? under solaris, it 
 is automatically created under swap unless one specifically instructs the 
 system not to do so..

Yes you can, by mounting a tmpfs there. fstab line:
tmpfs   /tmptmpfs   rw  0   0
It uses swap space if neccessary.

But beware: TMPFS is considered to be a highly experimental feature in FreeBSD.
Well, the word highly is probably exaggerated, but if I remember
correctly, there are still some rough edges (sendfile? double copies
of its content? I'm not sure). I use it on my machines without
problems.

Regards

Lucius
___
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: Panic booting vmware i386 after SRAT update

2010-07-29 Thread David Cornejo
On Thu, Jul 29, 2010 at 4:18 AM, John Baldwin j...@freebsd.org wrote:

 On Wednesday, July 28, 2010 1:37:42 pm m...@freebsd.org wrote:
  I have a 2 cpu virtual image of FreeBSD current.  It panics during
  boot after building in the NUMA support.
 
  I'll transcribe the SRAT bootverbose messages and panic message as best I
 can.
 
  Table 'SRAT' at 0xfef07f6
  SRAT: Found table at 0xfef07f6
  SRAT: Found memory domain 0 addr 0 len a: enabled
  SRAT: Found memory domain 0 addr 10 len ff0: enabled
 
  then some MADT: messages about finding cpu 0 and 1
 
   cpu0 (BSP): APIC ID:  0
   cpu1 (AP): APIC ID:  1
  panic: SRAT: CPU with APIC ID 0 is not known
 
  I'm playing around now with trying to figure out what went missing,
  but I thought I'd send this out now.

 Hmm, check_domains() in srat.c should reject the SRAT table in this case.
 Oh, I see the problem, try this:

 Index: srat.c
 ===
 --- srat.c  (revision 210552)
 +++ srat.c  (working copy)
 @@ -150,7 +150,8 @@
for (i = 0; i  num_mem; i++) {
found = 0;
for (j = 0; j = MAX_APIC_ID; j++)
 -   if (cpus[j].domain == mem_info[i].domain) {
 +   if (cpus[j].enabled 
 +   cpus[j].domain == mem_info[i].domain) {
cpus[j].has_memory = 1;
found++;
}

 --
 John Baldwin
 ___
 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


Works on amd64 kernel under VMWare, thanks!

dave c
___
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: firefox is stuck in getbuf()

2010-07-29 Thread Gavin Atkinson
On Wed, 21 Jul 2010, Gavin Atkinson wrote:
 On Tue, 2010-07-20 at 16:29 +0300, Kostik Belousov wrote:
  On Tue, Jul 20, 2010 at 10:58:00AM +0800, David Xu wrote:
   With newest -HEAD code, firefox is stuck in getbuf().
   
   top
   
   last pid:  1814;  load averages:  0.00,  0.05,  0.07 
   
   up 0+00:37:11  10:54:01
   135 processes: 1 running, 134 sleeping
   CPU:  3.7% user,  0.0% nice,  0.6% system,  0.0% interrupt, 95.7% idle
   Mem: 259M Active, 393M Inact, 151M Wired, 1484K Cache, 111M Buf, 186M Free
   Swap: 2020M Total, 2020M Free
   
 PID USERNAMETHR PRI NICE   SIZERES STATE   C   TIME   WCPU 
   COMMAND
1427 davidxu   1  450   114M   101M select  0   1:24  0.29% Xorg
1588 davidxu  10  440   279M   145M getbuf  0   2:15  0.00% 
   firefox-bin
   
   
   procstat  -k 1588
 PIDTID COMM TDNAME   KSTACK 
   
1588 100200 firefox-bin  initial thread   mi_switch sleepq_switch 
   sleepq_wait _sleep getdirtybuf flush_deplist softdep_sync_metadata 
   ffs_syncvnode ffs_fsync VOP_FSYNC_APV fsync syscallenter syscall 
   Xint0x80_syscall
1588 100207 firefox-bin  -mi_switch sleepq_switch 
   sleepq_catch_signals sleepq_wait_sig _cv_wait_sig seltdwait poll 
   syscallenter syscall Xint0x80_syscall
1588 100208 firefox-bin  -mi_switch sleepq_switch 
   sleepq_catch_signals sleepq_wait_sig _sleep __umtx_op_cv_wait _umtx_op 
   syscallenter syscall Xint0x80_syscall
1588 100209 firefox-bin  -mi_switch sleepq_switch 
   sleepq_catch_signals sleepq_timedwait_sig _sleep __umtx_op_cv_wait 
   _umtx_op syscallenter syscall Xint0x80_syscall
1588 100210 firefox-bin  -mi_switch sleepq_switch 
   sleepq_catch_signals sleepq_timedwait_sig _sleep __umtx_op_cv_wait 
   _umtx_op syscallenter syscall Xint0x80_syscall
1588 100216 firefox-bin  -mi_switch sleepq_switch 
   sleepq_catch_signals sleepq_wait_sig _sleep __umtx_op_cv_wait _umtx_op 
   syscallenter syscall Xint0x80_syscall
1588 100220 firefox-bin  -mi_switch sleepq_switch 
   sleepq_wait _sleep getdirtybuf flush_deplist softdep_sync_metadata 
   ffs_syncvnode ffs_fsync VOP_FSYNC_APV fsync syscallenter syscall 
   Xint0x80_syscall
1588 100238 firefox-bin  -mi_switch sleepq_switch 
   sleepq_catch_signals sleepq_wait_sig _sleep __umtx_op_cv_wait _umtx_op 
   syscallenter syscall Xint0x80_syscall
1588 100239 firefox-bin  -mi_switch sleepq_switch 
   sleepq_catch_signals sleepq_wait_sig _sleep __umtx_op_cv_wait _umtx_op 
   syscallenter syscall Xint0x80_syscall
1588 100240 firefox-bin  -mi_switch sleepq_switch 
   sleepq_catch_signals sleepq_wait_sig _sleep __umtx_op_cv_wait _umtx_op 
   syscallenter syscall Xint0x80_syscall
  
  Can you, please, do the following:
  show the backtraces for the system processes, in particular, syncer,
  bufdaemon, softdepflush daemon, pagedaemon and vm ?
  for the stuck firefox thread, find the address of the buffer
  supplied as an argument to getdirtybuf, and print the *(struct buf *)addr ?
  This can be done on the live/stuck system using kgdb on /dev/mem.
 
 I can relatively easily recreate this, see my thread on -current on the
 17th July (Filesystem wedge, SUJ-related?), which (and the followup
 emails) contain additional info.  I'm currently trying to find the
 commit responsible for introducing this, and have established that a

OK, sorry for the delay.  I have the information requested.

Please see http://people.freebsd.org/~gavin/rho-fs-hang.txt

I've started to try and narrow down where exactly the hangs started:

r208700 - June 1st  - seems to work fime
r209425 - June 22st - hangs occur

If you need any more info, let me know.

Thanks,

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