baidu / baidu/bfs

fuse interface is not friendly to Nameserver

Open
#269 2 comments 0 reactions 0 assignees View on GitHub
2pt bug optimization
Dominant language
C++
Stars
2.8k
Forks
551
PR merge metrics
No merged PRs in 30d

Description

比如`ls fuse_mount_point/stat_table/tablet00000001/`这个操作,会将整个链路中的`stat_table`, `tablet00000001`目录都stat一遍,还会将`tablet00000001`下非目录的文件做一个GetFileLocation,估计是做缓存什么的了,比如本地文件系统里会缓存一些dentry和inode,fuse估计也是走的这个逻辑
然而这大大的增加了NameServer的压力,而且有些东西我们是不需要的

Contributor guide

No contributing guide indexed for this repository

Research direction

No files, tests, or entry points are named. Start by reproducing the `ls fuse_mount_point/stat_table/tablet00000001/` operation and tracing the FUSE requests sent through the chain. Done should mean that unnecessary directory stats and non-directory `GetFileLocation` requests no longer place avoidable pressure on the NameServer.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
distributed-systems, operating-systems
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.