- Use tree to lookup by socket kvaddr. The size of hash is too big for a small virtual machine and at the same time too little for a large production server. A tree would better fit here.
- Provide a second tree to lookup by pcb kvaddr. These removes full hash traversal when printing every unix(4) socket.
Details
Details
- Reviewers
tuexen - Group Reviewers
network - Commits
- rGa83d596f434f: sockstat(1): use tree(3) rbtree instead of hash
Diff Detail
Diff Detail
- Repository
- rS FreeBSD src repository - subversion
- Lint
Lint Passed - Unit
No Test Coverage - Build Status
Buildable 46299 Build 43188: arc lint + arc unit