Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
kernel/fs: Use an object_cache for the file_descriptor structs.
file_descriptor structs were (following the original packagefs changes) the 4th most allocated item during the boot, with 11903 instances. These are of course all rather ephemeral, as after the boot finished there were only 70-some-odd remaining (which is surprisingly low, I though.) During heavy system use, this will of course get hit much more often. So making them object_cached for both performance and memory reasons makes a lot of sense.
- Loading branch information
1 parent
1f39d6d
commit 62f06d8
Showing
2 changed files
with
14 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters