zero-copy Questions

2

Solved

I want to download and save a file in local directory from server by Spring-OpenFeign with zero-copy. Naive download method as following: import org.apache.commons.io.FileUtils @GetMapping("/...
Blowzed asked 22/9, 2019 at 17:15

2

Solved

Basically if one has a preloaded buffer for a null terminated string and the length to be referenced, and wants to pass a reference to it into a method that takes a std::string & but not copy t...
Rudyrudyard asked 25/2, 2022 at 7:13

2

Solved

I have two open file objects, dest and src. File object dest is opened for writing, with the seek position placed at some offset within the file, and file object src is opened for reading. What I n...
Wavy asked 17/9, 2011 at 16:23

2

I'm trying to understand the functionality of the vmsplice(2) syscall (man page here). I have two questions about the effect of the SPLICE_F_GIFT flag: The man page says that once you gift pages ...
Firenew asked 14/8, 2015 at 1:5

5

Solved

Profiling of my application reveals that it is spending nearly 5% of CPU time in string allocation. In many, many places I am making C++ std::string objects from a 64MB char buffer. The thing is, t...
Oxeyed asked 8/10, 2012 at 16:28

4

What is the difference between "zero-copy networking" and "kernel bypass"? Are they two phrases meaning the same thing, or different? Is kernel bypass a technique used within "zero copy networking"...

1

Solved

I'm using futures, tokio, hyper, and serde_json to request and deserialize some data that I need to hold until my next request. My initial thought was to make a struct containing the hyper::Chunk a...
Feria asked 30/4, 2017 at 1:58

3

Solved

here's another question about splice(). I'm hoping to use it to copy files, and am trying to use two splice calls joined by a pipe like the example on splice's Wikipedia page. I wrote a simple test...
Hagberry asked 16/10, 2009 at 23:43

1

Solved

I'm seeing some strange behavior when transferring large files from file to socket using zero-copy in Java. My environments: Windows 7 64-bit JDK 1.6.0_45 and 1.7.0_79. Centos 6.6 64-bit JDK 1.6....
Pad asked 3/5, 2015 at 19:0

2

Solved

I would like to use splice to zero-copy data from STDIN_FILENO to a file descriptor (which could be to a regular file, char or block device, FIFO, or anything that can be opened with open). In orde...
Whelp asked 3/9, 2010 at 20:44

1

Solved

I have array of bytes which is defined as pointer + size: size_t size; // size in bytes void *data; // NOT zero-terminated string How do I construct, preferably zero-copy, 'string' from it?
Anile asked 17/2, 2015 at 0:55

2

Solved

When splice was introduced it was discussed on the kernel list that sendfile was re-implemented based off of splice. The documentation for splice SLICE_F_MOVE states: Attempt to move pages inste...
Hakan asked 17/6, 2014 at 0:28

1

I'd like to know the reasons for why the linux kernel (or any other mainstream OS) does not have a feature for zero copy networking ? By zero copy I mean, that an packet/datastream does not g...
Foretaste asked 3/3, 2014 at 14:59

2

Solved

I have multiple threads that need to consume data from a TCP stream. I wish to use a circular buffer/queue in shared memory to read from the TCP socket. The TCP receive will write directly to the c...
Calvincalvina asked 2/7, 2012 at 14:16

1

Does any one know of any good java libraries/API packages that performs zero copy data transfers between two or more sockets? I know that Java's NIO API can perform zero copy data transfers from di...
Pablo asked 3/1, 2014 at 5:43

1

In Java I'd use the java.nio library and use FileChannel.transferTo() and FileChannel.transferFrom(). Is there something similar in (specifically) C# or am I going to have to load some unamanaged ....
Pythagoras asked 21/3, 2013 at 16:36

1

Solved

I'm duplicating a "master" pipe with tee() to write to multiple sockets using splice(). Naturally these pipes will get emptied at different rates depending on how much I can splice() to the destina...
Ruyle asked 7/1, 2013 at 6:4

1

Solved

I want to use zero-copy on mapped memory by cudaHostGetDevicePointer. Can I use thrust::host_vector or I must use cudaHostAlloc(...,cudaHostAllocMapped)? Or is it somehow easier to do with Thrust? ...
Petrochemical asked 27/7, 2012 at 16:59

2

Solved

I was reading about how you can use the java nio library to take advantage of file transfer/buffering at the O/S level which is called 'zero copy'. What are the differences in how you create/write...
Body asked 11/5, 2012 at 15:16

3

Solved

I just read an article that explains the zero-copy mechanism. It talks about the difference between zero-copy with and without Scatter/Gather supports. NIC without SG support, the data copies are...
Emmanuelemmeline asked 19/3, 2012 at 12:23

2

Solved

I would like to have UDP packets copied directly from the ethernet adapter into my userspace buffer Some details on my setup: I am receiving data from a pair of gigabit ethernet cameras. Combine...
Harrisharrisburg asked 16/9, 2011 at 20:24

1

Solved

Reading this zero copy article, Does Zero-copy exist in Windows OS (server 2003, 2008, 2008 R2) ?
Bookbindery asked 17/8, 2011 at 8:20

1

Solved

In the original vmsplice() implementation, it was suggested that if you had a user-land buffer 2x the maximum number of pages that could fit in a pipe, a successful vmsplice() on the second half of...
Thais asked 21/6, 2011 at 7:25

3

Solved

I am writing a network daemon, on Linux with kernel 2.6, which has one producer process and N of consumer processes, which does not make any change on the data, and does not create any response bac...
Annadiane asked 26/2, 2011 at 23:31

2

Solved

The man page for the splice system call says that splice may fail and set errno to EINVAL if: Target file system doesn't support splicing; neither of the descriptors refers to a pipe; or offset ...
Unto asked 3/9, 2010 at 18:42

© 2022 - 2024 — McMap. All rights reserved.