Package: slurm-llnl / 18.08.5.2-1

sacctmgr-increase-buffer Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
Description: Increase size of sacctmgr read buffer
 This patch significantly increases the size of the buffer for reading dumps
 with sacctmgr load. Without this patch, sacctmgr is not able to handle lines
 with more than 4096 which is too small in some cases. Also removed useless
 macro definition in other related file.
Author: RĂ©mi Palancher <remi@rezib.org>
Forwarded: http://thread.gmane.org/gmane.comp.distributed.slurm.devel/5483
Last-Update: 2014-09-15

--- a/src/sacctmgr/sacctmgr.c
+++ b/src/sacctmgr/sacctmgr.c
@@ -46,8 +46,6 @@
 #include "src/common/proc_args.h"
 #include "src/common/strlcpy.h"
 
-#define BUFFER_SIZE 4096
-
 char *command_name;
 int exit_code;		/* sacctmgr's exit code, =1 on any error at any time */
 int exit_flag;		/* program to terminate if =1 */
--- a/src/sacctmgr/sacctmgr.h
+++ b/src/sacctmgr/sacctmgr.h
@@ -67,7 +67,7 @@
 
 #define CKPT_WAIT	10
 #define	MAX_INPUT_FIELDS 128
-#define BUFFER_SIZE 4096
+#define BUFFER_SIZE 524288
 #define FORMAT_STRING_SIZE 34
 
 typedef enum {