About performance tuning of jsnbd openbmc
xiuzhi
1450335857 at qq.com
Thu May 30 20:10:51 AEST 2019
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";<jk at ozlabs.org>;
Send time: Thursday, May 30, 2019 4:43 PM
To: "xiuzhi"<1450335857 at qq.com>;
Cc: "openbmc"<openbmc at lists.ozlabs.org>;
Subject: Re: About performance tuning of jsnbd openbmc
Hi Xiuzhi,
[CCing the openbmc list, as this is relevant]
> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ozlabs.org/pipermail/openbmc/attachments/20190530/7579c1d5/attachment-0001.htm>
More information about the openbmc
mailing list