path: root/sys/compat/linuxkpi/common/include/linux/sched.h
diff options
authorAlan Cox <alc@FreeBSD.org>2017-06-18 18:23:39 +0000
committerAlan Cox <alc@FreeBSD.org>2017-06-18 18:23:39 +0000
commitd4e3484bd9166cab99605f864d8c3b102c754953 (patch)
tree4524bcb9dcf19c8df5d6f1182323727db9636ba3 /sys/compat/linuxkpi/common/include/linux/sched.h
parentfc0dd0d307816b52bfb4fa8ea24d63ec0752a30b (diff)
Change blist_alloc()'s allocation policy from first-fit to next-fit so
that disk writes are more likely to be sequential. This change is beneficial on both the solid state and mechanical disks that I've tested. (A similar change in allocation policy was made by DragonFly BSD in 2013 to speed up Poudriere with "stressful memory parameters".) Increase the width of blst_meta_alloc()'s parameter "skip" and the local variables whose values are derived from it to 64 bits. (This matches the width of the field "skip" that is stored in the structure "blist" and passed to blst_meta_alloc().) Eliminate a pointless check for a NULL blist_t. Simplify blst_meta_alloc()'s handling of the ALL-FREE case. Address nearby style errors. Reviewed by: kib, markj MFC after: 5 weeks Differential Revision: https://reviews.freebsd.org/D11247
Notes: svn path=/head/; revision=320077
Diffstat (limited to 'sys/compat/linuxkpi/common/include/linux/sched.h')
0 files changed, 0 insertions, 0 deletions