Re: Problem with LOCK_PROFILING stats in 7.2

2009-05-25 Thread Nikola Knežević
On 05.22.2009, at 14:21 , Nikola Knežević wrote: I'm using LOCK_PROFILING to, well, profile some locks in the module I'm working on. I also have INVARIANTS turned on. Numbers I'm getting look correct, however, name of the lock is strange (for some of the locks I'm using): 25725

Problem with LOCK_PROFILING stats in 7.2

2009-05-22 Thread Nikola Knežević
Hi, I'm using LOCK_PROFILING to, well, profile some locks in the module I'm working on. I also have INVARIANTS turned on. Numbers I'm getting look correct, however, name of the lock is strange (for some of the locks I'm using): 25725 51777294 10979957 7331938 7 1

Failing to get dc-misses with pmc

2009-05-12 Thread Nikola Knežević
Hi, I'm trying to get number of L2 cache misses on a system level via: sudo pmcstat -S dc-misses -O /tmp/sample.out However, I'm getting this error: pmcstat: ERROR: Cannot allocate system-mode pmc with specification dc- misses: Invalid argument I'm running 7.1-RELEASE-p3 on: CPU: Intel(R)

Cannot access memory at address 0xb

2009-02-11 Thread Nikola Knežević
Hi, my 8-core amd64 machine crashes when I'm trying to run my module. The problem is that I can't debug it, since core dump is broken. ---8--- GNU gdb 6.1.1 [FreeBSD] Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are

Re: Setting per processor (/core) affinity from within FreeBSD

2008-12-22 Thread Nikola Knežević
16 Dec 2008, at 06:40 , Garrett Cooper wrote: I was wondering if anyone has written a utility for FreeBSD to tie a particular process group to a processor / core, similar to what Linux has done with taskset, so that affinity can be properly set with FreeBSD and the ULE scheduler. I

Cluster-wide installation of FreeBSD

2008-12-14 Thread Nikola Knežević
Hi, I have a machine running FreeBSD 7.1, and now I would like to replicate it to other machines in our cluster. Other machines have smaller disks, and a different processor, but all are amd64. Is there a way to do this kind of installation (either by copying content, or installing and

Compiling C++ modules

2008-11-19 Thread Nikola Knežević
Hi, what are the recommended CXXFLAGS for C++ code which should go in kernel module? Yes, I know C++ in kernel is a bad idea, but those are the requirements... Best, Nikola ___ freebsd-questions@freebsd.org mailing list

Re: Strange hang with dummynet

2008-09-16 Thread Nikola Knežević
On 16 Sep 2008, at 14:38 , Nikola Kne?evi? wrote: I'm running FreeBSD 7.1-PRERELEASE with custom kernel on my box, and when I did: kldload dummynet kldload ipfw the machine just hanged - I couldn't access it over ssh, and current sessions were blocked. This happens also with GENERIC. I

Re: /: write failed, filesystem is full

2008-09-05 Thread Nikola Knežević
On 5 Sep 2008, at 04:34 , Gautham Ganapathy wrote: As soon as I start copying files from FTP, this is the error I get: /: write failed, filesystem is full I used to get the same error on freebsd 7.0-release if the bsd partition was not aligned to cylinder boundaries. did sysinstall give

/: write failed, filesystem is full

2008-09-03 Thread Nikola Knežević
Hi, I'm trying to install FreeBSD 7.0 on our new server (Intel Xeon 2x4- core machine), which has a 250GB SATAII disk. I used -bootonly CD image, and assigned whole disk to FreeBSD. Breakdown is: / - 2GB swap - 4GB /var - 9GB /tmp - 4GB /usr - 213GB As soon as I start copying files from FTP,

error: symbol ether_poll_register undefined

2008-09-03 Thread Nikola Knežević
Hi guys, I'm trying to port Click modular router to FreeBSD 7.0. Along the way, I changed it quite a bit, but I managed to get it to compile. Well, when I try to load it (via sudo make load), this is what I get: link_elf_obj: symbol ether_poll_register undefined kldload:

SMP aware programming

2008-08-03 Thread Nikola Knežević
Hi, I'm about to port ModelNet (a large-scale internet emulator) from FreeBSD 4 to FreeBSD 7. It is implemented as a module. Well, changing couple of headers and structs will probably solve the thing, but I would like to make it SMP aware. Since it emulates a lot of nodes, each of which