Re: pmc(3): when are the counters updated?

2012-03-12 Thread Fabien Thomas
Le 11 mars 2012 à 16:45, Vitaly Magerya a écrit : > Hi, folks. I'm trying to use pmc(3) to analyze code fragments, and > I've run into strange behavior: the counter values returned by > pmc_read(3) sometimes show no increment between readings, but are > updated a second later; even if the PMC in

How to mount my USB disk ?

2012-03-12 Thread sw2wolf
Once plugged, usbconfig will show: ugen0.1: at usbus0, cfg=0 md=HOST spd=FULL (12Mbps) pwr=SAVE ugen1.1: at usbus1, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE ugen0.2: at usbus0, cfg=0 md=HOST spd=FULL (12M) pwr=SAVE ugen1.2: at usbus1, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON But there is no

Re: pmc(3): when are the counters updated?

2012-03-12 Thread Vitaly Magerya
Fabien Thomas wrote: >> So, what's going on here? Is this the intended behavior, or can it >> be changed? And how do I get accurate readings? > > If i remember well: > The current code will get real HW PMC if the PMC is running and attached to > owner. > The first case is not true in your code so

Re: pmc(3): when are the counters updated?

2012-03-12 Thread Harald Servat
2012/3/12 Vitaly Magerya > Fabien Thomas wrote: > >> So, what's going on here? Is this the intended behavior, or can it > >> be changed? And how do I get accurate readings? > > > > If i remember well: > > The current code will get real HW PMC if the PMC is running and attached > to owner. > > The

[vfs] buf_daemon() slows down write() severely on low-speed CPU

2012-03-12 Thread Svatopluk Kraus
Hi, I have solved a following problem. If a big file (according to 'hidirtybuffers') is being written, the write speed is very poor. It's observed on system with elan 486 and 32MB RAM (i.e., low speed CPU and not too much memory) running FreeBSD-9. Analysis: A file is being written. All

pccbb device doesn't send device_shutdown() to childs (reboot freezes)

2012-03-12 Thread Svatopluk Kraus
Hi, I solved very curious problem with rarely system (FreeBSD-9) freezing during reboot. Finally, I found out that system freezes in ep device callout. The part of device tree is following: -> pccbb -> pccard -> ep cbb_pci_shutdown() method in pccbb device places the cards in reset, tur

Re: [vfs] buf_daemon() slows down write() severely on low-speed CPU

2012-03-12 Thread Konstantin Belousov
On Mon, Mar 12, 2012 at 04:00:58PM +0100, Svatopluk Kraus wrote: > Hi, > >I have solved a following problem. If a big file (according to > 'hidirtybuffers') is being written, the write speed is very poor. > >It's observed on system with elan 486 and 32MB RAM (i.e., low speed > CPU and not

hack.So: could not read symbols

2012-03-12 Thread Fernando Apesteguía
I'm using 9.0-RELEASE. I downloaded the snapshot "9.0-CURRENT-201012" and tried to build it's kernel but I get this error: hack.So: could not read symbols: File in wrong format file reports this: ELF 64-bit LSB shared object, x86-64, version 1 (FreeBSD), dynamically linked, not stripped I comp

Re: Kernel memory usage

2012-03-12 Thread Super Bisquit
CPU architecture and model have a lot to do with performance. You will also get different results if you used qemu in place of VirtualBox. Qemu allows you to choose different emulated architectures, CPUs, and machine bases. What's the downside? You have to use the command line. Install qemu and run

Re: hack.So: could not read symbols

2012-03-12 Thread Ryan Stone
2012/3/12 Fernando Apesteguía : > I'm using 9.0-RELEASE. > > I downloaded the snapshot "9.0-CURRENT-201012" and tried to build it's > kernel but I get this error: > > hack.So: could not read symbols: File in wrong format > > file reports this: > > ELF 64-bit LSB shared object, x86-64, version 1 (Fr