Print this page
9709 Remove support for BZIP2 from dump
Reviewed by: Sanjay Nadkarni <sanjay.nadkarni@nexenta.com>
Reviewed by: Yuri Pankov <yuri.pankov@nexenta.com>
*** 18,27 ****
--- 18,28 ----
*
* CDDL HEADER END
*/
/*
* Copyright (c) 1998, 2010, Oracle and/or its affiliates. All rights reserved.
+ * Copyright 2018 Nexenta Systems, Inc. All rights reserved.
* Copyright (c) 2016 by Delphix. All rights reserved.
*/
#ifndef _SYS_DUMPHDR_H
#define _SYS_DUMPHDR_H
*** 162,173 ****
} dumpdatahdr_t;
#define DUMP_DATAHDR_MAGIC ('d' << 24 | 'h' << 16 | 'd' << 8 | 'r')
#define DUMP_DATAHDR_VERSION 1
#define DUMP_CLEVEL_LZJB 1 /* parallel lzjb compression */
- #define DUMP_CLEVEL_BZIP2 2 /* parallel bzip2 level 1 */
#ifdef _KERNEL
extern kmutex_t dump_lock;
extern struct vnode *dumpvp;
--- 163,174 ----
} dumpdatahdr_t;
#define DUMP_DATAHDR_MAGIC ('d' << 24 | 'h' << 16 | 'd' << 8 | 'r')
#define DUMP_DATAHDR_VERSION 1
+ #define DUMP_CLEVEL_SERIAL 0 /* single-threaded lzjb compression */
#define DUMP_CLEVEL_LZJB 1 /* parallel lzjb compression */
#ifdef _KERNEL
extern kmutex_t dump_lock;
extern struct vnode *dumpvp;
*** 197,225 ****
extern int dump_plat_data(void *);
extern int dump_set_uuid(const char *);
extern const char *dump_get_uuid(void);
/*
- * Define a CPU count threshold that determines when to employ
- * bzip2. This value is defined per-platform.
- */
- extern uint_t dump_plat_mincpu_default;
-
- #define DUMP_PLAT_SUN4U_MINCPU 0
- #define DUMP_PLAT_SUN4U_OPL_MINCPU 0
- #define DUMP_PLAT_SUN4V_MINCPU 0
- #define DUMP_PLAT_X86_64_MINCPU 0
- #define DUMP_PLAT_X86_32_MINCPU 0
-
- /*
- * Override the per-platform default by setting this variable with
- * /etc/system. The value 0 disables parallelism, and the old format
- * dump is produced.
- */
- extern uint_t dump_plat_mincpu;
-
- /*
* Pages may be stolen at dump time. Prevent the pages from ever being
* allocated while dump is running.
*/
#define IS_DUMP_PAGE(pp) (dump_check_used && dump_test_used((pp)->p_pagenum))
--- 198,207 ----