Skip to content

Contended CAS on every buffer allocation #13

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

Closed
ghost opened this issue May 12, 2016 · 2 comments
Closed

Contended CAS on every buffer allocation #13

ghost opened this issue May 12, 2016 · 2 comments

Comments

@ghost
Copy link

ghost commented May 12, 2016

  • Originally, pre open-sourcing, the code used folly::Singleton::try_get, which is not available in the latest stable version of folly and incurs a contended CAS on every buffer allocation.
  • This have been replaced with folly::Singleton::get to fix build, but that change broke tests (why?) when compiling with CMake.
  • Once replaced back with get_weak().lock(), we again have a contended CAS on buffer allocation path. * For this reason, I'd vote to get rid of Singleton hack and inject a Singleton instance into frame serialisers.
@ghost
Copy link
Author

ghost commented May 12, 2016

Actually, it's not that. FrameBufferAllocationTest is broken, as it leaves Singleton in invalid state. The next test that uses allocator (RequestChannel) crashes... That wasn't very obvious...

@ghost
Copy link
Author

ghost commented May 12, 2016

Closing this, as I will leave ::get usage.

@ghost ghost closed this as completed May 12, 2016
facebook-github-bot pushed a commit that referenced this issue Feb 13, 2020
)

Summary:
Take the README.md from
https://github.com/facebookexperimental/mononoke/blob/7ead0e29e41aec0771531a4650b6170bc1ff6566/README.md
and apply it on Eden repo.

Re-add the Cargo.toml file that declares Cargo workspace.

Re-add fbcode_builder/getdeps manifest for Mononoke
Pull Request resolved: facebook/sapling#13

Test Plan:
./build/fbcode_builder/getdeps.py build mononoke
  ./build/fbcode_builder/getdeps.py test mononoke

Reviewed By: ahornby

Differential Revision: D19833059

Pulled By: lukaspiatkowski

fbshipit-source-id: fb37e13306c0b9969a7c4e52b05e1a66a577022f
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants