RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1546194 - RHEL7 curl performs poorly versus upstream
Summary: RHEL7 curl performs poorly versus upstream
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: nss-softokn
Version: 7.4
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: rc
: ---
Assignee: nss-nspr-maint
QA Contact: BaseOS QE Security Team
URL:
Whiteboard:
Depends On:
Blocks: 1477664
TreeView+ depends on / blocked
 
Reported: 2018-02-16 14:51 UTC by Matt Mezynski
Modified: 2023-09-15 00:06 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-03-07 10:46:15 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
server sosreport (12.37 MB, application/x-xz)
2018-02-16 14:51 UTC, Matt Mezynski
no flags Details
curl output showing nss involvement (661.28 KB, text/plain)
2018-02-16 14:51 UTC, Matt Mezynski
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1044666 0 medium CLOSED Can curl HTTPS requests make fewer access system calls? 2021-02-22 00:41:40 UTC

Internal Links: 1044666

Description Matt Mezynski 2018-02-16 14:51:10 UTC
Created attachment 1397055 [details]
server sosreport

Description of problem:
RHEL 7 curl packages perform more slowly due to differing calls made than an upstream package version compiled against openssl libraries.

Version-Release number of selected component (if applicable):


How reproducible:
Any time the RHEL curl package is used.

Steps to Reproduce:
1.  Install RHEL curl
2.  Install upstream curl
3.  Compare the calls made, and the time differences between the two packages returning.

Actual results:
RHEL curl not as highly performing as the custom compiled upstream version

Expected results:
RHEL curl to be as highly performing as the custom compiled upstream version

Additional info:
Business justification - Its is impacting our customers and the response times have increased. Ideally we want the libcurl shipped with RHEL to work optimally and i dont want to replace the system provided one with upstream one, as you know that poses lot of changes in managing servers that way in the long run. 

Back to the issue, i ran few traces to see why the open source upstream is performing better. I see that RHEL shipped one is compiled against the NSS ssl libraries vs the open source i compiled against openssl libs. The additional time taken seems to be taken during NSS initialization or establishing connection phase. I am posting the traces here, let me know if you can make anything out of this and help me understand if there is an option to fix this using RHEL shipped curl.


Customer believes they have discovered the bug noted here from RHEL 6 in the RHEL 7 version of curl:

 https://access.redhat.com/solutions/2968211

sosreport and strace to be attached

Comment 2 Matt Mezynski 2018-02-16 14:51:52 UTC
Created attachment 1397056 [details]
curl output showing nss involvement

Comment 3 Kamil Dudka 2018-02-16 16:45:35 UTC
Could you please try to export NSS_SDB_USE_CACHE=no and check whether it improves the performance in your testing scenario?

Comment 4 Matt Mezynski 2018-02-16 19:16:07 UTC
Hello,

The customer has seen improvements in the following ways:

   I have seen setting it to yes or no and saw improvements in both cases.

They had been interested in NSS_SDB_USE_CACHE=yes in the case and I had them try it, but they did not report the change in performance until today.

Thanks,

Matt

Comment 5 Kamil Dudka 2018-02-16 19:45:07 UTC
Thanks for confirmation!  Reassigning to nss-softokn then...

Comment 6 Kai Engert (:kaie) (inactive account) 2018-03-05 13:14:39 UTC
Hello Kamil, what is your conclusion based on that experiment?

Comment 29 Red Hat Bugzilla 2023-09-15 00:06:33 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 500 days


Note You need to log in before you can comment on or make changes to this bug.