Re: a question about FreeBSD

2010-08-27 Thread Denny Lin
On Fri, Aug 27, 2010 at 12:07:11PM +0800, 崔岩ccuiy...@gmail.com wrote:
  A quick question about the FreeBSD. In my lab, there is a multicore
 machine and i install a FreeBSD
  system on it. I wonder to know how to see the utilization for each
 core? are there such tools? Thanks!

Try $ top -P.

-- 
Denny Lin
___
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: a question about FreeBSD

2010-08-27 Thread Julian Elischer

On 8/26/10 10:10 PM, Steve Kargl wrote:

On Fri, Aug 27, 2010 at 12:07:11PM +0800, ccuiy...@gmail.com wrote:

Dear all:

  A quick question about the FreeBSD. In my lab, there is a multicore
machine and i install a FreeBSD
  system on it. I wonder to know how to see the utilization for each
core? are there such tools? Thanks!



Wrong mailing list.  Try freebsd-quest...@freebsd.org.

Also, try man top.



specifically, there will be an idle thread for each CPU

so top -SH will allow you to see how much idle time there is on each cpu.

___
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: a question about FreeBSD

2010-08-27 Thread Freddie Cash
On Fri, Aug 27, 2010 at 9:45 AM, Julian Elischer jul...@elischer.org wrote:
 On 8/26/10 10:10 PM, Steve Kargl wrote:
 On Fri, Aug 27, 2010 at 12:07:11PM +0800, ccuiy...@gmail.com wrote:

 Dear all:

      A quick question about the FreeBSD. In my lab, there is a multicore
 machine and i install a FreeBSD
      system on it. I wonder to know how to see the utilization for each
 core? are there such tools? Thanks!

 Wrong mailing list.  Try freebsd-quest...@freebsd.org.

 Also, try man top.

 specifically, there will be an idle thread for each CPU

 so top -SH will allow you to see how much idle time there is on each cpu.

-C will show stats for individual CPUs at the top of the screen
(similar to pressing 0 in top on Linux).  This was added to top in 7.2
or 7.3 or thereabouts.

-- 
Freddie Cash
fjwc...@gmail.com
___
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: a question about FreeBSD

2010-08-27 Thread Ventsislav Nikolov
Hi,

Try using htop from the ports.


--
Love  Light
Ventsislav Nikolov



On Fri, Aug 27, 2010 at 7:07 AM, 崔岩ccuiy...@gmail.com ccuiy...@gmail.comwrote:

 Dear all:

 A quick question about the FreeBSD. In my lab, there is a multicore
 machine and i install a FreeBSD
 system on it. I wonder to know how to see the utilization for each
 core? are there such tools? Thanks!

 --
 Think big; Dream impossible; Make it happen.
 ___
 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

___
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: a question about FreeBSD

2010-08-27 Thread V. T. Mueller, Continum

Freddie Cash wrote:

Also, try man top.

-C will show stats for individual CPUs at the top of the screen
(similar to pressing 0 in top on Linux).  This was added to top in 7.2
or 7.3 or thereabouts.


You mean top -P

--
Volker T. Mueller
Continum AG
Bismarckallee 7d
79098 Freiburg i. Br.
Tel. +49 761 21711171
Fax. +49 761 21711198
http://www.continum.net

Sitz der Gesellschaft: Freiburg im Breisgau
Registergericht: Amtsgericht Freiburg, HRB 6866
Vorstand: Rolf Mathis, Volker T. Mueller
Vorsitzender d. Aufsichtsrats: Prof. Dr. Karl-F. Fischbach

___
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: a question about FreeBSD

2010-08-27 Thread Freddie Cash
On Fri, Aug 27, 2010 at 11:05 AM, V. T. Mueller, Continum
v.t.muel...@continum.net wrote:
 Freddie Cash wrote:

 Also, try man top.

 -C will show stats for individual CPUs at the top of the screen
 (similar to pressing 0 in top on Linux).  This was added to top in 7.2
 or 7.3 or thereabouts.

 You mean top -P

Whoops, you're right.  That's what I get for looking at echo $TOP
and guessing at which of CHP did it, instead of reading the man page.
:)


-- 
Freddie Cash
fjwc...@gmail.com
___
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


a question about FreeBSD

2010-08-26 Thread 崔岩ccuiyyan
Dear all:

 A quick question about the FreeBSD. In my lab, there is a multicore
machine and i install a FreeBSD
 system on it. I wonder to know how to see the utilization for each
core? are there such tools? Thanks!

-- 
Think big; Dream impossible; Make it happen.
___
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: a question about FreeBSD

2010-08-26 Thread Steve Kargl
On Fri, Aug 27, 2010 at 12:07:11PM +0800, ccuiy...@gmail.com wrote:
 Dear all:
 
  A quick question about the FreeBSD. In my lab, there is a multicore
 machine and i install a FreeBSD
  system on it. I wonder to know how to see the utilization for each
 core? are there such tools? Thanks!
 

Wrong mailing list.  Try freebsd-quest...@freebsd.org.

Also, try man top.

-- 
Steve
___
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: Question about Freebsd driver

2001-12-09 Thread Mike Smith


 I have a question about Freebsd driver. If we want to support some
 options in driver(like speed and duplex mode setting) , user can use this
 option to change driver configurations. I am not sure whether freebsd
 driver support driver parameter or something else. Can you give me some
 suggestions? Thanks!!

From the question, I infer that you are referring to Ethernet device 
drivers.  In the FreeBSD model, devices fit into one or more of a set of 
classes.  Each class has an established, device-independant mechanism for 
controlling driver parameters.  In the case of Ethernet drivers, 
parameters are controlled via the driver's ioctl interface.

You should be able to find good examples of this in the source for other 
drivers similar to your own.  If you have more specific questions, please 
feel free to ask them here.

Regards,
Mike



-- 
... every activity meets with opposition, everyone who acts has his
rivals and unfortunately opponents also.  But not because people want
to be opponents, rather because the tasks and relationships force
people to take different points of view.  [Dr. Fritz Todt]
   V I C T O R Y   N O T   V E N G E A N C E



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



Re: Question about Freebsd driver

2001-12-07 Thread Holger Kipp

Yiping Chen wrote:
 
 Dear Sir:
 
 I have a question about Freebsd driver.
 If we want to support some options in driver(like speed and duplex mode
 setting) ,
 user can use this option to change driver configurations.
 I am not sure whether freebsd driver support driver parameter or something
 else.
 Can you give me some suggestions? Thanks!!

I'm not sure if current is the correct mailing list for asking
questions.

Anyway, if you're refering to network device drivers, see 

man ifconfig   (especialle media and mediaopt)
man fxp
man txp
[...]

For a list of devices, see /usr/src/sys/i386/conf/LINT

Regards,
Holger Kipp

-- 
Holger Kipp, Dipl.-Math., Systemadministrator  | alogis AG
Fon: +49 (0)30 / 43 65 8 - 114 | Berliner Strasse 26
Fax: +49 (0)30 / 43 65 8 - 214 | D-13507 Berlin Tegel
email: [EMAIL PROTECTED]  | http://www.alogis.com

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



Re: Question about Freebsd driver

2001-12-07 Thread Terry Lambert

Yiping Chen wrote:
 
 Dear Sir:
 
 I have a question about Freebsd driver.
 If we want to support some options in driver(like speed and duplex mode
 setting) ,
 user can use this option to change driver configurations.
 I am not sure whether freebsd driver support driver parameter or something
 else.
 Can you give me some suggestions? Thanks!!

For LAN drivers, you can set a large number of predefined options,
such as spped and duplex, as well as vendor specific options.

The command you are looking for is ifconfig.

To find the source code to any FreeBSD command, you should type
which command at a root prompt.  For example, if the command
you were looking for was foo or fee:

# which foo
/usr/bin/foo
# cd /usr/src/usr.bin/foo
# ls
foo.c

# which fee
/sbin/fee
# cd /usr/src/sbin/fee
# ls
fee .c

The ifconfig command is odd in that it gathers up its arguments,
and then ioctl's down on a socket descriptor.  This is handled by
code in the /sys/net directory, and then in the drivers itself.

It's best if you start with code in a specific driver.

As a general rule, for things like duplex and speed, you will want
to write your driver to autonegotiate, if the hardware can do that,
since that's one less thing the user has to worry about.  The use
of duplex and speed settings us usually _ONLY_ to defeat the use
of autonegotiation, and force user settings.  Many cards support
doing this (for example, when using FreeBSD as a router or a hub).

Hope this helps.

-- Terry

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