Re: Memory allocation performance

2008-01-31 Thread Julian Elischer
Alexander Motin wrote: Julian Elischer пишет: Alexander Motin wrote: Hi. While profiling netgraph operation on UP HEAD router I have found that huge amount of time it spent on memory allocation/deallocation: 0.14 0.05 132119/545292 ip_forward [12] 0.14 0.05 133127/

Re: Memory allocation performance

2008-01-31 Thread Alexander Motin
Julian Elischer пишет: Alexander Motin wrote: Hi. While profiling netgraph operation on UP HEAD router I have found that huge amount of time it spent on memory allocation/deallocation: 0.14 0.05 132119/545292 ip_forward [12] 0.14 0.05 133127/545292 fxp_add_rfab

Re: Memory allocation performance

2008-01-31 Thread Alexander Motin
Kris Kennaway пишет: Alexander Motin wrote: Alexander Motin пишет: While profiling netgraph operation on UP HEAD router I have found that huge amount of time it spent on memory allocation/deallocation: I have forgotten to tell that it was mostly GENERIC kernel just built without INVARIANTS,

Re: [OT] Q: what would you choose for a VCS today

2008-01-31 Thread Giorgos Keramidas
On 2008-02-01 02:00, Giorgos Keramidas <[EMAIL PROTECTED]> wrote: > You can keep 'importing' snapshots of the src tree from any arbitrary > CVS branch, if you are willing to wait until CVS checks out the first > copy of the snapshot. > > This is how we 'resync' with the official doc/ tree changes i

Re: [OT] Q: what would you choose for a VCS today

2008-01-31 Thread Giorgos Keramidas
On 2008-01-31 21:37, Stefan Sperling <[EMAIL PROTECTED]> wrote: > I could not find any tool that does this properly among subversion, > git, monotone and mercurial. That's not a big list, but I don't have > time to try out version control systems all day. Also, proprietary > VCS's were never consid

Re: Memory allocation performance

2008-01-31 Thread Kris Kennaway
Alexander Motin wrote: Alexander Motin пишет: While profiling netgraph operation on UP HEAD router I have found that huge amount of time it spent on memory allocation/deallocation: I have forgotten to tell that it was mostly GENERIC kernel just built without INVARIANTS, WITNESS and SMP but wi

Re: Memory allocation performance

2008-01-31 Thread Julian Elischer
Alexander Motin wrote: Hi. While profiling netgraph operation on UP HEAD router I have found that huge amount of time it spent on memory allocation/deallocation: 0.14 0.05 132119/545292 ip_forward [12] 0.14 0.05 133127/545292 fxp_add_rfabuf [18] 0.27 0.

Re: Memory allocation performance

2008-01-31 Thread Kris Kennaway
Alexander Motin wrote: Hi. While profiling netgraph operation on UP HEAD router I have found that huge amount of time it spent on memory allocation/deallocation: 0.14 0.05 132119/545292 ip_forward [12] 0.14 0.05 133127/545292 fxp_add_rfabuf [18] 0.27 0.

Re: [OT] Q: what would you choose for a VCS today

2008-01-31 Thread Stefan Sperling
On Thu, Jan 31, 2008 at 08:45:55AM +0200, Adrian Penisoara wrote: > Hi, > > Side-topic, if you bear with me: if you were to choose again what to use > as source revision control system (VCS) from today's offerings, what would > you choose to maintain FreeBSD's sources or a side-off project track

Re: Memory allocation performance

2008-01-31 Thread Alexander Motin
Alexander Motin пишет: While profiling netgraph operation on UP HEAD router I have found that huge amount of time it spent on memory allocation/deallocation: I have forgotten to tell that it was mostly GENERIC kernel just built without INVARIANTS, WITNESS and SMP but with 'profile 2'. -- Ale

Memory allocation performance

2008-01-31 Thread Alexander Motin
Hi. While profiling netgraph operation on UP HEAD router I have found that huge amount of time it spent on memory allocation/deallocation: 0.14 0.05 132119/545292 ip_forward [12] 0.14 0.05 133127/545292 fxp_add_rfabuf [18] 0.27 0.10 266236/545292 n

Re: [OT] Q: what would you choose for a VCS today

2008-01-31 Thread Garance A Drosihn
At 8:45 AM +0200 1/31/08, Adrian Penisoara wrote: Hi, Side-topic, if you bear with me: if you were to choose again what to use as source revision control system (VCS) from today's offerings, what would you choose to maintain FreeBSD's sources or a side-off project tracking FreeBSD as base that

Re: Squeezing out some 70 bytes out of the boot2 loader

2008-01-31 Thread Eduardo Morras
At 21:39 20/01/2008, you wrote: Hello I am trying to hack in some symlink support into the [sys/boot/i386/]boot2 bootloader (for my project [1]) and I seem to fall short of about 69 bytes: as -o boot2.o boot2.s ld -static -N --gc-sections -nostdlib -Ttext 0x2000 -o boot2.out/build/obj/build

Re: [OT] Q: what would you choose for a VCS today

2008-01-31 Thread Julian Elischer
OutBackDingo wrote: I'm having to use mercurial. I'm not really enjoying it. works ok for small projects. BSD is a bit big for it. doe work foe offline editing, but loses all your BSD history. probably SVK is the way to go from what I hear. Im using mercurial on full FreeBSD trees, curiosity m

Re: OT: getting the protocol family of a file descriptor

2008-01-31 Thread Heiko Wundram (Beenic)
Am Donnerstag, 31. Januar 2008 17:50:20 schrieb Dag-Erling Smørgrav: > "Heiko Wundram (Beenic)" <[EMAIL PROTECTED]> writes: > > Currently, you're basically required to do a getsockname to a struct > > sockaddr_storage and typecast that to the actual socket addres type > > based on the ss_family mem

Re: [OT] Q: what would you choose for a VCS today

2008-01-31 Thread Tom Evans
On Thu, 2008-01-31 at 11:02 -0500, Mike Meyer wrote: > On Thu, 31 Jan 2008 08:45:55 +0200 "Adrian Penisoara" <[EMAIL PROTECTED]> > wrote: > Subversion is a close second, but is still a little rough > around the edges. Most notably, merge tracking is in the 1.5 beta > builds, but not in the pr

Re: more on devstat (missing include)

2008-01-31 Thread John Baldwin
On Thursday 31 January 2008 10:20:42 am Pietro Cerutti wrote: > John Baldwin wrote: > > On Wednesday 30 January 2008 06:09:21 pm Pietro Cerutti wrote: > >> Hi hackers, > >> > >> I think that i) sys/devicestat.h should include sys/resource.h or ii) > >> the man page of devstat(9) should mention that

Re: more on devstat (missing include)

2008-01-31 Thread Pietro Cerutti
Pietro Cerutti wrote: > John Baldwin wrote: >> I think this might be best: >> >> Index: devstat.h >> === >> RCS file: /usr/cvs/src/lib/libdevstat/devstat.h,v >> retrieving revision 1.11 >> diff -u -r1.11 devstat.h >> --- devstat.h 22

Re: [OT] Q: what would you choose for a VCS today

2008-01-31 Thread Mike Meyer
On Thu, 31 Jan 2008 08:45:55 +0200 "Adrian Penisoara" <[EMAIL PROTECTED]> wrote: > Side-topic, if you bear with me: if you were to choose again what to use > as source revision control system (VCS) from today's offerings, what would > you choose to maintain FreeBSD's sources or a side-off project

Re: OT: getting the protocol family of a file descriptor

2008-01-31 Thread Dag-Erling Smørgrav
"Heiko Wundram (Beenic)" <[EMAIL PROTECTED]> writes: > Currently, you're basically required to do a getsockname to a struct > sockaddr_storage and typecast that to the actual socket addres type > based on the ss_family member (to be able to pass it to one of the > *_ntop-functions, for example), bu

Re: OT: getting the protocol family of a file descriptor

2008-01-31 Thread Heiko Wundram (Beenic)
Am Donnerstag, 31. Januar 2008 16:31:32 schrieben Sie: > "Heiko Wundram (Beenic)" <[EMAIL PROTECTED]> writes: > > I'm currently in the need to get the protocol family that was used to > > create a socket (and passed via a unix domain socket to another > > program), and I've not really come up with

Re: OT: getting the protocol family of a file descriptor

2008-01-31 Thread Dag-Erling Smørgrav
"Heiko Wundram (Beenic)" <[EMAIL PROTECTED]> writes: > I'm currently in the need to get the protocol family that was used to > create a socket (and passed via a unix domain socket to another > program), and I've not really come up with a proper scheme other than > to use getsockname and retrieve sa

Re: [OT] Q: what would you choose for a VCS today

2008-01-31 Thread Dag-Erling Smørgrav
"Adrian Penisoara" <[EMAIL PROTECTED]> writes: > Side-topic, if you bear with me: if you were to choose again what to use > as source revision control system (VCS) from today's offerings, what would > you choose to maintain FreeBSD's sources or a side-off project tracking > FreeBSD as base that wou

Re: more on devstat (missing include)

2008-01-31 Thread Pietro Cerutti
John Baldwin wrote: > On Wednesday 30 January 2008 06:09:21 pm Pietro Cerutti wrote: >> Hi hackers, >> >> I think that i) sys/devicestat.h should include sys/resource.h or ii) >> the man page of devstat(9) should mention that the user himself is >> supposed to include sys/resource.h. >> >> Without:

Re: more on devstat (missing include)

2008-01-31 Thread John Baldwin
On Wednesday 30 January 2008 06:09:21 pm Pietro Cerutti wrote: > Hi hackers, > > I think that i) sys/devicestat.h should include sys/resource.h or ii) > the man page of devstat(9) should mention that the user himself is > supposed to include sys/resource.h. > > Without: > > > cat devstat.c > #in

Re: [OT] Q: what would you choose for a VCS today

2008-01-31 Thread Johan Bucht
I've only tried CVS, Mericurial, Clearcase and a bit of Subversion. And if you don't need IDE integration Mercurial seems to be working pretty good. I just read an article about the new merging and branching support coming in Subversion 1.5 and it looks like it might have some future. The IDE suppo

Re: [OT] Q: what would you choose for a VCS today

2008-01-31 Thread OutBackDingo
> I'm having to use mercurial. > I'm not really enjoying it. > works ok for small projects. BSD is a bit big for it. > doe work foe offline editing, but loses all your BSD history. > > probably SVK is the way to go from what I hear. Im using mercurial on full FreeBSD trees, curiosity makes me as

Re: [OT] Q: what would you choose for a VCS today

2008-01-31 Thread Heiko Wundram (Beenic)
Am Donnerstag, 31. Januar 2008 10:03:22 schrieb Julian Elischer: > I'm having to use mercurial. > I'm not really enjoying it. > works ok for small projects. BSD is a bit big for it. > doe work foe offline editing, but loses all your BSD history. We're using mercurial pretty much for all of our (10

Re: OT: getting the protocol family of a file descriptor

2008-01-31 Thread Julian Elischer
Heiko Wundram (Beenic) wrote: Hey all! I'm currently in the need to get the protocol family that was used to create a socket (and passed via a unix domain socket to another program), and I've not really come up with a proper scheme other than to use getsockname and retrieve sa_family from the

Re: [OT] Q: what would you choose for a VCS today

2008-01-31 Thread Julian Elischer
Aryeh M. Friedman wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Adrian Penisoara wrote: Hi, Side-topic, if you bear with me: if you were to choose again what to use as source revision control system (VCS) from today's offerings, what would you choose to maintain FreeBSD's sources or a

OT: getting the protocol family of a file descriptor

2008-01-31 Thread Heiko Wundram (Beenic)
Hey all! I'm currently in the need to get the protocol family that was used to create a socket (and passed via a unix domain socket to another program), and I've not really come up with a proper scheme other than to use getsockname and retrieve sa_family from the resulting socket (which current