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

support for numa aware global mempools on linux #80

Open
wants to merge 26 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
9f9028a
implement make_dev_credf() as in FreeBSD
Jan 6, 2015
32e06f9
set the mode to 0600 so only root can access netmap devices
Jan 26, 2015
e895d35
Merge branch 'master' into google-next
giuseppelettieri Feb 25, 2015
1836900
Merge branch 'github-next' into github-master
giuseppelettieri Jun 29, 2015
a14a35b
Merge branch 'master' into github-master
giuseppelettieri Jun 29, 2015
4010c04
Merge branch 'master' into github-master
giuseppelettieri Aug 6, 2015
ef5e12a
Merge branch 'master' into github-master
giuseppelettieri Aug 6, 2015
bde16a5
Merge commit '2db16e50fc7a919f2c3f8cb6ca65a95ad6b1d762' into github-m…
giuseppelettieri Aug 7, 2015
0c58d85
Merge branch 'master' into github-master
giuseppelettieri Aug 14, 2015
031f050
comment on the use of contigmalloc (merge candidate)
Aug 6, 2015
9b08ab0
whitespace fix and removal of unused functions
Aug 6, 2015
28a00d9
report windows availability
Aug 15, 2015
75955a7
revise documentation
Aug 15, 2015
aee6fad
update documentation
Aug 14, 2015
e7cab14
remove stale code, clean up formatting
Aug 15, 2015
2011b3b
small tweaks to the text
Aug 15, 2015
b2ee383
we need the contigmalloc'ed memory to be zeroed
Aug 16, 2015
d4bf89c
actually catch packets from the host stack
Aug 16, 2015
acb9f2a
Merge branch 'master' into github-master
giuseppelettieri Aug 19, 2015
5b07480
remove stale comment
Aug 25, 2015
82747fa
use accessor (with provision for multiple mempools) to get allocator
mazsi-at-wigner Aug 12, 2015
af3724e
initial support for multiple global memory pools
mazsi-at-wigner Aug 19, 2015
042b9f8
pass request details to netmap_get_hw_na(), too
mazsi-at-wigner Aug 19, 2015
ec705a7
use nr_arg2 from ioctl's argument to select a memory pool
mazsi-at-wigner Aug 26, 2015
5845acf
map global memory pool to numa node (1:1)
mazsi-at-wigner Aug 25, 2015
cc6ec5b
make contigmalloc() numa aware (with ugly abuse of preprocessor macros)
mazsi-at-wigner Aug 25, 2015
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion LINUX/bsd_glue.h
Original file line number Diff line number Diff line change
Expand Up @@ -325,10 +325,15 @@ static inline int ilog2(uint64_t n)
}
#endif /* ilog2 */

/*
* TODO: ugly hack: abuse that contigmalloc() is only called from
* netmap_finalize_obj_allocator(), and numanode exists in that
* context.
*/
#define contigmalloc(sz, ty, flags, a, b, pgsz, c) ({ \
unsigned int order_ = \
ilog2(roundup_pow_of_two(sz)/PAGE_SIZE); \
struct page *p_ = alloc_pages(GFP_ATOMIC | __GFP_ZERO, \
struct page *p_ = alloc_pages_node(numanode, GFP_ATOMIC | __GFP_ZERO, \
order_); \
if (p_ != NULL) \
split_page(p_, order_); \
Expand Down
Loading