| 7d54f308 | 09-May-2017 |
Sascha Wildner <saw@online.de> |
kernel/apple_gmux: Fix compilation when VGA_SWITCHEROO is in the config.
We would get a redefinition warning/error, because opt_drm.h has VGA_SWITCHEROO defined to 1 in this case, which is not the s
kernel/apple_gmux: Fix compilation when VGA_SWITCHEROO is in the config.
We would get a redefinition warning/error, because opt_drm.h has VGA_SWITCHEROO defined to 1 in this case, which is not the same as merely defining it. To be on the safe side, define to 1 here, too, and also add an #ifndef and a comment.
Discussed-with: Peeter Must <karu.pruun@gmail.com>
show more ...
|
| fd74079f | 16-Oct-2016 |
Matthew Dillon <dillon@apollo.backplane.com> |
kernel - Reduce excessive inode hash table allocations
* Reduce excessive inode hash table allocations in various filesystems (primarily ufs). Introduce vfs_inodehashsize() to calculate a reasona
kernel - Reduce excessive inode hash table allocations
* Reduce excessive inode hash table allocations in various filesystems (primarily ufs). Introduce vfs_inodehashsize() to calculate a reasonable hash table size instead of using 'maxvnodes'.
* The new formula is to generally use maxvnodes / 2 (2 x stacking for the chained hash table). When maxvnodes is large we use maxvnodes / 4, and if maxvnodes is very large (> 1M vnodes) we use maxvnodes / 8. This significantly reduces the amount of kernel memory used when mounting ufs, ext2fs, hpfs, isofs, msdosfs, nfs, ntfs, and smbfs filesystems.
show more ...
|