Displaying 9 results from an estimated 9 matches for "numthread".
Did you mean:
numthreads
2012 Mar 11
2
[patch] Threading support in ssh-agent
Hi all!
I do not know openssh patch policy so I am just sending
the patch to the mailing list. Sorry for inconvenience.
Ssh-agent seems to be too slow if you need to access thousands of
servers. This is a simple patch to enable threading in ssh2 authentication.
Patch adds "-p numthreads" option and defaults to the number of processors.
I've tested it as I could, but unfortunately I could check it
only in Linux environment. Though it shouldn't break anything.
Bye. Alex.
-------------- next part --------------
Index: Makefile.in
=================================...
2015 Mar 17
2
[PATCH v2] New API: btrfs-image
...t, umount);
+GUESTFSD_EXT_CMD(str_btrfsimage, btrfs-image);
int
optgroup_btrfs_available (void)
@@ -2005,3 +2006,54 @@ do_btrfstune_enable_skinny_metadata_extent_refs (const char *device)
return 0;
}
+
+int
+do_btrfs_image (char *const *sources, const char *image,
+ int compresslevel, int numthreads)
+{
+ size_t nr_sources = count_strings (sources);
+ const size_t MAX_ARGS = 64 + nr_sources;
+ const char *argv[MAX_ARGS];
+ size_t i = 0, j;
+ CLEANUP_FREE char *err = NULL;
+ CLEANUP_FREE char *out = NULL;
+ char compresslevel_s[64];
+ char numthreads_s[64];
+ int r;
+
+ if (nr_sourc...
2015 Mar 03
0
[PATCH 1/2] New API: btrfs-image
...t, umount);
+GUESTFSD_EXT_CMD(str_btrfsimage, btrfs-image);
int
optgroup_btrfs_available (void)
@@ -2005,3 +2006,51 @@ do_btrfstune_enable_skinny_metadata_extent_refs (const char *device)
return 0;
}
+
+int
+do_btrfs_image (char *const *sources, const char *image,
+ int compresslevel, int numthreads)
+{
+ size_t nr_sources = count_strings (sources);
+ const size_t MAX_ARGS = 64 + nr_sources;
+ const char *argv[MAX_ARGS];
+ size_t i = 0, j;
+ CLEANUP_FREE char *err = NULL;
+ CLEANUP_FREE char *out = NULL;
+ char compresslevel_s[64];
+ char numthreads_s[64];
+ int r;
+
+ if (nr_sourc...
2015 Mar 03
4
[PATCH 0/2] btrfs: add support to btrfs-image
This series adds new APIs to support btrfstune.
Chen Hanxiao (2):
New API: btrfs-image
New API: btrfs_image_restore
daemon/btrfs.c | 87 ++++++++++++++++++++++++++++++++++++++++++++++++++++
generator/actions.ml | 45 +++++++++++++++++++++++++++
src/MAX_PROC_NR | 2 +-
3 files changed, 133 insertions(+), 1 deletion(-)
--
2.1.0
2015 Mar 05
1
Re: [PATCH 1/2] New API: btrfs-image
...presslevel is an optional parameter, you can't just use it
directly like this. You have to check optargs_bitmask. The condition
should be something like:
if ((optargs_bitmask & GUESTFS_BTRFS_IMAGE_COMPRESSLEVEL_BITMASK) &&
compresslevel >= 0) {
...
}
> + if (numthreads) {
I would prefer not to expose the -t parameter, since it's essentially
an implementation detail.
If btrfs-image doesn't do the right thing, then you could pass
`sysconf (_SC_NPROCESSORS_ONLN)' here (see builder/pxzcat-c.c for an
example).
> +This used to create an image of a bt...
2015 Mar 23
0
Re: [PATCH v2] New API: btrfs-image
On Tue, Mar 17, 2015 at 02:53:35AM -0400, Chen Hanxiao wrote:
> + /* btrfs-progs will valid numtheads and choose the right one for us */
> + if ((optargs_bitmask & GUESTFS_BTRFS_IMAGE_NUMTHREADS_BITMASK)
> + && numthreads) {
> + snprintf (numthreads_s, sizeof numthreads_s, "%d", numthreads);
> + ADD_ARG (argv, i, "-t");
> + ADD_ARG (argv, i, numthreads_s);
> + }
Can you get rid of this, as I think it's an implementation detail....
2015 Mar 24
1
[PATCH v3] New API: btrfs-image
Signed-off-by: Chen Hanxiao <chenhanxiao@cn.fujitsu.com>
---
v3: remove optional paramter numthreads(-t)
v2: add optargs_bitmask check
daemon/btrfs.c | 43 +++++++++++++++++++++++++++++++++++++++++++
generator/actions.ml | 22 ++++++++++++++++++++++
src/MAX_PROC_NR | 2 +-
3 files changed, 66 insertions(+), 1 deletion(-)
diff --git a/daemon/btrfs.c b/daemon/btrfs.c
index fabb00b..3...
2000 Jan 30
1
Slow writes from MS-DOS LanMan Client to Samba server
...tcpip
[ms$elnk3]
DRIVERNAME=ELPC575$
INTERRUPT = 0xB
MAXTRANSMITS=40
[protman]
drivername=PROTMAN$
PRIORITY=MS$NDISHLP
[tcpip]
NBSessions=4
---- end of sniplet protocol.ini ----
---- tcputils.ini ----
[tcpglobal]
drivername=GLOBAL$
[sockets]
drivername=SOCKETS$
bindings=TCPIP_XIF
numsockets=4
numthreads=32
poolsize=3200
maxsendsize=1024
[telnet]
drivername=TELNET$
bindings=TCPIP_XIF
nsessions=0
max_out_sends=0
---- on of tcputils.ini ----
well I guess that's it..... thanks for helping ...
Stefan
2015 Nov 14
3
[lit] RFC: Per test timeout
Hi,
A feature I've wanted in lit for a while is a having a timeout per
test. Attached
are patches that implement this idea.
I'm e-mailing llvm-dev rather than llvm-commits
because I want to gather more feedback on my initial implementation and
hopefully some answers to some unresolved issues with my implementation.
Currently in lit you can set a global timeout for
all of the tests but