File: sacctmgr-increase-buffer

package info (click to toggle)
slurm-wlm 24.11.5-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 51,508 kB
  • sloc: ansic: 529,598; exp: 64,795; python: 17,051; sh: 10,365; javascript: 6,528; makefile: 4,116; perl: 3,762; pascal: 131
file content (20 lines) | stat: -rw-r--r-- 723 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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: 2019-09-06

--- a/src/sacctmgr/file_functions.c
+++ b/src/sacctmgr/file_functions.c
@@ -42,7 +42,7 @@
 #include "src/common/strlcpy.h"
 #include "src/common/uid.h"
 
-#define BUFFER_SIZE 4096
+#define BUFFER_SIZE 524288
 
 typedef struct {
 	slurmdb_admin_level_t admin;