Deterministic builds, part 2

2010-11-25 Thread Erik Cederstrand
Hello hackers, With a simple version of deterministic builds done (see my previous post here - anyone willing to comment the patch?), I have started to look at the more general case where OBJDIR and SRCDIR change between builds. The following are my findings. Kernel modules:

Re: Deterministic builds, part 2

2010-11-25 Thread Erik Cederstrand
Den 25/11/2010 kl. 13.08 skrev Erik Cederstrand: Symbol tables: For example, libstand.a shows up in a diff. Looking with objdump, I see the contained _setjmp.o file has the following symbol table: SYMBOL TABLE: ldf *ABS*

Re: sched_autogroup_enabled

2010-11-25 Thread Lars Engels
On Wed, Nov 24, 2010 at 11:02:26PM +0100, Ulrich Spörlein wrote: On Thu, 18.11.2010 at 21:51:52 +0100, Harald Servat wrote: Alexander ( rest of the list), -performance has a thread about this topic. If you're interested, you can take a look there. Here's the URL

Re: Best way to determine if an IRQ is present

2010-11-25 Thread John Baldwin
Andriy Gapon wrote: on 22/11/2010 16:24 John Baldwin said the following: Well, the real solution is actually larger than described in the PR. What you really want to do is take the logical CPUs offline when they are halted. Taking a CPU offline should trigger an EVENTHANDLER that various

Re: Best way to determine if an IRQ is present

2010-11-25 Thread Andriy Gapon
on 25/11/2010 17:28 John Baldwin said the following: Andriy Gapon wrote: on 22/11/2010 16:24 John Baldwin said the following: Well, the real solution is actually larger than described in the PR. What you really want to do is take the logical CPUs offline when they are halted. Taking a CPU

Re: Best way to determine if an IRQ is present

2010-11-25 Thread Attilio Rao
2010/11/25 Andriy Gapon a...@freebsd.org: on 25/11/2010 17:28 John Baldwin said the following: Andriy Gapon wrote: on 22/11/2010 16:24 John Baldwin said the following: Well, the real solution is actually larger than described in the PR.  What you really want to do is take the logical CPUs

Re: Deterministic builds, part 2

2010-11-25 Thread Mark Johnston
On Thu, Nov 25, 2010 at 01:08:58PM +0100, Erik Cederstrand wrote: Kernel modules: -- In the ELF section .gnu-debuglink, there is a link to the corresponding *.ko.symbols file. It seems to be an inode or such rather than a file path since nothing shows up in strings(1). I

Re: Deterministic builds, part 2

2010-11-25 Thread Erik Cederstrand
Den 25/11/2010 kl. 20.17 skrev Mark Johnston: On Thu, Nov 25, 2010 at 01:08:58PM +0100, Erik Cederstrand wrote: Kernel modules: -- In the ELF section .gnu-debuglink, there is a link to the corresponding *.ko.symbols file. It seems to be an inode or such rather than a

Is it possible to have file removed upon process exit?

2010-11-25 Thread Xin LI
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Hi, One pretty common way of having an i-node of a file removed when process exit is to unlink() it while holding a descriptor of the file. This approach, however, have a side effect that other processes would not be able to access the file via

Userland DTrace ready?

2010-11-25 Thread Ivan Voras
Is userland DTrace ready? The postgresql port (databases/postgresql90-server) has an option to be built with dtrace, but when I use it it fails with this error: gmake[1]: Entering directory `/usr/ports/databases/postgresql90-server/work/postgresql-9.0.1/src/backend/utils' dtrace -C -h -s

Re: smp_rendezvous_cpus() vs sched_bind()

2010-11-25 Thread Max Laier
Am 22.11.2010 22:16, schrieb Andriy Gapon: If I need to call a function func on a specific CPU which one of the following I should use? 1. smp_rendezvous_cpus(1 cpuid, ..., func, ...); 2. sched_bind(cpuid); func(); sched_unbind(); Or does it depend on some additional factors? What are the