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

Performance improvements #173

Merged
merged 4 commits into from
May 20, 2014
Merged

Conversation

ghost
Copy link

@ghost ghost commented May 19, 2014

This pull requests adds two performance optimizations:

  • in virtio when mapping guest addresses avoid using ipairs as it hurts the runtime performance with LuaJIT
  • in memory, use a simple table to cache the already translated physical pages

NFV design is migrated to use a shell script instead of a lua file.

Nikolay Nikolaev added 4 commits May 9, 2014 13:39
Signed-off-by: Nikolay Nikolaev <n.nikolaev@virtualopensystems.com>
When mapping addresses from the guest, do not use ipairs.
They seem to be slow, as is said in this link:
http://lua-users.org/lists/lua-l/2011-05/msg00007.html

Signed-off-by: Nikolay Nikolaev <n.nikolaev@virtualopensystems.com>
For better performance cache the results of virtual to physical page
address translation and reuse them later. This saves system calls later.

Signed-off-by: Nikolay Nikolaev <n.nikolaev@virtualopensystems.com>
Signed-off-by: Nikolay Nikolaev <n.nikolaev@virtualopensystems.com>
lukego added a commit that referenced this pull request May 20, 2014
@lukego lukego merged commit b110f87 into snabbco:master May 20, 2014
dpino added a commit to dpino/snabb that referenced this pull request Dec 15, 2015
Reduce 'snabb-lwaftr check' running time
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

Successfully merging this pull request may close these issues.

None yet

1 participant