Re: Setting the mss for socket

2009-04-03 Thread Julian Elischer
Luiz Otavio O Souza wrote: Is there a way to set the mss for a socket ? Like you can do in linux with setsockopt(TCP_MAXSEG) ? So i can set the maximum size of packets (or sort of) from a simple userland program. Depending on exactly what you need to accomplish, you may find something useful i

Re: Improving the kernel/i386 timecounter performance (GSoC proposal)

2009-04-02 Thread Julian Elischer
Hey Sergey, whatever you are using for a mail client SUCKS real bad at the moment.. it's really messing up your outgoing mails.. note the mail below Sergey Babkin wrote: Apr 2, 2009 01:03:48 AM, [1]peterjer...@optushome.com.au wrot= : >On 2009-Mar-30 18:45:30 -0700, Maxim Sobolev <

Re: Is it possible to use the libthr.a file on a Redhat Linux?

2009-03-31 Thread Julian Elischer
Shaowei Wang (wsw) wrote: On Tue, Mar 31, 2009 at 4:40 PM, Srinivas Ganji wrote: Dear All, I have tried to use the libthr.a library for compiling an application which is working fine on Redhat system with libpthread library. However, I end up with the following errors. ../lib/linux/libthr.a

Re: Improving the kernel/i386 timecounter performance (GSoC proposal)

2009-03-29 Thread Julian Elischer
David Xu wrote: Julian Elischer wrote: David Xu wrote: David Xu wrote: Julian Elischer wrote: depends on the hardware. anyhow I was only saying it was possible, not necessarily good or even useful. I had done some works for thread private page shared by kernel and userland when I was

Re: Improving the kernel/i386 timecounter performance (GSoC proposal)

2009-03-29 Thread Julian Elischer
David Xu wrote: David Xu wrote: Julian Elischer wrote: depends on the hardware. anyhow I was only saying it was possible, not necessarily good or even useful. I had done some works for thread private page shared by kernel and userland when I was doing userland spinlock, if userland asks a

Re: Improving the kernel/i386 timecounter performance (GSoC proposal)

2009-03-28 Thread Julian Elischer
David Xu wrote: Julian Elischer wrote: Scott Long wrote: I've been talking about this for years. All I need is help with the VM magic to create the page on fork. I also want two pages, one global for gettimeofday (and any other global data we can think of) and one per-process for s

Re: Improving the kernel/i386 timecounter performance (GSoC proposal)

2009-03-27 Thread Julian Elischer
Scott Long wrote: Robert Watson wrote: On Fri, 27 Mar 2009, Scott Long wrote: I've been talking about this for years. All I need is help with the VM magic to create the page on fork. I also want two pages, one global for gettimeofday (and any other global data we can think of) and one per

Re: Improving the kernel/i386 timecounter performance (GSoC proposal)

2009-03-27 Thread Julian Elischer
Scott Long wrote: I've been talking about this for years. All I need is help with the VM magic to create the page on fork. I also want two pages, one global for gettimeofday (and any other global data we can think of) and one per-process for static data like getpid/getgid. interestingly it i

Re: GSoC: Semantic File System

2009-03-21 Thread Julian Elischer
Gabriele Modena wrote: Hello, I am an AI master student at the university of Amsterdam. On of my current research interests lays in the area of information retrieval and I would like to do a project within my University research group starting next june. I am actually studying background litera

Re: removal of NGROUPS_MAX dependancy from base

2009-02-21 Thread Julian Elischer
ttw+...@cobbled.net wrote: attached is the first in a series of patches that is intended to remove the current limitation on group membership. this patch should remove the dependancy on the definition of NGROUPS_MAX as a static constant and implement it as a writable sysconf variable of the same

Re: Simulating bad network conditions

2009-02-18 Thread Julian Elischer
Bruce Cran wrote: On Wed, 18 Feb 2009 08:57:15 + xorquew...@googlemail.com wrote: On 2009-02-18 11:42:00, Maxim Konovalov wrote: ipfw(8) prob + dummynet(8). Hi. Thanks for the quick response. Is there, by any chance, an equivalent for PF? I see there's 'ALTQ' but it looks to be poorly s

Re: CFT: Graphics support for /boot/loader

2009-02-05 Thread Julian Elischer
Oliver Fromme wrote: Hello fellow hackers, Some of you might remember that I'm working on graphics support for our /boot/loader. Unfortunately, progress has been rather slow because of non-FreeBSD-related activity. Anyway, I have now prepared a tarball containing a loader binary for public tes

Re: CFT: Graphics support for /boot/loader

2009-02-05 Thread Julian Elischer
Max Laier wrote: On Thursday 05 February 2009 23:18:36 Oliver Fromme wrote: I have posted detailed instructions on the FreeBSD wiki: http://wiki.freebsd.org/OliverFromme/BootLoaderTest Any kind of feedback is welcome. quick test in qemu - works well. Very cool! can you send a screenshot

Re: linking .a lib with another library

2009-02-05 Thread Julian Elischer
pluknet wrote: 2009/2/5 pluknet : Hi. The problem is: I have a program which is statically linked to my static lib during a build. The lib is in turn uses kvm*() calls, hence it should be linked with libkvm. in static linking order is important.. you need to put libkvm after the library that

Re: pmap.h: No such file or directory---- Debugging error

2009-02-03 Thread Julian Elischer
Kamlesh Patel wrote: Hi All, I have two system one is Debug and another is Target machine. I am debugging using kgdb from Debug machine. Line no: 272 into the function vm_page_startup( vaddr ) of vm_page.c - Freebsd 7.0, mapped=pmap() is there. when i press "S" (step by step debug) then (kgd

Re: blockable sleep lock (sleep mutex) 16

2009-02-02 Thread Julian Elischer
John Baldwin wrote: On Monday 02 February 2009 7:33:08 am Nikola Knežević wrote: On 30 Jan 2009, at 18:11 , Nikola Knežević wrote: This is the message buffer: Unread portion of the kernel message buffer: panic: blockable sleep lock (sleep mutex) 16 @ /usr/src/sys/vm/ uma_core.c:1834 Any hint

Re: Mackbook pro nvidia based video backlight

2009-01-30 Thread Julian Elischer
Ed Schouten wrote: * Alexander Leidinger wrote: The ideal solution would be to integrate it into vidcontrol, calling some kind of ioctl on the TTY/consolectl, but syscons is too brainless to know anything about hardware specific features. Here we are back to what was proposed instead of sysctl.

Re: panic by unlocking of mutex in KLD

2009-01-12 Thread Julian Elischer
Alexej Sokolov wrote: 2009/1/12 Mateusz Guzik On Mon, Jan 12, 2009 at 07:16:51PM +0100, Alexej Sokolov wrote: 2009/1/12 Mateusz Guzik On Mon, Jan 12, 2009 at 05:19:56PM +0100, Alexej Sokolov wrote: 2009/1/12 Mateusz Guzik Mutexes have owners. It panics on loading because processes canno

Re: Having a problem of kernel panic

2009-01-09 Thread Julian Elischer
Kamlesh Patel wrote: Hi all, I am having a problem of kernel panic in FreeBSD 7.0: In sys/boot/forth/beastie.4th variable rebootkey variable mykey (added line) After building and installing the kernel, when i reboot the system it gives me the following error: -

Re: threaded, forked, rethreaded processes will deadlock

2009-01-09 Thread Julian Elischer
Brian Fundakowski Feldman wrote: On Thu, Jan 08, 2009 at 11:09:16PM -0800, Julian Elischer wrote: Brian Fundakowski Feldman wrote: On Thu, Jan 08, 2009 at 10:44:20PM -0500, Daniel Eischen wrote: On Thu, 8 Jan 2009, Brian Fundakowski Feldman wrote: It appears that the post-fork hooks for

Re: threaded, forked, rethreaded processes will deadlock

2009-01-08 Thread Julian Elischer
Brian Fundakowski Feldman wrote: On Thu, Jan 08, 2009 at 10:44:20PM -0500, Daniel Eischen wrote: On Thu, 8 Jan 2009, Brian Fundakowski Feldman wrote: It appears that the post-fork hooks for malloc(3) are somewhat broken such that when a threaded program forks, and then its child attempts to go

Re: adding proc to allproc

2008-12-19 Thread Julian Elischer
you are making a circular list somewhere or somehow... have you tried going into ddb? On Fri, 2008-12-19 at 21:27 -0800, Julian Elischer wrote: Ferner Cilloniz wrote: Hello everyone. I am playing with freebsd and just learning some things about the FreeBSD kernel. So for my first quest i

Re: adding proc to allproc

2008-12-19 Thread Julian Elischer
Ferner Cilloniz wrote: Hello everyone. I am playing with freebsd and just learning some things about the FreeBSD kernel. So for my first quest i am placing random processes from the allproc list into a list of my own and trying to add them back into allproc I have pasted the code below. ---

Re: FreeBSD (russian)

2008-12-10 Thread Julian Elischer
pluknet wrote: 2008/12/10 Julian Elischer <[EMAIL PROTECTED]>: Eygene Ryabinkin wrote: Wed, Dec 10, 2008 at 04:17:48AM +0200, Юлия Смолик wrote: Hello dear command of developers of FreeBSD. I wish to take part in the project on developing out of FreeBSD and to subscribe for dispatch.

Re: FreeBSD (russian)

2008-12-10 Thread Julian Elischer
Eygene Ryabinkin wrote: Wed, Dec 10, 2008 at 04:17:48AM +0200, Юлия Смолик wrote: Hello dear command of developers of FreeBSD. I wish to take part in the project on developing out of FreeBSD and to subscribe for dispatch. http://lists.freebsd.org/pipermail/freebsd-hackers/2008-November/026566.

Re: NFS (& amd?) dysfunction descending a hierarchy

2008-12-09 Thread Julian Elischer
Kostik Belousov wrote: On Tue, Dec 09, 2008 at 11:01:10AM -0800, David Wolfskill wrote: On Tue, Dec 02, 2008 at 04:15:38PM -0800, David Wolfskill wrote: I seem to have a fairly- (though not deterministly so) reproducible mode of failure with an NFS-mounted directory hierarchy: An attempt to tr

Re: Small change to wc

2008-12-05 Thread Julian Elischer
Garrett Cooper wrote: On Fri, Dec 5, 2008 at 2:14 PM, Sheldon Givens <[EMAIL PROTECTED]> wrote: Hello everyone, In the process of migrating the last of a few Linux servers to FreeBSD, we ran in to a bit of a snag with one of our scripts when BSD wc didn't have an equivalent to the Linux -L. This

Re: Virtual Memory Improvement Algorithm

2008-11-02 Thread Julian Elischer
Kamlesh Patel wrote: Hi friends, My name is Kamlesh and i am working on freeBSD Virtual Memory Improvement Algorithm as my Master Project at California State University Sacramento. Could any one help me in Virtual Memory free space management: Splay tree > to Radix tree? Thanks Kamles

Re: kgdb debugging

2008-10-07 Thread Julian Elischer
alan yang wrote: Could people shed some light how to get remote debugging going, must be something that i overlooked, really appreciate. Two FreeBSD7 systems, target and development, connected with null modem cable on each's COM1. step 1) - rebuild kernel with following options:

Re: freebsd-update missed?

2008-09-27 Thread Julian Elischer
[EMAIL PROTECTED] wrote: On 20080927 01:06:22, Daniel Eischen wrote: It's not security related, so I don't know whether it would be in a binary update. You should follow the procedure listed in the links above. I'm not sure either. In every description I see of freebsd-update, there's a claim

Re: popen() in multithreaded program - hangs?

2008-09-26 Thread Julian Elischer
[EMAIL PROTECTED] wrote: I'm trying to write a client for the jack audio connection kit (http://jackaudio.org), have hit an apparent bug and am not sure what revision of FreeBSD? who's at fault. This is the client: -- #include #include jack_port_t *input_port; jack_port_t *output_port;

Re: Major SMP problems with lstat/namei

2008-09-24 Thread Julian Elischer
Jeff Wheelhouse wrote: On Sep 24, 2008, at 6:12 AM, Ivan Voras wrote: There is nothing that can be done within the 6.x branch. 7.x contains many improvements but I think only 8.x will directly change the lockmgr and the namei cache. The best things you can try right now is to use 7-STABLE (or s

Re: amd64, COMPAT_IA32 & syscall diverts

2008-09-17 Thread Julian Elischer
Andrew N. Below wrote: Andrew N. Below wrote: Hi all. We have loadable kernel module with several syscall intercepting functions (e.g., sysent[SYS___sysctl].sy_call). Earlier, this module was built and used on i386 platform, now we have to run it on amd64. For some reasons we have to enable COM

Re: amd64, COMPAT_IA32 & syscall diverts

2008-09-17 Thread Julian Elischer
Andrew N. Below wrote: Hi all. We have loadable kernel module with several syscall intercepting functions (e.g., sysent[SYS___sysctl].sy_call). Earlier, this module was built and used on i386 platform, now we have to run it on amd64. For some reasons we have to enable COMPAT_IA32 option in kerne

Re: pkg_improved GSoC 2008 finished

2008-08-22 Thread Julian Elischer
Kevin Downey wrote: On Fri, Aug 22, 2008 at 2:56 AM, Anders Nore <[EMAIL PROTECTED]> wrote: On Fri, 22 Aug 2008 00:00:01 +0200, Kevin Downey <[EMAIL PROTECTED]> wrote: On Thu, Aug 21, 2008 at 2:56 PM, Kevin Downey <[EMAIL PROTECTED]> wrote: On Thu, Aug 21, 2008 at 6:10 AM, Anders Nore <[EMAIL

Re: Acquiring a mtx after an sx lock

2008-08-19 Thread Julian Elischer
Ed Maste wrote: On Mon, Aug 18, 2008 at 11:38:40AM -0700, Julian Elischer wrote: Ed Maste wrote: Ahh, it seems ups' commit of rmlocks changed the "You have: sx_lock, You want: Slp_mtx" case from no to ok (in r173444). Ignore me.. I was reading the table backwards.. of course

Re: Acquiring a mtx after an sx lock

2008-08-18 Thread Julian Elischer
Julian Elischer wrote: Ed Maste wrote: On Mon, Aug 18, 2008 at 12:02:56PM -0400, Ryan Stone wrote: On Mon, Aug 18, 2008 at 11:54 AM, Max Laier <[EMAIL PROTECTED]> wrote: On Monday 18 August 2008 17:14:01 Ryan Stone wrote: Are there any problems acquiring a sleep mutex after acquiring

Re: Acquiring a mtx after an sx lock

2008-08-18 Thread Julian Elischer
Ed Maste wrote: On Mon, Aug 18, 2008 at 12:02:56PM -0400, Ryan Stone wrote: On Mon, Aug 18, 2008 at 11:54 AM, Max Laier <[EMAIL PROTECTED]> wrote: On Monday 18 August 2008 17:14:01 Ryan Stone wrote: Are there any problems acquiring a sleep mutex after acquiring an sx lock? man 9 locking sa

Re: Laptop suggestions?

2008-07-30 Thread Julian Elischer
Matt Olander wrote: http://www.ixsystems.com/products/bsd-laptop.html Hi everyone! I actually had our prototype of this laptop up at the OSCON show in Portland and it was pretty well received. Everything works for the most part although we're still tweaking some things for ACPI. I'll have

Re: atomic_load_acq_int in ipi_nmi_handler()

2008-07-17 Thread Julian Elischer
Murty, Ravi wrote: Hello All, Just a quick question: Why does this function (ipi_nmi_handler) execute a atomic_load_acq_int(&ipi_nmi_pending). Following this it calls atomic_clear_int to clear itself out of this mask. I can't think of why the CPU would reorder these instructions knowing ther

Re: how can i get a file name knowing its descriptor?

2008-07-03 Thread Julian Elischer
Uladzislau Rezki wrote: Hi all, I've been writing a small kernel module, that provides information about modification of the filesystem to user_land/userspace through the character device. I'm using FreeBSD 4.10 So, my question is: Is there any way to get file name knowing its descriptor? wel

Re: i386 jail undex amd64: libkvm

2008-06-26 Thread Julian Elischer
Dmitry Morozovsky wrote: Dear colleagues, it seems this question had been arised several times, but I failed to find any solution (yet). What is (and is there?) the proper way to compile libkvm-related binaries (and libkvm itself) to assure 32bit binaries work with amd64 kernel structures?

Re: [Fwd: Re: 3 connections as one]

2008-06-26 Thread Julian Elischer
Matthew Dillon wrote: :I've done that running mpd to split the load over the tunnels from the :colo. : :if either tunnel goes down mpd hickups nd hten everything keeps going.. :.. :mpd does this for me.. That looks almost perfect for the colo idea. I see how the links are set up and I

Re: [Fwd: Re: 3 connections as one]

2008-06-26 Thread Julian Elischer
Matthew Dillon wrote: You can do it for outgoing connections fairly easily using the NAT trick (with PF), but you can't really load balance multiple links without support from some outside entity. If one of the tunnels goes down you can fail-over but any pre-existing connections

Re: [Fwd: Re: 3 connections as one]

2008-06-25 Thread Julian Elischer
Martes Wigglesworth wrote: Forwarded Message From: Martes Wigglesworth <[EMAIL PROTECTED]> Reply-To: [EMAIL PROTECTED] To: Andres Chavez <[EMAIL PROTECTED]> Subject: Re: 3 connections as one Date: Tue, 24 Jun 2008 16:34:04 -0400 I have been researching this issue for almost a m

Re: 3 connections as one

2008-06-24 Thread Julian Elischer
Andres Chavez wrote: Hi, a friend is challenge me to make use of 3 different connections (one adsl, one cable, and one Evdo) as one single connection to internet, i believe for make faster downloads or something such, its that can be possible ?, if so, can anybody help me with this?, this sounds

Re: Cross platform building best practices (building 6 on 7)

2008-06-20 Thread Julian Elischer
Alexander Sack wrote: On Fri, Jun 20, 2008 at 5:14 PM, Julian Elischer <[EMAIL PROTECTED]> wrote: Alexander Sack wrote: On Thu, Jun 19, 2008 at 11:22 AM, Garrett Cooper <[EMAIL PROTECTED]> wrote: On Thu, Jun 19, 2008 at 6:29 AM, Alexander Sack <[EMAIL PROTECTED]> wrote:

Re: Cross platform building best practices (building 6 on 7)

2008-06-20 Thread Julian Elischer
Alexander Sack wrote: On Fri, Jun 20, 2008 at 5:14 PM, Julian Elischer <[EMAIL PROTECTED]> wrote: Alexander Sack wrote: On Thu, Jun 19, 2008 at 11:22 AM, Garrett Cooper <[EMAIL PROTECTED]> wrote: On Thu, Jun 19, 2008 at 6:29 AM, Alexander Sack <[EMAIL PROTECTED]> wrote:

Re: Cross platform building best practices (building 6 on 7)

2008-06-20 Thread Julian Elischer
Alexander Sack wrote: On Thu, Jun 19, 2008 at 11:22 AM, Garrett Cooper <[EMAIL PROTECTED]> wrote: On Thu, Jun 19, 2008 at 6:29 AM, Alexander Sack <[EMAIL PROTECTED]> wrote: Hello Folks: I've done a lot of Googling and scouring the lists about this particular subject so I apologize for rehashin

Re: Trying (not) to crash with libpthread (6.3-RELEASE)

2008-05-16 Thread Julian Elischer
Jille Timmermans wrote: Hello, I'm trying to catch SIGSEGV, to be able to run 'unchecked' (possibly crashing) code. And not letting the entire program die, but just kill that thread. So I wrote some testing code. But, I ran into a problem; the signal-handler does not work when a thread is cre

Re: 4bsd fuzzy runq

2008-05-11 Thread Julian Elischer
Elijah Buck wrote: Hi, I'm looking at the code for 4bsd fuzzy run queues in kern_switch.c The relevant bit: if (fuzz > 1) { int count = fuzz; int cpu = PCPU_GET(cpuid); struct thread *td2; td2 = td = TAILQ_FIRST(rqh); while (count-- && td2) { if (td->td_lastcpu == c

Re: correct #define in source to specify FBSD vs. linux?

2008-05-09 Thread Julian Elischer
Steve Franks wrote: Seems there is a more appropriate list for my earlier question to freebsd-questions: On and on I charge porting linux engineering tools. Major pita. I see a bunch of #ifdef __APPLE__ lines to pull in alternate headers; what's the equiv for FreeBSD? __FreeBSD__ but it is m

Re: SW_PREEMPT and cpu runq

2008-05-08 Thread Julian Elischer
Murty, Ravi wrote: Hi, When a thread is being switched out and it is being preempted (e.g. time quantum expires), why does sched_switch hold it on the current cpu? i.e. why does the code see that it was preempted and put it back on the same queue? In other cases it looks to see if it can be

Re: binary compatibility query

2008-05-05 Thread Julian Elischer
Carl Shapiro wrote: Kris & Julian Thank you for clarifiying the compatibility situation. This information was exactly what I was looking for. I have a follow-up question based on this remark... On 5/5/08, Kris Kennaway <[EMAIL PROTECTED]> wrote: Actually we don't attempt to keep this form o

Re: binary compatibility query

2008-05-05 Thread Julian Elischer
Kris Kennaway wrote: Julian Elischer wrote: Kris Kennaway wrote: Carl Shapiro wrote: FreeBSD Hackers, I have a general question about the compatibility of FreeBSD binaries within major releases. If I build a binary for a given release of FreeBSD can I make a reasonable guarantee that the

Re: binary compatibility query

2008-05-05 Thread Julian Elischer
Kris Kennaway wrote: Carl Shapiro wrote: FreeBSD Hackers, I have a general question about the compatibility of FreeBSD binaries within major releases. If I build a binary for a given release of FreeBSD can I make a reasonable guarantee that the binary will run on both previous and subsequent m

Re: maybe_preempt_in_ksegrp

2008-04-30 Thread Julian Elischer
s own ksegrp (SYSTEM_SCOPE) I don't see this call (maybe_preempt_in_ksegrp) ever getting called :). which is why the default was process scope. Thanks ravi -Original Message----- From: Julian Elischer [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 30, 2008 3:52 PM To: Murty, Ravi C

Re: maybe_preempt_in_ksegrp

2008-04-30 Thread Julian Elischer
Murty, Ravi wrote: Julian, Apologies for sticking to 6.x, I checked and looks like this function and several others are out in 7.x. It's just that we've been using 6.x for a while and continue to look at it. :) Coming back, I was thinking of the problem the other way around. The thread gets pu

Re: maybe_preempt_in_ksegrp

2008-04-30 Thread Julian Elischer
Murty, Ravi wrote: Hello All, Looking through the scheduler code (kern_switch.c) and two functions that stood out were the following: 1. maybe_preempt_in_ksegrp - this function basically checks if the thread being made runnable should preempt another thread that is part of the same

Re: Did the notion of ksegrp's go away in 7.x?

2008-04-22 Thread Julian Elischer
Murty, Ravi wrote: Hello, I was browsing through the 7.x code and in particular looking at kern/kern_switch.c and find ksegrp completely missing (I was looking for setrunqueue). Is the notion of process_scope vs system_scope out in 7.x? As I mentioned to you in previous mail, this all cha

Re: Introducing me!!

2008-04-22 Thread Julian Elischer
Ryan French wrote: Hi All, My name is Ryan French. I am a Google Summer of Code participant this year, and for my project I will be implementing MPLS in FreeBSD. I am in my 5th year of university at the University of Waikato in New Zealand, and this year I am working on obtaining my PostGradu

Re: Do you really "sleep" when blocked on a mutex?

2008-04-21 Thread Julian Elischer
Murty, Ravi wrote: That's actually what I was trying to get to. If I look at vm_daemon(), it checks to see if every thread of the process is running, on the runq or sleeping. If any threads fails the condition - and I can think of the case where a thread is blocked waiting for a lock - it is not

Re: Do you really "sleep" when blocked on a mutex?

2008-04-21 Thread Julian Elischer
From: Julian Elischer [mailto:[EMAIL PROTECTED] Sent: Monday, April 21, 2008 12:54 PM To: Murty, Ravi Cc: freebsd-hackers@freebsd.org Subject: Re: Do you really "sleep" when blocked on a mutex? Murty, Ravi wrote: Hello, When a thread cannot get a mutex (default mutex) and needs to be

Re: Do you really "sleep" when blocked on a mutex?

2008-04-21 Thread Julian Elischer
Murty, Ravi wrote: Hello, When a thread cannot get a mutex (default mutex) and needs to be blocked, is it really put to sleep? From looking at the code it appears that it is inhibited (TD_SET_LOCK) but isn't really put to sleep. it really has two answers. 1/ sleep has a lot of historical

Re: thread and ksegrp priorities

2008-04-21 Thread Julian Elischer
Murty, Ravi wrote: Hello All, I am working on the 6.2 FreeBSD code base and has a couple of simple questions. The thread structure defines two priority fields "td_base_pri" and "td_priority" while a ksegrp defines "kg_user_pri" and "kg_pri_class". 1. Since a ksegrp can have multip

Re: md_spinlock_count?

2008-04-16 Thread Julian Elischer
Murty, Ravi wrote: Hello All, I was looking at the code that creates a new process (fork) with a single thread coming out on the other side. I can't figure out a couple of things. 1. Why is the md_spinlock_count for the new thread set to 1 and not to 0. This happens in cpu_fork and

Re: Multipath routing - failover version

2008-04-16 Thread Julian Elischer
M.S. Motanu wrote: I've ported the multipath routing patch by Ed Tanzer <[EMAIL PROTECTED] > for FreeBSD 4.8-STABLE to FreeBSD 6.1-RELEASE. multipath routing was just committed to -current and will be merged

Re: Perforce and `p4 diff2' against the origin

2008-04-08 Thread Julian Elischer
John Baldwin wrote: On Monday 07 April 2008 02:31:59 pm Ed Schouten wrote: Thanks everyone for your replies. I think I should spend some time at the office trying the solutions to see what's the easiest way. I'm just a little bit disappointed by the fact that p4 doesn't have some kind of switch

Re: Perforce and `p4 diff2' against the origin

2008-04-07 Thread Julian Elischer
Ed Schouten wrote: * John Baldwin <[EMAIL PROTECTED]> wrote: On Saturday 05 April 2008 10:50:38 am Ed Schouten wrote: Hello everyone, Because my mpsafetty project in Perforce is going quite well, I'm considering running some kind of cron job to generate nightly diffs, so other people (interest

Re: Perforce and `p4 diff2' against the origin

2008-04-07 Thread Julian Elischer
Mike Meyer wrote: On Mon, 7 Apr 2008 10:39:07 -0400 John Baldwin <[EMAIL PROTECTED]> wrote: On Saturday 05 April 2008 10:50:38 am Ed Schouten wrote: Hello everyone, Because my mpsafetty project in Perforce is going quite well, I'm considering running some kind of cron job to generate nightly

Re: bug in /bin/sh?!?

2008-04-06 Thread Julian Elischer
dino wrote: Hello, on my FreeBSD 7.0-STABLE the line: sh -c 'set -- ${HOME+A B C}; echo "1:$1"; echo "2:$2:"; echo "3:$3:"' prints 1:A B C: 2:: 3:: I would rather expect: 1:A: 2:B: 3:C: Is it correct that field splitting isn't performed on default/alternate expanded values? "A B C" is

Re: Stupid driver build/debug questions

2008-03-27 Thread Julian Elischer
Alexander Sack wrote: Hello: New to the FreeBSD kernel and I'm investigating a driver problem (wasn't sure what list this should go on). I was wondering how to make a driver statically built instead of a loadable module? Is this an artifact of the driver source build or the generic kernel conf

Re: [HEADS UP!] IPFW Ideas: possible SoC 2008 candidate

2008-03-26 Thread Julian Elischer
Vadim Goncharov wrote: Hi Julian Elischer! On Mon, 24 Mar 2008 10:53:44 -0700; Julian Elischer wrote about 'Re: [HEADS UP!] IPFW Ideas: possible SoC 2008 candidate': here are some of my ideas for ipfw changes: 1/ redo locking so that packets do not have to get locks on the stru

Re: [HEADS UP!] IPFW Ideas: possible SoC 2008 candidate

2008-03-24 Thread Julian Elischer
here are some of my ideas for ipfw changes: 1/ redo locking so that packets do not have to get locks on the structure... I have several ideas on this 2/ allow separate firewalls to be used at different parts of the network stack (i.e allow multiple taboe sto co-exist) 3/ possibly keeping pe

Re: Transferring ports

2008-03-20 Thread Julian Elischer
Peter Pentchev wrote: On Fri, Mar 14, 2008 at 12:02:42AM +0300, Dmitry Marakasov wrote: The purpose is similar - creating jails out of host system in fast and easy way, possibility to strip everything unneeded (useful for secure minimal jails or flash/livecd/embedded installations of minimal

Re: Asynchronous syscalls for massive concurrency

2008-03-19 Thread Julian Elischer
Peter Schuller wrote: Hello, Reading the recent thread on -current regarding dropping KSE and the evolution of application design with respect to concurrency, prompted me to want to ask what people think regarding the desirability and/or feasability of making FreeBSD support an asynchronous inte

Re: remote operation or admin

2008-03-19 Thread Julian Elischer
Chuck Robey wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jeremy Chadwick wrote: On Wed, Mar 19, 2008 at 02:03:54PM -0400, Chuck Robey wrote: Well, I am, and I'm not, if you could answer me one quiestion, then I would probably know for sure. What is the difference between our SMP and t

Re: vkernel & GSoC, some questions

2008-03-17 Thread Julian Elischer
Kris Kennaway wrote: Matthew Dillon wrote: :I don't think there's an issue that needs solving, GCC has -nostdlib and :-fno-builtin for precisely this reason. You are missing the point entirely. The point is to allow the vkernel to use libc, aka allow it to be compiled, linked, and r

Re: vkernel & GSoC, some questions

2008-03-17 Thread Julian Elischer
Matthew Dillon wrote: In all three cases the emulated hardware -- disk and network basically, devolves down into calling read() or write() or the real-kernel equivalent. A hypervisor has the most work to do since it is trying to emulate a hardware interface (adding another layer

Re: Documentation on writing a custom socket

2008-03-10 Thread Julian Elischer
, Alexander Leidinger wrote: Quoting Julian Elischer <[EMAIL PROTECTED]> (from Sun, 09 Mar 2008 09:33:36 -0700): Hans Petter Selasky wrote: On Saturday 08 March 2008, Robert Watson wrote: On Sat, 8 Mar 2008, Hans Petter Selasky wrote: For example, do you anticipate using or even needing the r

Re: libpthread/fork issue

2008-03-09 Thread Julian Elischer
Bernd Walter wrote: On Fri, Mar 07, 2008 at 11:08:50AM -0500, Daniel Eischen wrote: On Thu, 6 Mar 2008, Marko, Shaun wrote: I'm working on FreeBSD 6.2 and I'm wondering if anybody can help with an issue I've found using fork and threads. The attached program demonstrates the problem. In short,

Re: Documentation on writing a custom socket

2008-03-09 Thread Julian Elischer
Hans Petter Selasky wrote: On Saturday 08 March 2008, Robert Watson wrote: On Sat, 8 Mar 2008, Hans Petter Selasky wrote: For example, do you anticipate using or even needing the routing facilities, and how might you map ISDN telephony parts into the normal network stack infrastructure of add

Re: Documentation on writing a custom socket

2008-03-08 Thread Julian Elischer
Hartmut Brandt wrote: Robert Watson wrote: On Sat, 8 Mar 2008, Hans Petter Selasky wrote: I'm planning to create a new socket type in FreeBSD called AF_Q921, which is to be used for ISDN telephony. Where do I find documentation on how to implement a new socket in the kernel ? [SNIP] tha

Re: Documentation on writing a custom socket

2008-03-08 Thread Julian Elischer
Hans Petter Selasky wrote: Hi, I'm planning to create a new socket type in FreeBSD called AF_Q921, which is to be used for ISDN telephony. Where do I find documentation on how to implement a new socket in the kernel ? --HPS ___ freebsd-hackers@free

Re: A (perhaps silly) kqueue question

2008-03-07 Thread Julian Elischer
Vlad GALU wrote: On 3/7/08, Julian Elischer <[EMAIL PROTECTED]> wrote: Vlad GALU wrote: >I see an unusual symptom with one of our in-house applications. The > main I/O loop calls kevent(), which in turn returns two events with > EV_EOF error set, always for the same descr

Re: A (perhaps silly) kqueue question

2008-03-07 Thread Julian Elischer
Vlad GALU wrote: I see an unusual symptom with one of our in-house applications. The main I/O loop calls kevent(), which in turn returns two events with EV_EOF error set, always for the same descriptors (they're both socket descriptors). As the man page is not pretty clear about it and I don't

Re: readahead(2) - Linux

2008-03-04 Thread Julian Elischer
Robert Watson wrote: On Mon, 3 Mar 2008, Julian Elischer wrote: Ivan Voras wrote: the aim is to load it into system memory but not copy anything into user memory. In an ideal world (tm), a prefetch system call doesn't actually force the I/O to happen, it just hints that if i

Re: readahead(2) - Linux

2008-03-03 Thread Julian Elischer
Ivan Voras wrote: Ed Schouten wrote: * carlos neira <[EMAIL PROTECTED]> wrote: is there an equivalent of readahead syscall in linux , for freebsd ?. i was looking at http://preload.sourceforge.net/ , and it needs this . Maybe a mmap(), followed by a madvise()? Or an open() followed by a

Re: synchronous freebsd print

2008-02-27 Thread Julian Elischer
Sanjeev Kumar.S wrote: Hi, I have a quick question, and I believe this will be a common requirement. I do a print of some data and then immediately in a next statement there is a crash. But the print is not complete, before it completes there is a crash, the print is

Re: find -lname and -ilname implemented

2008-02-27 Thread Julian Elischer
David O'Brien wrote: On Mon, Feb 25, 2008 at 10:33:41PM +0200, Giorgos Keramidas wrote: On 2008-02-23 16:48, "M. Warner Losh" <[EMAIL PROTECTED]> wrote: This knee-jerk reaction against gnu find functionality baffles me. The changes are trivial and make FreeBSD more compatible. It is such an ob

Re: find -lname and -ilname implemented

2008-02-24 Thread Julian Elischer
Mike Meyer wrote: What's ridiculous? That the only limit is the developers definition of "trivial"? Care to provide another one? That OS X turned /bin/sh into bash? I'd agree that that's ridiculous, except it's a fact. That they did it to make OS X more compatible with Linux? Would you like me

Re: pci support for /usr/share/example/drivers?

2008-02-18 Thread Julian Elischer
[EMAIL PROTECTED] wrote: Hi, all, the scripts in /usr/share/examples/drivers, Author: Julian Elischer create two isa skeletons for drivers. i would like to create a skeleton for a pci driver. Please, can you help me by pointing out all diffs needed for this purpose? Thanks for your

Re: nvi strangeness

2008-02-08 Thread Julian Elischer
Dag-Erling Smørgrav wrote: As everybody knows, the ex/vi command for regexp substitution is [range] s[ubstitute] [/pattern/replace/] [options] [count] [flags] The man page does not document the syntax for ranges (nor for offsets or counts for that matter) Assuming the syntax is the same

Re: retrive data from mbuf chain

2008-02-07 Thread Julian Elischer
Vlad GALU wrote: On 2/7/08, Biks N <[EMAIL PROTECTED]> wrote: Hi, I am new to FreeBSD kernel programming. Currently I am trying to work on mbuf data manupulation. >From my understanding: data (payload) is stored into one or more mufs which are chained together through m_next pointer. Now, I

Re: fs/udf: vm pages "overlap" while reading large dir [patch]

2008-02-05 Thread Julian Elischer
Andriy Gapon wrote: on 04/02/2008 22:07 Pav Lucistnik said the following: Julian Elischer píše v po 04. 02. 2008 v 10:36 -0800: Andriy Gapon wrote: More on the problem with reading big directories on UDF. You do realise that you have now made yourself the official maintainer of the UDF file

Re: fs/udf: vm pages "overlap" while reading large dir [patch]

2008-02-04 Thread Julian Elischer
Andriy Gapon wrote: More on the problem with reading big directories on UDF. You do realise that you have now made yourself the official maintainer of the UDF file system by submitting a competent and insightful analysis of the problem? First, some sleuthing. I came to believe that the probl

Re: Memory allocation performance

2008-02-03 Thread Julian Elischer
Dag-Erling Smørgrav wrote: Julian Elischer <[EMAIL PROTECTED]> writes: Robert Watson <[EMAIL PROTECTED]> writes: be a good time to try to revalidate that. Basically, the goal would be to make the pcpu cache FIFO as much as possible as that maximizes the chances that the newly allo

Re: Memory allocation performance

2008-02-02 Thread Julian Elischer
Robert Watson wrote: be a good time to try to revalidate that. Basically, the goal would be to make the pcpu cache FIFO as much as possible as that maximizes the you mean FILO or LIFO right? chances that the newly allocated object already has lines in the cache. It's a fairly trivial twea

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

2008-02-02 Thread Julian Elischer
OutBackDingo wrote: I dont think I follow why people think its that hard to convert the FreeBSD src tree to some other RCS with history, branches and tags I have a FULL CVS conversion to a mercurial tree converted from a February 1, 2008 CVS snapshot. I also have a Full CVS converted to Subversi

Re: vmstat layout

2008-02-01 Thread Julian Elischer
Garrett Cooper wrote: On Feb 1, 2008, at 3:26 AM, Dag-Erling Smørgrav wrote: vmstat(1) tries very hard to fit everything in 80 columns. Unfortunately, it's been years since anyone had a machine where none of the columns overflowed. [...] Removing columns is not an acceptable solution (it

<    1   2   3   4   5   6   7   8   9   10   >