Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Summary on issues about PIT-CS #42

Closed
3 tasks
zjkmxy opened this issue May 16, 2022 · 2 comments
Closed
3 tasks

Summary on issues about PIT-CS #42

zjkmxy opened this issue May 16, 2022 · 2 comments
Assignees
Labels
fw YaNFD issues

Comments

@zjkmxy
Copy link
Member

zjkmxy commented May 16, 2022

Updated

  • Performance is 25-50% worse after putting expiration in the same thread. Maybe the map deletion is slow.
    • Possible bottleneck:
      delete(curNode.parent.children, curNode.component.Hash())
    • Should consider pooling it if associated with memory free.
    • And can we get rid of the recursive tree structure?
  • PIT tokens are not shown to be used in any tests. Should be fixed now but need verify. Check if any packet going from YaNFD to NFD carrying that token.
  • pitTokenMap seems to be wrong:
    pitTokenMap map[uint32]*nameTreePitEntry
    • Should be pooled (such as a free list), and the pitToken should be the pool index.

Background:

#38 #40

Old Version

@pulsejet
Copy link
Collaborator

csMap does not look good. It assumes the hashes have no conflict.

Just a note as I was reading this - hash conflicts for cache should not be an issue. If the old packet gets dropped.. that's still okay

@pulsejet pulsejet added the bug Something isn't working label Dec 16, 2024
@pulsejet pulsejet added fw YaNFD issues and removed bug Something isn't working labels Dec 24, 2024
@pulsejet
Copy link
Collaborator

pulsejet commented Feb 4, 2025

Fixed on main. Turns out it's not the delete that is slow but the gc effects of doing it.

@pulsejet pulsejet closed this as completed Feb 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fw YaNFD issues
Projects
None yet
Development

No branches or pull requests

2 participants