Skip to contentSkip to conversation

About performance tuning of jsnbd openbmc

DISCUSSION Jeremy Kerr 2 participants 2 messages May 30, 2019 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

Hi Xiuzhi,

[CCing the openbmc list, as this is relevant]

Quoted 10 lines

Hi Jeremy,
I am trying to install Centos7.iso image by openbmc nbd-server.
The performance is too slow to install the OS image . The speed is no more than 40KBytes/s. My network speed is 1000Mbps.
The speed is up to 512KBytes/s when the openbmc nbd-client connect
to the nbd-server of nbd3.19 which running on my ubuntu 16.04 PC.
What factors affect the transmission speed?
How can I improve the speed of nbdserver?
The attachments is patch to webui and phosphor-handler and
nginx.conf(I user nginx as the webserver instead of the bmcweb)

I see your client-side javascript includes this:

+ server.onlog = function(msg) {
+ $scope.nbdslog += msg + "\n";
+ }

- I've found that the logging like that (appending to an increasingly- large string) can cause fairly large slowdowns.

Could you try removing this and see if that improves the speed?

Cheers,

Jeremy

#2 lore raw

Hi Jeremy,
Thank you very much for your the suggestions to the VM JS code.
There was no improvement in nbd-client performance after I remove the logging JS code snippets. The speed keeps about 33KBytes/s to 36KBytes/s .
What configurations in the system or nginx may affect the performance of nbd websocket In addition to web JS nbd server/client? Would you like to give me some debugging instructions?
Best,
Xiuzhi
------------------ Original ------------------
From: "jk";<[email protected]>;
Send time: Thursday, May 30, 2019 4:43 PM
To: "xiuzhi"<[email protected]>;
Cc: "openbmc"<[email protected]>;
Subject: Re: About performance tuning of jsnbd openbmc

Hi Xiuzhi,

[CCing the openbmc list, as this is relevant]

Quoted 10 lines

Hi Jeremy,
I am trying to install Centos7.iso image by openbmc nbd-server.
The performance is too slow to install the OS image . The speed is no more than 40KBytes/s. My network speed is 1000Mbps.
The speed is up to 512KBytes/s when the openbmc nbd-client connect
to the nbd-server of nbd3.19 which running on my ubuntu 16.04 PC.
What factors affect the transmission speed?
How can I improve the speed of nbdserver?
The attachments is patch to webui and phosphor-handler and
nginx.conf(I user nginx as the webserver instead of the bmcweb)

I see your client-side javascript includes this:

+ server.onlog = function(msg) {
+ $scope.nbdslog += msg + "\n";
+ }

- I've found that the logging like that (appending to an increasingly- large string) can cause fairly large slowdowns.

Could you try removing this and see if that improves the speed?

Cheers,

Jeremy