io_splice / 0.1.0
| Short description: | zero-copy pipe I/O for Linux | |||||
|---|---|---|---|---|---|---|
| Category: | Library/System | |||||
| Status: | alpha | |||||
| Created: | 2010-02-15 08:54:20 GMT | |||||
| Last update: | 2010-02-15 08:54:20 GMT | |||||
| Owner: | Ruby io_splice hackers (Projects of this owner) | |||||
| Homepage: | http://bogomips.org/ruby_io_splice/ | |||||
| Download: | http://bogomips.org/ruby_io_splice/files/ | |||||
| License: | LGPL | |||||
| Dependency: |
|
|||||
| Description: | The splice family of Linux system calls can transfer data between file descriptors without the need to copy data into userspace. Instead of a userspace buffer, they rely on an ordinary Unix pipe as a kernel-level buffer. Features
InstallOperating system support for the splice(2), tee(2) and vmsplice(2) system calls is required. Currently, only Linux 2.6.17 or later with a modern C library (glibc 2.5 or later) support these system calls. Using the latest stable Linux kernel is HIGHLY recommended as there have been numerous bugs in the early releases of these system calls. If you’re using a packaged Ruby distribution, make sure you have a C compiler and the matching Ruby development libraries and headers. If you use RubyGems:
gem install io_splice
Otherwise grab the latest tarball from: bogomips.org/ruby_io_splice/files/ Unpack it, and run "ruby setup.rb" UsageOur API matches the C API closely, see the RDoc for full API documentation and the Linux manpages for more details. All of these system calls are fairly new have seen limited usage anywhere, even outside of the Ruby world. If you encounter problems (privilege escalation, memory leaks (in the kernel), poor performance, corrupt data, etc..), try upgrading the Linux kernel to the latest stable version. These system calls have a lot of potential, and will hopefully be standardized and available in non-Linux kernels some day. DevelopmentYou can get the latest source via git from the following locations: git://git.bogomips.org/ruby_io_splice.git git://repo.or.cz/ruby_io_splice.git (mirror) You may browse the code from the web and download the latest snapshot tarballs here: Inline patches (from "git format-patch") to the mailing list are preferred because they allow code review and comments in the reply to the patch. We will adhere to mostly the same conventions for patch submissions as git itself. See the Documentation/SubmittingPatches document distributed with git on on patch submission guidelines to follow. Just don’t email the git mailing list or maintainer with io_splice patches. ContactAll feedback (bug reports, user/development discussion, patches, pull requests) go to the mailing list: ruby.io.splice@librelist.com |
|||||
| Versions: | [4.2.0 (2013-01-19)] [4.1.1 (2011-05-18)] [4.1.0 (2011-05-16)] [4.0.0 (2011-05-13)] [3.1.0 (2011-05-01)] [3.0.0 (2011-03-01)] [2.2.0 (2010-08-02)] [2.1.0 (2010-06-06)] [2.0.0 (2010-06-05)] [1.0.0 (2010-05-27)] [0.1.0 (2010-02-15)] | |||||