Displaying 20 results from an estimated 413 matches for "bufsize".
Did you mean:
buf_size
2016 Oct 19
10
[PATCH v4 0/5] implement vcpu preempted check
...in_on_owner.
These spin_on_onwer variant also cause rcu stall before we apply this patch set
We also have observed some performace improvements.
PPC test result:
1 copy - 0.94%
2 copy - 7.17%
4 copy - 11.9%
8 copy - 3.04%
16 copy - 15.11%
details below:
Without patch:
1 copy - File Write 4096 bufsize 8000 maxblocks 2188223.0 KBps (30.0 s, 1 samples)
2 copy - File Write 4096 bufsize 8000 maxblocks 1804433.0 KBps (30.0 s, 1 samples)
4 copy - File Write 4096 bufsize 8000 maxblocks 1237257.0 KBps (30.0 s, 1 samples)
8 copy - File Write 4096 bufsize 8000 maxblocks 1032658.0 KB...
2016 Oct 19
10
[PATCH v4 0/5] implement vcpu preempted check
...in_on_owner.
These spin_on_onwer variant also cause rcu stall before we apply this patch set
We also have observed some performace improvements.
PPC test result:
1 copy - 0.94%
2 copy - 7.17%
4 copy - 11.9%
8 copy - 3.04%
16 copy - 15.11%
details below:
Without patch:
1 copy - File Write 4096 bufsize 8000 maxblocks 2188223.0 KBps (30.0 s, 1 samples)
2 copy - File Write 4096 bufsize 8000 maxblocks 1804433.0 KBps (30.0 s, 1 samples)
4 copy - File Write 4096 bufsize 8000 maxblocks 1237257.0 KBps (30.0 s, 1 samples)
8 copy - File Write 4096 bufsize 8000 maxblocks 1032658.0 KB...
2020 Mar 28
0
[klibc:master] dash: output: Fix clang warnings about GNU old-style field designator
...926 ]
Building with clang results in some warnings about the use of GNU
old-style field designators:
-----------------------------------------------------------------------
output.c:86:2: warning: use of GNU old-style field designator extension [-Wgnu-designator]
nextc: 0, end: 0, buf: 0, bufsize: OUTBUFSIZ, fd: 1, flags: 0
^~~~~~
.nextc =
...
-----------------------------------------------------------------------
Fix the issue bu using C99 initializers instead.
This should be safe and should not introduce any compatibility problems
as it is done already in other parts of...
2016 Oct 19
0
[PATCH v4 0/5] implement vcpu preempted check
...ly this patch set
>
> We also have observed some performace improvements.
>
> PPC test result:
>
> 1 copy - 0.94%
> 2 copy - 7.17%
> 4 copy - 11.9%
> 8 copy - 3.04%
> 16 copy - 15.11%
>
> details below:
> Without patch:
>
> 1 copy - File Write 4096 bufsize 8000 maxblocks 2188223.0 KBps (30.0 s, 1 samples)
> 2 copy - File Write 4096 bufsize 8000 maxblocks 1804433.0 KBps (30.0 s, 1 samples)
> 4 copy - File Write 4096 bufsize 8000 maxblocks 1237257.0 KBps (30.0 s, 1 samples)
> 8 copy - File Write 4096 bufsize 8000 maxblocks...
2015 Sep 21
5
segfault with readDCF on R 3.1.2 on AIX 6.1 when using install.packages
...2'
when in fact 'nbuf + 1' chars have been stored in 'buf' so far.
Quickest fix:
Index: src/main/dcf.c
===================================================================
--- src/main/dcf.c (revision 69404)
+++ src/main/dcf.c (working copy)
@@ -50,7 +50,7 @@
if(nbuf+2 >= bufsize) { // allow for terminator below
bufsize *= 2;
char *buf2 = R_alloc(bufsize, sizeof(char));
- memcpy(buf2, buf, nbuf);
+ memcpy(buf2, buf, nbuf + 1);
buf = buf2;
}
if(c != '\n'){
However a better fix would be to have 'nbuf' actually contain the nb...
2016 Oct 19
0
[PATCH v4 0/5] implement vcpu preempted check
...ly this patch set
>
> We also have observed some performace improvements.
>
> PPC test result:
>
> 1 copy - 0.94%
> 2 copy - 7.17%
> 4 copy - 11.9%
> 8 copy - 3.04%
> 16 copy - 15.11%
>
> details below:
> Without patch:
>
> 1 copy - File Write 4096 bufsize 8000 maxblocks 2188223.0 KBps (30.0 s, 1 samples)
> 2 copy - File Write 4096 bufsize 8000 maxblocks 1804433.0 KBps (30.0 s, 1 samples)
> 4 copy - File Write 4096 bufsize 8000 maxblocks 1237257.0 KBps (30.0 s, 1 samples)
> 8 copy - File Write 4096 bufsize 8000 maxblocks...
2016 Oct 28
0
[Xen-devel] [PATCH v6 00/11] implement vcpu preempted check
...gt;
> We also have observed some performace improvements in uninx benchmark tests.
>
> PPC test result:
> 1 copy - 0.94%
> 2 copy - 7.17%
> 4 copy - 11.9%
> 8 copy - 3.04%
> 16 copy - 15.11%
>
> details below:
> Without patch:
>
> 1 copy - File Write 4096 bufsize 8000 maxblocks 2188223.0 KBps (30.0 s, 1 samples)
> 2 copy - File Write 4096 bufsize 8000 maxblocks 1804433.0 KBps (30.0 s, 1 samples)
> 4 copy - File Write 4096 bufsize 8000 maxblocks 1237257.0 KBps (30.0 s, 1 samples)
> 8 copy - File Write 4096 bufsize 8000 maxblocks...
2016 Oct 28
16
[PATCH v6 00/11] implement vcpu preempted check
...on_onwer variant also cause rcu stall before we apply this patch set
We also have observed some performace improvements in uninx benchmark tests.
PPC test result:
1 copy - 0.94%
2 copy - 7.17%
4 copy - 11.9%
8 copy - 3.04%
16 copy - 15.11%
details below:
Without patch:
1 copy - File Write 4096 bufsize 8000 maxblocks 2188223.0 KBps (30.0 s, 1 samples)
2 copy - File Write 4096 bufsize 8000 maxblocks 1804433.0 KBps (30.0 s, 1 samples)
4 copy - File Write 4096 bufsize 8000 maxblocks 1237257.0 KBps (30.0 s, 1 samples)
8 copy - File Write 4096 bufsize 8000 maxblocks 1032658.0 KB...
2016 Oct 28
16
[PATCH v6 00/11] implement vcpu preempted check
...on_onwer variant also cause rcu stall before we apply this patch set
We also have observed some performace improvements in uninx benchmark tests.
PPC test result:
1 copy - 0.94%
2 copy - 7.17%
4 copy - 11.9%
8 copy - 3.04%
16 copy - 15.11%
details below:
Without patch:
1 copy - File Write 4096 bufsize 8000 maxblocks 2188223.0 KBps (30.0 s, 1 samples)
2 copy - File Write 4096 bufsize 8000 maxblocks 1804433.0 KBps (30.0 s, 1 samples)
4 copy - File Write 4096 bufsize 8000 maxblocks 1237257.0 KBps (30.0 s, 1 samples)
8 copy - File Write 4096 bufsize 8000 maxblocks 1032658.0 KB...
2012 Aug 31
0
[PATCH v3] Btrfs-progs: add options to change bufsize in logical to inode translation
Add an option ''s'' to set bufsize in logical to inode transition, then we are able
to read all the refs to the logical address.
Meanwhile, set a max value 64k for the bufsize.
Signed-off-by: Liu Bo <bo.li.liu@oracle.com>
---
v2->v3: - use 64k as the upper limit
- document command''s options
cmds-inspect....
2016 Dec 28
2
Help with httpd userdir recovery
...------
#include <pwd.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <errno.h>
#include <sys/types.h>
#include <dirent.h>
int
main(int argc, char *argv[])
{
struct passwd pwd;
struct passwd *result;
char *buf;
size_t bufsize;
int s;
if (argc != 3) {
fprintf(stderr, "Usage: %s username directory\n", argv[0]);
exit(EXIT_FAILURE);
}
bufsize = sysconf(_SC_GETPW_R_SIZE_MAX);
if (bufsize == -1) /* Value was indeterminate */
bufsize = 16384; /* Should be mo...
2020 Mar 27
2
[PATCH v2 5/5] Clean up clang warnings
...ted >>= 1;
subtype = 0;
goto dostr;
diff --git a/usr/dash/output.c b/usr/dash/output.c
index f62e7eab0b4e..bb7c6ada155d 100644
--- a/usr/dash/output.c
+++ b/usr/dash/output.c
@@ -71,27 +71,27 @@
#ifdef USE_GLIBC_STDIO
struct output output = {
- stream: 0, nextc: 0, end: 0, buf: 0, bufsize: 0, fd: 1, flags: 0
+ .stream = 0, .nextc = 0, .end = 0, .buf = 0, .bufsize = 0, .fd = 1, .flags = 0
};
struct output errout = {
- stream: 0, nextc: 0, end: 0, buf: 0, bufsize: 0, fd: 2, flags: 0
+ .stream = 0, .nextc = 0, .end = 0, .buf = 0, .bufsize = 0, .fd = 2, .flags = 0
}
#ifdef notyet
s...
2019 Jan 25
0
[klibc:update-dash] [OUTPUT] Add ifdefs around MEM_OUT handling in outmem
...Signed-off-by: Ben Hutchings <ben at decadent.org.uk>
---
usr/dash/output.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/usr/dash/output.c b/usr/dash/output.c
index 3e1ae256..4d3b4c27 100644
--- a/usr/dash/output.c
+++ b/usr/dash/output.c
@@ -154,10 +154,13 @@ buffered:
if (!bufsize) {
;
} else if (dest->buf == NULL) {
+#ifdef notyet
if (dest->fd == MEM_OUT && len > bufsize) {
bufsize = len;
}
+#endif
offset = 0;
+#ifdef notyet
goto alloc;
} else if (dest->fd == MEM_OUT) {
offset = bufsize;
@@ -169,6 +172,7 @@ buffered:
if (bufs...
2020 Mar 28
0
[klibc:update-dash] dash: [OUTPUT] Add ifdefs around MEM_OUT handling in outmem
...Signed-off-by: Ben Hutchings <ben at decadent.org.uk>
---
usr/dash/output.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/usr/dash/output.c b/usr/dash/output.c
index f9d87a6a..fb6b60ab 100644
--- a/usr/dash/output.c
+++ b/usr/dash/output.c
@@ -154,10 +154,13 @@ buffered:
if (!bufsize) {
;
} else if (dest->buf == NULL) {
+#ifdef notyet
if (dest->fd == MEM_OUT && len > bufsize) {
bufsize = len;
}
+#endif
offset = 0;
+#ifdef notyet
goto alloc;
} else if (dest->fd == MEM_OUT) {
offset = bufsize;
@@ -169,6 +172,7 @@ buffered:
if (bufs...
2004 Aug 06
0
and and in stats.log
...Dilbert
-------------- next part --------------
*** icecast-1.3.12/src/ice_string.c 2002-04-10 23:26:42.000000000 +0100
--- icecast-1.3.12.japc/src/ice_string.c 2002-10-23 16:59:10.000000000 +0100
***************
*** 475,495 ****
remains = remains % 60;
if (days > 0)
! snprintf(buf, BUFSIZE, "%lu days, %lu hours, %lu minutes", days, hours, remains);
! else if (hours > 0)
! snprintf(buf, BUFSIZE, "%lu hours, %lu minutes", hours, remains);
else
{
snprintf(buf, BUFSIZE, "%lu minutes", remains);
return buf;
}
- if (remains > 0)
-...
2004 Aug 06
0
and and in stats.log
...Dilbert
-------------- next part --------------
*** icecast-1.3.12/src/ice_string.c 2002-04-10 23:26:42.000000000 +0100
--- icecast-1.3.12.japc/src/ice_string.c 2002-10-23 16:59:10.000000000 +0100
***************
*** 475,495 ****
remains = remains % 60;
if (days > 0)
! snprintf(buf, BUFSIZE, "%lu days, %lu hours, %lu minutes", days, hours, remains);
! else if (hours > 0)
! snprintf(buf, BUFSIZE, "%lu hours, %lu minutes", hours, remains);
else
{
snprintf(buf, BUFSIZE, "%lu minutes", remains);
return buf;
}
- if (remains > 0)
-...
2016 Aug 20
0
[PATCH 1/3] virtio: Basic implementation of virtio pstore driver
...linux/kernel.h>
+#include <linux/module.h>
+#include <linux/pstore.h>
+#include <linux/virtio.h>
+#include <linux/virtio_config.h>
+#include <uapi/linux/virtio_ids.h>
+#include <uapi/linux/virtio_pstore.h>
+
+#define VIRT_PSTORE_ORDER 2
+#define VIRT_PSTORE_BUFSIZE (4096 << VIRT_PSTORE_ORDER)
+#define VIRT_PSTORE_NR_REQ 128
+
+struct virtio_pstore {
+ struct virtio_device *vdev;
+ struct virtqueue *vq[2];
+ struct pstore_info pstore;
+ struct virtio_pstore_req req[VIRT_PSTORE_NR_REQ];
+ struct virtio_pstore_res res[VIRT_PSTORE_NR_REQ];
+ unsigned in...
2016 Aug 31
0
[PATCH 1/3] virtio: Basic implementation of virtio pstore driver
...linux/kernel.h>
+#include <linux/module.h>
+#include <linux/pstore.h>
+#include <linux/virtio.h>
+#include <linux/virtio_config.h>
+#include <uapi/linux/virtio_ids.h>
+#include <uapi/linux/virtio_pstore.h>
+
+#define VIRT_PSTORE_ORDER 2
+#define VIRT_PSTORE_BUFSIZE (4096 << VIRT_PSTORE_ORDER)
+#define VIRT_PSTORE_NR_REQ 128
+
+struct virtio_pstore {
+ struct virtio_device *vdev;
+ struct virtqueue *vq[2];
+ struct pstore_info pstore;
+ struct virtio_pstore_req req[VIRT_PSTORE_NR_REQ];
+ struct virtio_pstore_res res[VIRT_PSTORE_NR_REQ];
+ unsigned in...
2015 Sep 21
0
segfault with readDCF on R 3.1.2 on AIX 6.1 when using install.packages
...have been stored in 'buf' so far.
>
> Quickest fix:
>
> Index: src/main/dcf.c
> ===================================================================
> --- src/main/dcf.c (revision 69404)
> +++ src/main/dcf.c (working copy)
> @@ -50,7 +50,7 @@
> if(nbuf+2 >= bufsize) { // allow for terminator below
> bufsize *= 2;
> char *buf2 = R_alloc(bufsize, sizeof(char));
> - memcpy(buf2, buf, nbuf);
> + memcpy(buf2, buf, nbuf + 1);
> buf = buf2;
> }
> if(c != '\n'){
>
> However a better fix would be t...
2007 Aug 13
8
disk performance about half in domU? + question about XenSource
Based on some tests we ran, it seems the biggest performance
hit you get from running within domU is from disk I/O. We
did some mysql read and write tests, and for both, our
performance is about half that compared to native. Has that
been others'' experience?
Is there any way to make this better? We are using physical
partitions. In contrast, cpu/memory tests appear to be near