Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 26 Oct 2003 10:06:47 -0800
From:      John-Mark Gurney <gurney_j@efn.org>
To:        Sean Hamilton <sh@bel.bc.ca>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: Passthrough block device
Message-ID:  <20031026180647.GD558@funkthat.com>
In-Reply-To: <005b01c398ed$87070080$0300000a@antalus>
References:  <005b01c398ed$87070080$0300000a@antalus>

next in thread | previous in thread | raw e-mail | index | archive | help
Sean Hamilton wrote this message on Wed, Oct 22, 2003 at 15:40 -0700:
>   Does FreeBSD support a device that will allow for the passing of all reads
> and writes on it to a userland application? I wish to handle swapping
> myself, preferably without any kernel hacking.

Take a look at geom_gate from Pawel Dawidek.  You could probably very
easily modify the client side to do your own code, instead of passing
it over the network to the server.

http://garage.freebsd.pl/geom_gate.README

>   What would happen if the kernel decided to swap out such a process?

Probably a deadlock...  you could partially avoid this by using mlock
to prevent your process from swapping.  It may still be possible to dead
lock due to the stack of the process being able to be swapped out.. some
one better versed in the process/VM interaction should answer that.

-- 
  John-Mark Gurney				Voice: +1 415 225 5579

     "All that I will do, has been done, All that I have, has not."



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20031026180647.GD558>