Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 11 Jan 2018 07:46:24 +0000
From:      "Poul-Henning Kamp" <phk@phk.freebsd.dk>
To:        John Baldwin <jhb@freebsd.org>
Cc:        arch@freebsd.org
Subject:   Re: Ranting about OCF / crypto(9)
Message-ID:  <51883.1515656784@critter.freebsd.dk>
In-Reply-To: <3790717.UIxaijsHl3@ralph.baldwin.cx>
References:  <3790717.UIxaijsHl3@ralph.baldwin.cx>

next in thread | previous in thread | raw e-mail | index | archive | help
--------
In message <3790717.UIxaijsHl3@ralph.baldwin.cx>, John Baldwin writes:

>- OCF is over flexible and overly broad.

I would actually argue that it is neithe, quite the contrary.

With the kernel-userland transition becoming more expensive, what
we need is a DSL where you can put entire processing steps into the
kernel, sort of like BPF but more general.

Ideally, you should be able to push something like this into
the kernel and have it executed in a single syscall:

	h = hash:sha256()
	b = file_buffer()
	f = open("/tmp/foo", "r")
	while f.read(b):
		h.input(b)
	return h.hex()

BPF is the existence proof that stuff like this is both
feasible and profitable, now we just need to take it to
the next level.

If we had a language like this, accept-filters whouldn't be
necessary.

-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk@FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.



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