test: modify coredump maximums to 5G
Having unlimited size core dumps is not a good idea on a lot of machines. Modify it to 5GB. Change-Id: I1d52bfa9f2450e2d8f824c3b86aa2ad5fe4579c3 Signed-off-by: Seth Howell <seth.howell@intel.com> Reviewed-on: https://review.gerrithub.io/436412 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Karol Latecki <karol.latecki@intel.com> Reviewed-by: Changpeng Liu <changpeng.liu@intel.com> Chandler-Test-Pool: SPDK Automated Test System <sys_sgsw@intel.com>
This commit is contained in:
parent
be4fbb2141
commit
1500792f52
@ -53,6 +53,7 @@
|
|||||||
#define SPDK_APP_DPDK_DEFAULT_MASTER_CORE -1
|
#define SPDK_APP_DPDK_DEFAULT_MASTER_CORE -1
|
||||||
#define SPDK_APP_DPDK_DEFAULT_MEM_CHANNEL -1
|
#define SPDK_APP_DPDK_DEFAULT_MEM_CHANNEL -1
|
||||||
#define SPDK_APP_DPDK_DEFAULT_CORE_MASK "0x1"
|
#define SPDK_APP_DPDK_DEFAULT_CORE_MASK "0x1"
|
||||||
|
#define SPDK_APP_DEFAULT_CORE_LIMIT 0x140000000 /* 5 GiB */
|
||||||
|
|
||||||
struct spdk_app {
|
struct spdk_app {
|
||||||
struct spdk_conf *config;
|
struct spdk_conf *config;
|
||||||
@ -584,7 +585,7 @@ spdk_app_start(struct spdk_app_opts *opts, spdk_event_fn start_fn,
|
|||||||
if (opts->enable_coredump) {
|
if (opts->enable_coredump) {
|
||||||
struct rlimit core_limits;
|
struct rlimit core_limits;
|
||||||
|
|
||||||
core_limits.rlim_cur = core_limits.rlim_max = RLIM_INFINITY;
|
core_limits.rlim_cur = core_limits.rlim_max = SPDK_APP_DEFAULT_CORE_LIMIT;
|
||||||
setrlimit(RLIMIT_CORE, &core_limits);
|
setrlimit(RLIMIT_CORE, &core_limits);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
@ -11,7 +11,6 @@ set -e
|
|||||||
export ASAN_OPTIONS=new_delete_type_mismatch=0
|
export ASAN_OPTIONS=new_delete_type_mismatch=0
|
||||||
|
|
||||||
PS4=' \t \$ '
|
PS4=' \t \$ '
|
||||||
ulimit -c unlimited
|
|
||||||
|
|
||||||
: ${RUN_NIGHTLY:=0}
|
: ${RUN_NIGHTLY:=0}
|
||||||
export RUN_NIGHTLY
|
export RUN_NIGHTLY
|
||||||
|
Loading…
Reference in New Issue
Block a user