From: Jeff Dike <jdike@addtoit.com>
To: Piotr Neuman <sikkh@wp.pl>
Cc: user-mode-linux-devel@lists.sourceforge.net
Subject: Re: [uml-devel] Simple db with separable io layer for humfs metadata.
Date: Fri, 09 Apr 2004 10:56:20 -0400 [thread overview]
Message-ID: <200404091456.i39EuKsf001797@ccure.user-mode-linux.org> (raw)
In-Reply-To: Your message of "Fri, 09 Apr 2004 11:37:16 +0200." <200404091137.16728.sikkh@wp.pl>
sikkh@wp.pl said:
> TDB: http://sourceforge.net/projects/tdb/ (it's used in samba project)
>
> Need only reimplement 2 pretty simple functions:
> static int tdb_write(TDB_CONTEXT *tdb, tdb_off off, void *buf, tdb_len len)
> static int tdb_read(TDB_CONTEXT *tdb,tdb_off off,void *buf,tdb_len len,int cv)
> QDBM: http://qdbm.sourceforge.net/
>
> In this case need to reimplement 4 functions (also simple):
> static int dpwrite(int fd, const void *buf, int size);
> static int dpseekwrite(int fd, int off, const void *buf, int size);
> static int dpread(int fd, void *buf, int size);
> static int dpseekread(int fd, int off, void *buf, int size);
That's exactly the sort of thing I was looking for.
The reason I want to do IO on behalf of any DB that gets linked into UML is
that I have a long-term goal of UML never blocking for any reason, except in
its own idle loop. This mostly includes waiting for disk IO, i.e. for normal
IO, swapping or faulting in pages, populating mmap areas, etc. So, I especially
want no blocking IO. I want UML to be able to schedule other things while
it's waiting for IO.
So, when it comes to databases, I want to be able to do AIO on their behalf,
do other things while the IO is happening, and let them know when it has
finished.
Jeff
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
prev parent reply other threads:[~2004-04-09 14:18 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-04-09 9:37 [uml-devel] Simple db with separable io layer for humfs metadata Piotr Neuman
2004-04-09 14:56 ` Jeff Dike [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200404091456.i39EuKsf001797@ccure.user-mode-linux.org \
--to=jdike@addtoit.com \
--cc=sikkh@wp.pl \
--cc=user-mode-linux-devel@lists.sourceforge.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox