From: Baruch Even <baruch@ev-en.org>
To: Jan Engelhardt <jengelh@linux01.gwdg.de>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Relayfs question
Date: Sat, 19 Mar 2005 19:09:28 +0000 [thread overview]
Message-ID: <423C78E8.3040200@ev-en.org> (raw)
In-Reply-To: <Pine.LNX.4.61.0503191852520.21324@yvahk01.tjqt.qr>
Jan Engelhardt wrote:
> according to the relayfs description on opersys.com,
>
> |As the Linux kernel matures, there is an ever increasing number of facilities
> |and tools that need to relay large amounts of data from kernel space to user
> |space. Up to this point, each of these has had its own mechanism for relaying
> |data. To supersede the individual mechanisms, we introduce the "high-speed
> |data relay filesystem" (relayfs). As such, things like LTT, printk, EVLog,
> |etc.
>
> This sounds to me like it would obsolete most character-based devices, e.g.
> random and urandom.
>
> What do the relayfs developers say to this?
I'm not a relayfs developer, just a happy user...
The latest relayfs versions are slimmed down of the original and are
unlikely to be useful as a character-based device, but are much better
as a data-transport facility.
There is no longer any interface for character based reading so it can't
be used for the device replace purposes.
The current method is to just manage buffers and enable applications to
mmap the buffers to read them with some signalling on when a buffer is
to be read and when the kernel can overwrite it.
A character device is unlikely to need such interface since you do want
16 bytes of random data and not several pages of mapped random numbers.
If you really need a lot of random numbers you need something in
user-space anyway since you'll deplete the kernel entropy pool pretty
fast anyway.
If you have a device that needs to transfer lots of data doesn't mind it
being batched and doesn't really need the character device interface
then relayfs could be useful.
Baruch
next prev parent reply other threads:[~2005-03-19 19:10 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-03-19 18:00 Relayfs question Jan Engelhardt
2005-03-19 19:09 ` Baruch Even [this message]
2005-03-19 19:17 ` Jan Engelhardt
2005-03-19 20:53 ` Karim Yaghmour
2005-03-19 21:02 ` Karim Yaghmour
2005-03-19 21:08 ` Jan Engelhardt
2005-03-20 3:58 ` Karim Yaghmour
2005-03-21 7:17 ` Theodore Ts'o
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=423C78E8.3040200@ev-en.org \
--to=baruch@ev-en.org \
--cc=jengelh@linux01.gwdg.de \
--cc=linux-kernel@vger.kernel.org \
/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