Skip to content

Commit

Permalink
ceph: optimize memory usage
Browse files Browse the repository at this point in the history
In current code, regular file and directory use same struct
ceph_file_info to store fs specific data so the struct has to
include some fields which are only used for directory
(e.g., readdir related info), when having plenty of regular files,
it will lead to memory waste.

This patch introduces dedicated ceph_dir_file_info cache for
readdir related thins. So that regular file does not include those
unused fields anymore.

Signed-off-by: Chengguang Xu <cgxu519@gmx.com>
Reviewed-by: "Yan, Zheng" <zyan@redhat.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
  • Loading branch information
Chengguang Xu authored and Ilya Dryomov committed Apr 2, 2018
1 parent 47474d0 commit bb48bd4
Show file tree
Hide file tree
Showing 5 changed files with 169 additions and 117 deletions.
Loading

0 comments on commit bb48bd4

Please sign in to comment.