Maciej Gabryszak | 2 Sep 23:35 2014
Picon

Re: FreeBSD 10.0 + kernel crash


Hi Jason,

I turned off powerd after your mail.
Server has frozen after 30-40 minutes.

Best regards,
Maciej

On 02.09.2014 22:16, Jason Hellenthal wrote:
> Attach your crash dump ? (text only)
>
> Also disable powerd… for the meantime.
>
> On Sep 2, 2014, at 15:12, Maciej Gabryszak 
> <maciej.gabryszak <at> gmail.com> wrote:
>
>> Hi All,
>>
>> I configurated freeBSD 10.0 at my servers.
>> Two have configuration: CARP+PF.
>> Sometimes one of them crash.
>> Hardware: Supermicro servers
>>
>> Debug log:
>> Unread portion of the kernel message buffer:
>> <118>Stopping powerd.
>> <118>Waiting for PIDS: 2913.
>> <118>Stopping devd.
>> <118>Waiting for PIDS: 2578.
(Continue reading)

Maciej Gabryszak | 2 Sep 22:12 2014
Picon

FreeBSD 10.0 + kernel crash


Hi All,

I configurated freeBSD 10.0 at my servers.
Two have configuration: CARP+PF.
Sometimes one of them crash.
Hardware: Supermicro servers

Debug log:
Unread portion of the kernel message buffer:
<118>Stopping powerd.
<118>Waiting for PIDS: 2913.
<118>Stopping devd.
<118>Waiting for PIDS: 2578.
<118>Writing entropy file:.
<118>.
<118>Terminated
<118>Aug 29 19:54:04 rack02 syslogd: exiting on signal 15
spin lock 0xffffffff814fa030 (smp rendezvous) held by 0xfffff8035506d000 
(tid 100157) too long
panic: spin lock held too long
cpuid = 2
KDB: stack backtrace:
#0 0xffffffff808e7dd0 at kdb_backtrace+0x60
#1 0xffffffff808af8b5 at panic+0x155
#2 0xffffffff8089cb71 at _mtx_lock_spin_cookie+0x241
#3 0xffffffff80c7ef54 at smp_targeted_tlb_shootdown+0xf4
#4 0xffffffff80c80922 at pmap_invalidate_all+0x232
#5 0xffffffff80c8736f at pmap_remove_pages+0x6af
#6 0xffffffff80b104c0 at vmspace_exit+0xa0
(Continue reading)

Oriental Sensation | 29 Aug 08:44 2014
Picon

Sudden and strange problem

Hi guys,

No idea if this is related to FreeBSD but hopefully someone could help me.

Couple of days ago I upgraded to 10.1-PRERELEASE and something
happened. My configuration is a host with 2 jails -- the host runs
unbound and the two jails use it to resolve. There's one local zone
entitled "local" and few hosts to identify the jails: dbs.local,
smtp.local, www.local, etc. One jail runs dovecot+postfix and the
other runs a web server.

There's a really strange thing going on because occasionally trying to
telnet from the web server to the other jail (port 25 or 143) takes
few seconds, but most of the time it takes a millisecond. I did a
'truss' and 'drill' and I am attaching 2 links to the logs:

http://pastebin.com/rUrq10vd
(look at line 276, I surrounded it with empty lines because that's
where the delay happens -- this time for 2 seconds)

http://pastebin.com/Q3W3dhLM
(again, I inserted spaces around line #151 where 5 seconds in delay -- twice).

By the way, running the same commands few times after, no delay is apparent.

Anyone got an idea what on earth is causing this?

Thanks in advance for any help.

/OriS
(Continue reading)

Steven Stewart-Gallus | 28 Aug 20:41 2014
Picon

Can anyone help clarify details about the FreeBSD system call interface?

Hi, I am interested in learning more about how FreeBSD works.  I have
gathered some information on some of FreeBSD's undocumented system
calls and am not sure it is correct.  Please correct me if I am wrong
about the following system calls.  I would be happy to submit some
patches to help out with documentation after I get some confirmation
and clarification.

 int sys_yield(void);
 int sys_sched_yield(void);

Not sure how sys_yield differs from sched_yield.  sys_yield is defined
in sys/kern/kern_synch.c and sys_sched_yield is defined in
sys/kern/p1003_1b.c.

 int sys_sstk(int incr);

sys/vm/vm_mmap.c defines this as:

 /*
  * MPSAFE
  */
 /* ARGSUSED */
 int
 sys_sstk(td, uap)
     struct thread *td;
     struct sstk_args *uap;
 {
     /* Not yet implemented */
     return (EOPNOTSUPP);
 }
(Continue reading)

Wojciech Puchar | 28 Aug 12:26 2014
Picon

automatically nfs-boot different systems for 32 and 64 bit machine

how can i boot different systems automatically depending if 32 or 64 bit 
machine netboots?

ideal would be simple PXE program that would check CPU architecture and 
then load different files by TFTP. i already took care about the rest.

do such a program exist?
_______________________________________________
freebsd-hackers <at> freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscribe <at> freebsd.org"

Chenguang Li | 28 Aug 08:21 2014
Picon

On changing rand(3) to random(3) in awk(1)


Below is a summary of my previous posts to freebsd-questions:

Since the original rand(3) could not provide a fair, "one-shot" randomness in awk(1),
I am writing this to suggest that we change *rand(3) to *random(3), which only requires
modifying a few lines of code[1], but will result in better random number generation.
BTW, OSX & gawk already have this. Previous discussion can be found here[2].

What do you think?

[1] My quick patch: https://gist.github.com/horus/03c3d7c17703536033c1
[2] https://lists.freebsd.org/pipermail/freebsd-questions/2014-August/260534.html

Chenguang Li

Brian Rak | 27 Aug 21:02 2014

Bug in FreeBSD VirtIO network driver (only with pf enabled)

I have a FreeBSD 10 x64 guest installed inside a KVM instance on Linux.  
When pf is active, and the server is sending data it causes the Linux 
host to report warnings related to GSO.

I've talked to some Linux developers, and they believe it to be a bug 
inside the FreeBSD VirtIO drivers.  Based on what I'm seeing, I'm 
inclined to agree with them.

Reproduction is mildly annoying, you need:
1) A KVM guest setup with bridged networking, with FreeBSD running side 
using the VirtIO network interface.  (We tested with CentOS, but the 
exact distribution should not matter)
2) pf enabled (I'm using a single rule: "scrub in all")
3) Some method of sending a bit of traffic from the guest (I use netcat)

So, when I do this:

# service pf start
# cat /root/test | nc vultr.com 80

The Linux kernel on the host will report:

kernel: WARNING: CPU: 7 PID: 7772 at net/core/dev.c:2246 
skb_warn_bad_offload+0xc3/0xd0()
kernel: igb: caps=(0x0000000640114bb3, 0x0000000000000000) len=1498 
data_len=0 gso_size=1380 gso_type=5 ip_summed=0

If I do:

# service pf stop
(Continue reading)

Pokala, Ravi | 27 Aug 07:51 2014

OT: testing...

Sorry for the spam; I've been having trouble getting through to the list,
so I'm trying a test message...

-Ravi

_______________________________________________
freebsd-hackers <at> freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscribe <at> freebsd.org"

Chris H | 26 Aug 20:05 2014

did tar(1) loose xz compression support in 11?

Greetings,
I'm currently testing 11. My build / install is from about 2 days ago.
I generally use xz compression, when creating archives. But when I
attempt the following:

tar -cvJ --options xz:9 -f ./archive-name.tar.xz ./file

it returns the following:

tar: Undefined option: `xz:9'

This has always worked in previous versions. Has the syntax changed,
and the man(1) pages just haven't caught up?

Thank you for all your time, and consideration.

--Chris

_______________________________________________
freebsd-hackers <at> freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscribe <at> freebsd.org"

Stefan Esser | 26 Aug 12:50 2014
Picon

[PATCH] fixup and warn about syscons keymap file names used with vt

The attached patch implements the following new features to aid with the
transition from syscons to vt:

1) Determine whether executed under syscons or vt

2) Display the console type used in log messages

3) Warn about keymap files, that cannot be loaded

4) Suggest a compatible keymap file to use under vt,
   if a syscons keymap is specified in rc.conf

5) Load the suggested keymap file (may be crucial
   for systems first booted under vt, if the keymap
   is to different from the default and the name has
   not been updated in rc.conf before the reboot)

With these patches it should be possible to test vt on a system that
is configured for syscons.

Please test and report any findings.

I want to commit this change to head as soon as possible to make
sure it will make it into 10.1 ...

Regards, STefan
Index: syscons
===================================================================
(Continue reading)

Chris H | 26 Aug 00:40 2014

vt(4) -- vidcontrol: setting cursor type: Inappropriate ioctl for device

Greetings,
 On 11-CURRENT, and with vt(4) chosen. I receive the following at boot:
vidcontrol: setting cursor type: Inappropriate ioctl for device

I _believe_ this is caused by the entry in rc.conf(5)
cursor="blink"

This entry has always worked fine with sc(4), and as I read it, [should] in
vt(4) as well. But the vt(4) man pages seem to be lagging. They discuss
oid(s) that don't seem to exist, and I'm unable to determine _what_ I should
be doing to get a similar terminal/console as I get w/sc(4).
Are there any other docs, or links available to help me with this?

Thank you for all your time, and consideration.

--Chris

P.S. I'm using an Nvidia 8400, w/512Mb ram onboard, as well as the
Nvidia blob. If that makes any difference.

Thanks again.

_______________________________________________
freebsd-hackers <at> freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscribe <at> freebsd.org"


Gmane