-
Notifications
You must be signed in to change notification settings - Fork 124
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
failed to run ofp with nginx #242
Comments
Simple solved by change the call --- a/src/event/modules/ngx_ofp_module.c
+++ b/src/event/modules/ngx_ofp_module.c
@@ -178,7 +178,7 @@ int my_webserver(int if_count, char **if_name)
exit(EXIT_FAILURE);
}
- core_count = odp_cpu_count();
+ core_count = 1;
num_workers = core_count;
if (params.core_count)
@@ -211,7 +211,7 @@ int my_webserver(int if_count, char **if_name)
if (num_queues_str) pktin_param.num_queues = atoi(num_queues_str);
odp_pktout_queue_param_init(&pktout_param);
- pktout_param.num_queues = odp_cpu_count();
+ pktout_param.num_queues = 1;
pktout_param.op_mode = ODP_PKTIO_OP_MT_UNSAFE;
for (i = 0; i < params.if_count; i++) { |
Reopen this. I tried wrk from other host in the same subnet and got
Then I tried wrk from the host which runs nginx itself and got
Here's my nginx.conf, both of the original and the ofp one use the same configure
Thanks in advance for your kindly advise |
Hi HsuJv, Maybe I can help you with the 'netwrap' thing... Take a look at https://github.com/OpenFastPath/ofp/blob/master/example/README (the netwrap section).
Next, take a look at script itself (https://github.com/OpenFastPath/ofp/blob/master/scripts/ofp_netwrap.sh): it uses by default 'eth1' and 'ofp_netwrap.cli' configuration file (192.168.100.1). You may need to adapte it to your needs (your interface, etc) |
Hi bogdanPricope, Thanks for your help. But the netwrap thing is not the thing I'm concerned now, I finally made it work with nginx_ofp successfully as said in my comment 2. And now I'm concerned about the performance issue as said in my comment 3. That's why I reopen this issue after closing it once. Regards. |
Hi, bogdanPricope , I also care about the performance test between nginx and ofp-nginx unber same hardware config. Do we have official performance test about ofp-nginx? Thanks |
Sorry .. I cannot help you with ofp-nginx. |
Never mind, I'll leave this issue open to wait someone help. Anyway thanks for your kindly help. |
Hi there,
I'm trying to run nginx with ofp to have a basic performance test
wrk -c4000 -d120s -t12 --latency "http://myserver//"
my playing is:
I find that there is a feature netwrap to do this with the original Nginx #225 ,
but failed to run it.
I also tried to set the Nginx to
daemon off; master_process off;
, failed either with the same stack.Then I'm going to another project nginx_ofp. Again failed to run it.
I set the nginx.conf to run only on a single core
worker_processes 1;
, but it seems the Nginx setup with CPU mask 0xc. That will not work since I'm having a network probe with E1000.Then I turned to Vmxnet3 but got this
Also failed on the multi-queue.
Kindly advise how to run it, please.
P.S.
I actually not matter how to run nginx with ofp on multi-cores. The thing I want is to make the configure
worker_processes 1;
works since my benchmarks are all on a single core.P.S.2
Also, I succeeded to run the webserver with the help of #241 but it was too slow to compare with original nginx. So I have to figure out how to run nginx with ofp.
The text was updated successfully, but these errors were encountered: