1nbdkit-noparallel-filter(1)         NBDKIT         nbdkit-noparallel-filter(1)
2
3
4

NAME

6       nbdkit-noparallel-filter - nbdkit noparallel filter
7

SYNOPSIS

9        nbdkit --filter=noparallel plugin [serialize=MODE] [plugin-args...]
10

DESCRIPTION

12       "nbdkit-noparallel-filter" is a filter that intentionally disables
13       parallelism in handling requests from clients. It is mainly useful for
14       evaluating timing differences between various levels of parallelism.
15       It can also be used as a way to work around any bugs in a plugin's
16       claimed level of parallel support, without recompiling the plugin, or
17       to ease efforts when connecting with a client that can batch up several
18       requests but is not prepared to handle out-of-order replies.
19
20       To limit the number of concurrent clients it's usually better to use
21       nbdkit-limit-filter(1).
22

PARAMETERS

24       serialize=requests
25       serialize=all-requests
26       serialize=connections
27           Optional, controls how much serialization the filter will enforce.
28           Mode requests (default) prevents a single client from having more
29           than one in-flight request, but does not prevent parallel requests
30           from a second connection (if the plugin supports that). Mode all-
31           requests is stricter, enforcing that at most one request
32           (regardless of connection) will be active, but does not prevent
33           parallel connections (if the plugin supports that). Mode
34           connections is strictest, where there can be at most one client at
35           a time, and where the server will no longer advertise
36           "NBD_FLAG_MULTI_CONN" to clients.
37

EXAMPLES

39       Serve the file disk.img, but disallow out-of-order transaction
40       completion to a given client:
41
42        nbdkit --filter=noparallel file disk.img
43
44       Serve the file disk.img, but allowing only one client at a time:
45
46        nbdkit --filter=noparallel file serialize=connections disk.img
47

FILES

49       $filterdir/nbdkit-noparallel-filter.so
50           The filter.
51
52           Use "nbdkit --dump-config" to find the location of $filterdir.
53

VERSION

55       "nbdkit-noparallel-filter" first appeared in nbdkit 1.14.
56

SEE ALSO

58       nbdkit(1), nbdkit-file-plugin(1), nbdkit-filter(3),
59       nbdkit-fua-filter(1), nbdkit-limit-filter(1),
60       nbdkit-multi-conn-filter(1), nbdkit-nocache-filter(1),
61       nbdkit-noextents-filter(1), nbdkit-nozero-filter(1).
62

AUTHORS

64       Eric Blake
65
67       Copyright (C) 2018-2020 Red Hat Inc.
68

LICENSE

70       Redistribution and use in source and binary forms, with or without
71       modification, are permitted provided that the following conditions are
72       met:
73
74       •   Redistributions of source code must retain the above copyright
75           notice, this list of conditions and the following disclaimer.
76
77       •   Redistributions in binary form must reproduce the above copyright
78           notice, this list of conditions and the following disclaimer in the
79           documentation and/or other materials provided with the
80           distribution.
81
82       •   Neither the name of Red Hat nor the names of its contributors may
83           be used to endorse or promote products derived from this software
84           without specific prior written permission.
85
86       THIS SOFTWARE IS PROVIDED BY RED HAT AND CONTRIBUTORS ''AS IS'' AND ANY
87       EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
88       IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
89       PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL RED HAT OR CONTRIBUTORS BE
90       LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
91       CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
92       SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
93       BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
94       WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
95       OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
96       ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
97
98
99
100nbdkit-1.28.2                     2021-11-09       nbdkit-noparallel-filter(1)
Impressum