memmem small optimalisation

2012-02-15 Thread Bernard van Gastel
Hi all, I was looking through the sources of memmove at [1], and saw a (very) small optimization opportunity. The 'memcmp' also compares the current character, but the current character is already checked (first part of the condition). As we already know the size of the string is greater as 1 (

Re: memmem small optimalisation

2012-02-15 Thread Andrey Simonenko
On Tue, Feb 14, 2012 at 07:25:14PM +0100, Bernard van Gastel wrote: > Hi all, > > I was looking through the sources of memmove at [1], and saw a (very) > small optimization opportunity. The 'memcmp' also compares the current > character, but the current character is already checked (first part of

Re: backup BIOS settings

2012-02-15 Thread Łukasz Kurek
I tested it. It really works. Thank You! Łukasz Kurek Dnia 8 lutego 2012 21:13 Andrey Zonov napisał(a): > On 10.01.2012 7:01, Łukasz Kurek wrote: > > Hi, > > Is it possible to backup BIOS settings (CMOS configuration) to file and > > restore this settings on the other machine (the same hard

Re: Kerberos and FreeBSD

2012-02-15 Thread Ansar Mohammed
Going back on this topic, it seems that there are alot of things that are being shipped with FreeBSD that I am not sure we need in the base distribution. Does anyone use portalfs? On Fri, Feb 10, 2012 at 3:54 AM, Ansar Mohammed wrote: > Thanks for the feedback. > I built world and disabled Kerbe

nologin size

2012-02-15 Thread Ansar Mohammed
Hello all, I am trying to build a minimal size FreeBSD 9 installation and I noticed that the size of nologin is almost 200k. I built FreeBSD from source so I checked the distribution, and it's also 200k. So I went back to the source and just compiled nologin.c and it came up to 5k. Can anyone expl

Re: nologin size

2012-02-15 Thread Ansar Mohammed
You are right. Fast catch :) On Wed, Feb 15, 2012 at 2:39 PM, Simon wrote: > > Haven't checked into it, but quick guess static vs dynamic, stripped vs not > stripped, > check those first. You have likely compiled dynamic nologin. > > -Simon > > > On Wed, 15 Feb 2012 14:28:54 -0500, Ansar Mohammed

RE: nologin size

2012-02-15 Thread Devin Teske
> -Original Message- > From: owner-freebsd-hack...@freebsd.org [mailto:owner-freebsd- > hack...@freebsd.org] On Behalf Of Ansar Mohammed > Sent: Wednesday, February 15, 2012 11:29 AM > To: freebsd-hackers@freebsd.org > Subject: nologin size > > Hello all, > I am trying to build a minimal

Re: [RFT][patch] Scheduling for HTT and not only

2012-02-15 Thread Alexander Motin
On 02/14/12 00:38, Alexander Motin wrote: I see no much point in committing them sequentially, as they are quite orthogonal. I need to make one decision. I am going on small vacation next week. It will give time for thoughts to settle. May be I indeed just clean previous patch a bit and commit it

Re: nologin size

2012-02-15 Thread Xin Li
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 On 02/15/12 11:28, Ansar Mohammed wrote: > Hello all, I am trying to build a minimal size FreeBSD 9 > installation and I noticed that the size of nologin is almost > 200k. I built FreeBSD from source so I checked the distribution, > and it's also 200

Re: nologin size

2012-02-15 Thread Simon
Haven't checked into it, but quick guess static vs dynamic, stripped vs not stripped, check those first. You have likely compiled dynamic nologin. -Simon On Wed, 15 Feb 2012 14:28:54 -0500, Ansar Mohammed wrote: >Hello all, >I am trying to build a minimal size FreeBSD 9 installation and I >not

Re: [RFT][patch] Scheduling for HTT and not only

2012-02-15 Thread Alexander Motin
On 02/15/12 21:54, Jeff Roberson wrote: On Wed, 15 Feb 2012, Alexander Motin wrote: As before I've tested this on Core i7-870 with 4 physical and 8 logical cores and Atom D525 with 2 physical and 4 logical cores. On Core i7 I've got speedup up to 10-15% in super-smack MySQL and PostgreSQL indexe

Re: [RFT][patch] Scheduling for HTT and not only

2012-02-15 Thread Jeff Roberson
On Wed, 15 Feb 2012, Alexander Motin wrote: On 02/14/12 00:38, Alexander Motin wrote: I see no much point in committing them sequentially, as they are quite orthogonal. I need to make one decision. I am going on small vacation next week. It will give time for thoughts to settle. May be I indeed

CUDA porting effort?

2012-02-15 Thread Eric McCorkle
Given that NVidia is releasing the CUDA platform source on a limited basis, is anyone actively working to port it to FreeBSD? The reason I ask is that to get access to the source, you have to submit a request explaining what you intend to use it for. It might be a good idea to get ahold of the so

Re: Panic in 8.1 in softclock(): mutex Giant not owned at ../../../../sys/kern/kern_mutex.c:185

2012-02-15 Thread Vijay Singh
Hi John, >> (kgdb-amd64-6.8-71) f 5 >> #5  0x803b73e6 in softclock (arg=0x80c90f40) at >> ../../../../sys/kern/kern_timeout.c:461 >> 461                                           class->lc_unlock(c_lock); >> (kgdb-amd64-6.8-71) l >> 456                                           las

Re: Panic in 8.1 in softclock(): mutex Giant not owned at ../../../../sys/kern/kern_mutex.c:185

2012-02-15 Thread Arnaud Lacombe
Hi, Vijay Singh wrote; > In the code below: > (kgdb-amd64-6.8-48) l > 402 if (c_lock != NULL) { > 403 if (c_lock == > &Giant.lock_object) { > 404 mtx_lock(&Giant); >

Re: Panic in 8.1 in softclock(): mutex Giant not owned at ../../../../sys/kern/kern_mutex.c:185

2012-02-15 Thread Vijay Singh
> Out of curiosity, where does your code comes from ? The same snippet > from the  `release/8.1.0' branch does not refer to `Giant' at all, it > only reads: > >               if (c_lock != NULL) { >                       class->lc_lock(c_lock, sharedlock); Arnaud, I added that code to track down t

Re: [RFT][patch] Scheduling for HTT and not only

2012-02-15 Thread Alexander Motin
On 02/15/12 21:54, Jeff Roberson wrote: On Wed, 15 Feb 2012, Alexander Motin wrote: On 02/14/12 00:38, Alexander Motin wrote: I see no much point in committing them sequentially, as they are quite orthogonal. I need to make one decision. I am going on small vacation next week. It will give tim