Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions include/os/windows/spl/sys/sysmacros.h
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,9 @@ extern unsigned int num_ecores;
* swap priority is at 92. Most ZFS priorities should probably
* stay below this, but kmem_reap needs to be higher.
*/
#define minclsyspri 81 /* BASEPRI_KERNEL */
#define defclsyspri 81 /* BASEPRI_KERNEL */
#define maxclsyspri 89
#define minclsyspri 8 /* BASEPRI_KERNEL */
#define defclsyspri 8 /* BASEPRI_KERNEL */
#define maxclsyspri 12

#define NICE_TO_PRIO(nice) (MAX_RT_PRIO + (nice) + 20)
#define PRIO_TO_NICE(prio) ((prio) - MAX_RT_PRIO - 20)
Expand Down
6 changes: 6 additions & 0 deletions include/os/windows/zfs/sys/kstat_windows.h
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ typedef struct windows_kstat {
kstat_named_t spa_mode_global;
kstat_named_t zfs_flags;
kstat_named_t zfs_txg_timeout;
kstat_named_t zfs_adc_enable;
kstat_named_t zfs_vdev_cache_max;
kstat_named_t zfs_vdev_cache_size;
kstat_named_t zfs_vdev_cache_bshift;
Expand Down Expand Up @@ -150,6 +151,8 @@ typedef struct windows_kstat {
kstat_named_t zfs_removal_suspend_progress;
kstat_named_t cpu_avx_supported;
kstat_named_t zvol_io_threads;
kstat_named_t zfs_prealloc_percent;
kstat_named_t zfs_adc_target_sync_pct;
} windows_kstat_t;


Expand Down Expand Up @@ -261,12 +264,15 @@ extern int zfs_autoimport_disable;
extern int zfs_removal_suspend_progress;
extern int cpu_avx_supported;
extern int zvol_threads;
extern int zfs_prealloc_percent;
extern uint_t zfs_adc_target_sync_pct;

int kstat_windows_init(void *);
void kstat_windows_fini(void);

int arc_kstat_update(kstat_t *ksp, int rw);
int arc_kstat_update_windows(kstat_t *ksp, int rw);
int spl_kstat_registry(void *pRegistryPath, kstat_t *ksp);
int dynamic_dirty_data_kstat_update(kstat_t* ksp, int rw);

#endif
1 change: 1 addition & 0 deletions include/sys/arc.h
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ typedef void arc_prune_func_t(int64_t bytes, void *priv);

/* Shared module parameters */
extern int zfs_arc_average_blocksize;
extern uint64_t dirty_ceil_bytes;

/* generic arc_done_func_t's which you can use */
arc_read_done_func_t arc_bcopy_func;
Expand Down
10 changes: 9 additions & 1 deletion include/sys/txg.h
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,15 @@ extern void *txg_list_next(txg_list_t *tl, void *p, uint64_t txg);

/* Global tuning */
extern int zfs_txg_timeout;

extern int zfs_adc_enable;
extern uint_t zfs_adc_target_sync_pct;

typedef struct dynamic_dirty_data_stats {
kstat_named_t adc_target;
kstat_named_t spa_sync_time;
kstat_named_t data_flushed_per_sync;
kstat_named_t total_dirty_data;
} dynamic_dirty_data_stats_t;

#ifdef ZFS_DEBUG
#define TXG_VERIFY(spa, txg) txg_verify(spa, txg)
Expand Down
Loading
Loading