SMP questions

2008-08-28 Thread H.fazaeli


Hi all,
I have 3 questions regrading SMP on freebsd 6.x:

1. Is there any userland tool/api to bound a process to a specific cpu?
2. Is there any way to force UP operation apart form recompiling kernel
  without SMP option?
3. Can someone shed some light on the logic of how schedulers (4.4.BSD/ULE)
  dispatch processes among CPUs?






--


Best regards.

Hooman Fazaeli [EMAIL PROTECTED]
Sepehr S. T. Co. Ltd.

Web: http://www.sepehrs.com
Tel: (9821)88975701-2
Fax: (9821)88983352




___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: SMP questions

2008-08-28 Thread Kirk Strauser
On Thursday 28 August 2008 07:59:00 H.fazaeli wrote:
 Hi all,
 I have 3 questions regrading SMP on freebsd 6.x:

 1. Is there any userland tool/api to bound a process to a specific cpu?

I don't think so.  FreeBSD 7.x just got cpuset backported from -CURRENT.
-- 
Kirk Strauser
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: SMP questions

2008-08-28 Thread Ivan Voras
H.fazaeli wrote:
 
 Hi all,
 I have 3 questions regrading SMP on freebsd 6.x:
 
 1. Is there any userland tool/api to bound a process to a specific cpu?

This support is native to 8-CURRENT, I think most of it is backported to
7.1.

 2. Is there any way to force UP operation apart form recompiling kernel
   without SMP option?

mostly - if you have a SMP kernel it will always use SMP locking and
scheduling algorithms, which are in 6.x somewhat slower than the UP
variants. You can force the kernel to use only one CPU with
machdep.hlt_cpus sysctl:

 sysctl -d machdep.hlt_cpus
machdep.hlt_cpus: Bitmap of CPUs to halt.  101 (binary) will halt CPUs 0
and 2.

(note that you have to give a decimal number to the sysctl)

 3. Can someone shed some light on the logic of how schedulers (4.4.BSD/ULE)
   dispatch processes among CPUs?

4.4BSD has a single queue of running threads from which the threads are
dispatched to CPUs when needed, in a way that's similar in effect to
round-robin. ULE has separate per-CPU queues and is aware of CPU
topologies so it knows that dispatching threads to cores on the same
physical CPU is better than picking a distant CPU. (this is all about
ULE in 7-STABLE and 8-CURRENT. ULE in 6.x is broken). This is why 4.4BSD
scales less well than ULE (but on the other hand 4.4BSD has had many
decades of hand optimizations and there are even now reports that it
behaves better in some edge circumstances).




signature.asc
Description: OpenPGP digital signature


Re: Some SMP questions

2006-02-25 Thread Paul Schmehl
--On February 23, 2006 7:23:53 PM -0500 Jerry Bell [EMAIL PROTECTED] 
wrote:



The default kernel doesn't support SMP.  You have to recompile with the
SMP config and it'll start getting your other processor.

Thanks, Jerry.  I've compiled a few Linux kernels, and I can tell you, 
compiling the FreeBSD kernel was a breeze in comparison.


Thanks for the quick (and correct) response.

Paul Schmehl ([EMAIL PROTECTED])
Adjunct Information Security Officer
University of Texas at Dallas
AVIEN Founding Member
http://www.utdallas.edu/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Some SMP questions

2006-02-23 Thread Paul Schmehl
When you do a default install of 6.0-RELEASE, does the kernel have 
support for SMP?  Or do you have to compile a custom kernel to get that?


Does this mean SMP is not enabled?

kern.smp.cpus: 1
kern.smp.disabled: 0
kern.smp.active: 0
kern.smp.maxcpus: 1

Can I set these with sysctl?  Or do I need to recompile the kernel?  (I'm 
assuming I need this:

kern.smp.cpus: 2
kern.smp.disabled: 0
kern.smp.active: 1
kern.smp.maxcpus: 2

Paul Schmehl ([EMAIL PROTECTED])
Adjunct Information Security Officer
University of Texas at Dallas
AVIEN Founding Member
http://www.utdallas.edu/ir/security/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Some SMP questions

2006-02-23 Thread Jerry Bell
The default kernel doesn't support SMP.  You have to recompile with the 
SMP config and it'll start getting your other processor.


Regards,

Jerry
http://www.bsdsec.com

Paul Schmehl wrote:
When you do a default install of 6.0-RELEASE, does the kernel have 
support for SMP?  Or do you have to compile a custom kernel to get that?


Does this mean SMP is not enabled?

kern.smp.cpus: 1
kern.smp.disabled: 0
kern.smp.active: 0
kern.smp.maxcpus: 1

Can I set these with sysctl?  Or do I need to recompile the kernel?  
(I'm assuming I need this:

kern.smp.cpus: 2
kern.smp.disabled: 0
kern.smp.active: 1
kern.smp.maxcpus: 2

Paul Schmehl ([EMAIL PROTECTED])
Adjunct Information Security Officer
University of Texas at Dallas
AVIEN Founding Member
http://www.utdallas.edu/ir/security/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to 
[EMAIL PROTECTED]

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: FreeBSD newbie general and SMP questions for i386]

2003-12-18 Thread Elijah Plunkett
Hi there Mark!

- Original Message -
From: Mark Wolfskehl [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, December 18, 2003 2:42 PM
Subject: FreeBSD newbie general and SMP questions for i386]


 Hi,

 I'm a FreeBSD newbie.  I'm considering installing either FreeBSD i386 or
 Linux on a 2 AMD Athelon CPU machine.  The motherboard is an ASUS
 A7M266-D, and the machine has 2GB memory installed.  I'm working on
 trying to answer some key questions before making a final decision which
 OS to install (right now the other alternative is SuSe Linux), but
 perhaps if anyone has some quick answers that would be a help:

 1. How stable is SMP support in 5.1, especially compared to the
 stability of single CPU FreeBSD and Linux in general?

As one newbie to another, I have found FreeBSD to be VERY stable when
compared to Mandrake Linux.

 2. In general, how could I characterize the relative performance of
 FreeBSD and Linux under an SMP kernel and/.or single processors?

My suggestion would be a common benchmark program that both O/Ses can use
 3. I'm looking into whether my motherboard conforms to the FreeBSD
 requirements.  I don't know if the 'Intel MP' means you have to have
 genuine Intel processors, in particular.  If anyone can get a quick
 answer to this, that would be critical, of course.  ASUS's website is
 www.asus.com, and you can just do a search for the motherboard model.
 They have all the specs and the users manual in pdf online.  Thanks in
 advance.

I'm using AMD stuff with FreeBSD with no hassels...

 4. How compatible is FreeBSD with Linux in practice?  I understand there
 is a Linux compatibility module for the kernel?


There is a Linux compatibility module for the kernel which I have used for
VMWare, which sort of answers your next question :)

 5. Will FreeBSD run VMWare Workstation virtual machine SW for Linux (in
 practice)?

Yes, it will as I have done so, just had a little problem with getting Win98
Installed under it...

 6. Anything else I should know as a newbie?

Basically read the FreeBSD handbook under /usr/share/doc/handbook/ under the
FreeBSD installation, it gives good advice on how to get up and running
well.

Hope this helps!
Elijah
[EMAIL PROTECTED]


 Whew!  That's a lot, but thanks in advance!

 Mark Wolfskehl
 [EMAIL PROTECTED]





 ___
 [EMAIL PROTECTED] mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to
[EMAIL PROTECTED]


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.551 / Virus Database: 343 - Release Date: 11/12/03

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: FreeBSD newbie general and SMP questions for i386]

2003-12-18 Thread Josh Paetzel
On Wed, Dec 17, 2003 at 05:42:19PM -0800, Mark Wolfskehl wrote:
 Hi,
 
 I'm a FreeBSD newbie.  I'm considering installing either FreeBSD i386 or 
 Linux on a 2 AMD Athelon CPU machine.  The motherboard is an ASUS 
 A7M266-D, and the machine has 2GB memory installed.  I'm working on 
 trying to answer some key questions before making a final decision which 
 OS to install (right now the other alternative is SuSe Linux), but 
 perhaps if anyone has some quick answers that would be a help:
 
 1. How stable is SMP support in 5.1, especially compared to the 
 stability of single CPU FreeBSD and Linux in general?

I'm running FreeBSD 5.1 on a dual p-pro system, 4.9 on a dual AMD system, 
and until recently I was running Debian Linux on a dual p3...I can't say that 
any of them were unstable.  

 
 2. In general, how could I characterize the relative performance of 
 FreeBSD and Linux under an SMP kernel and/.or single processors?
 
 3. I'm looking into whether my motherboard conforms to the FreeBSD 
 requirements.  I don't know if the 'Intel MP' means you have to have 
 genuine Intel processors, in particular.  If anyone can get a quick 
 answer to this, that would be critical, of course.  ASUS's website is 
 www.asus.com, and you can just do a search for the motherboard model.  
 They have all the specs and the users manual in pdf online.  Thanks in 
 advance.

I'm running a dual socket A Gigabyte motherboard, and the only issue that I've 
had with it is that the system hangs if I try to use the nvidia drivers for 
X.  I've heard from someone with a Tyan Tiger board using the same chipset 
(MPX) that they've had the same problem.  Other than that I've had no issues 
at all.

Josh Paetzel
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


FreeBSD newbie general and SMP questions for i386]

2003-12-17 Thread Mark Wolfskehl
Hi,

I'm a FreeBSD newbie.  I'm considering installing either FreeBSD i386 or 
Linux on a 2 AMD Athelon CPU machine.  The motherboard is an ASUS 
A7M266-D, and the machine has 2GB memory installed.  I'm working on 
trying to answer some key questions before making a final decision which 
OS to install (right now the other alternative is SuSe Linux), but 
perhaps if anyone has some quick answers that would be a help:

1. How stable is SMP support in 5.1, especially compared to the 
stability of single CPU FreeBSD and Linux in general?

2. In general, how could I characterize the relative performance of 
FreeBSD and Linux under an SMP kernel and/.or single processors?

3. I'm looking into whether my motherboard conforms to the FreeBSD 
requirements.  I don't know if the 'Intel MP' means you have to have 
genuine Intel processors, in particular.  If anyone can get a quick 
answer to this, that would be critical, of course.  ASUS's website is 
www.asus.com, and you can just do a search for the motherboard model.  
They have all the specs and the users manual in pdf online.  Thanks in 
advance.

4. How compatible is FreeBSD with Linux in practice?  I understand there 
is a Linux compatibility module for the kernel?

5. Will FreeBSD run VMWare Workstation virtual machine SW for Linux (in 
practice)?

6. Anything else I should know as a newbie?

Whew!  That's a lot, but thanks in advance!

Mark Wolfskehl
[EMAIL PROTECTED]




___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]