Alexey Serbin has posted comments on this change. ( http://gerrit.cloudera.org:8080/15828 )
Change subject: [master-test] added GetTableSchema() microbenchmarks ...................................................................... Patch Set 6: (1 comment) http://gerrit.cloudera.org:8080/#/c/15828/6//COMMIT_MSG Commit Message: http://gerrit.cloudera.org:8080/#/c/15828/6//COMMIT_MSG@14 PS6, Line 14: GetTableSchema RPC: 45645 req/sec (authz disabled) : GetTableSchema RPC: 43675.2 req/sec (authz enabled) : GetTableSchema function: 1245196.8 req/sec (authz disabled) : GetTableSchema function: 62765.6 req/sec (authz enabled) : > Given the pretty huge disparity between RPC and direct function call, does I guess so. While serving PRCs, a lot of extra work is done to serialize the request, send it over the network (in case of loopback interfaces that's only about copying from userspace to kernel space and then back), handle the request to the servicing thread, de-serialize the request and then serialize the response, sending it back over the network, receive the data, and de-serialize the resonse at the client side. All these add context switching, so the end results doesn't show the order of magnitude difference after all. -- To view, visit http://gerrit.cloudera.org:8080/15828 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-Project: kudu Gerrit-Branch: master Gerrit-MessageType: comment Gerrit-Change-Id: Ic1f3d4fe1df426d50bd465c8ca7bbfb6924bffe9 Gerrit-Change-Number: 15828 Gerrit-PatchSet: 6 Gerrit-Owner: Alexey Serbin <[email protected]> Gerrit-Reviewer: Alexey Serbin <[email protected]> Gerrit-Reviewer: Andrew Wong <[email protected]> Gerrit-Reviewer: Grant Henke <[email protected]> Gerrit-Reviewer: Kudu Jenkins (120) Gerrit-Reviewer: Todd Lipcon <[email protected]> Gerrit-Comment-Date: Thu, 07 May 2020 15:08:11 +0000 Gerrit-HasComments: Yes
