Increase maximum supported number of ranges per TRIM command from 256 to 512
to use full potential of Intel X25-M SSDs. On synthetic test with 32K ranges it gives about 20% speedup, which probably costs more then 2K of RAM.
This commit is contained in:
parent
38c64884ff
commit
1524677adf
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=222643
@ -114,9 +114,9 @@ struct disk_params {
|
||||
u_int64_t sectors; /* Total number sectors */
|
||||
};
|
||||
|
||||
#define TRIM_MAX_BLOCKS 4
|
||||
#define TRIM_MAX_BLOCKS 8
|
||||
#define TRIM_MAX_RANGES (TRIM_MAX_BLOCKS * 64)
|
||||
#define TRIM_MAX_BIOS (TRIM_MAX_RANGES * 8)
|
||||
#define TRIM_MAX_BIOS (TRIM_MAX_RANGES * 4)
|
||||
struct trim_request {
|
||||
uint8_t data[TRIM_MAX_RANGES * 8];
|
||||
struct bio *bps[TRIM_MAX_BIOS];
|
||||
|
Loading…
Reference in New Issue
Block a user