Bug 877421

Summary: gnutls: linking against GNUTLS activates multi-threaded algorithms
Product: [Fedora] Fedora Reporter: Florian Weimer <fweimer>
Component: gnutlsAssignee: Nikos Mavrogiannopoulos <nmavrogi>
Status: CLOSED DEFERRED QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: jorton, nmavrogi, tmraz
Target Milestone: ---Keywords: FutureFeature
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-12-05 10:36:31 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Florian Weimer 2012-11-16 13:40:16 UTC
GNUTLS pulls in libpthread, thereby forcing malloc and libstdc++ reference counting (which affects std::string and std::(tr1::)shared_ptr) to use atomic operations.  For some loads, this has a measurable performance impact.

This is unnecessary because GNUTLS does not create threads on its own, and the mutex functions it needs are available in libc proper.

(I saw this with gnutls-2.12.17-1.fc17.)

Comment 1 Fedora End Of Life 2013-07-04 04:05:13 UTC
This message is a reminder that Fedora 17 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 17. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as WONTFIX if it remains open with a Fedora 
'version' of '17'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version prior to Fedora 17's end of life.

Bug Reporter:  Thank you for reporting this issue and we are sorry that 
we may not be able to fix it before Fedora 17 is end of life. If you 
would still like  to see this bug fixed and are able to reproduce it 
against a later version  of Fedora, you are encouraged  change the 
'version' to a later Fedora version prior to Fedora 17's end of life.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 2 Florian Weimer 2013-07-04 08:03:43 UTC
Still present in gnutls-3.1.11-1.fc19.x86_64 (same version as in rawhide).

Comment 3 Nikos Mavrogiannopoulos 2013-11-26 16:18:55 UTC
There are two issues here. One gnutls links to librt -mainly for clock_gettime() and librt links to pthreads. Since new glibc include clock_gettime, this is no longer needed, thus the issue can be fixed within gnutls.

The second issue is linking with p11-kit which also links with pthreads (for mutex_lock and this can also be avoided). I'll try to handle both the issues in rawhide.

Comment 4 Nikos Mavrogiannopoulos 2013-12-05 10:36:31 UTC
After some research it seems that this is unlikely to be fixed. GnuTLS is linked to p11-kit which uses the pthread library.

Comment 5 Florian Weimer 2013-12-05 10:40:44 UTC
(In reply to Nikos Mavrogiannopoulos from comment #4)
> After some research it seems that this is unlikely to be fixed. GnuTLS is
> linked to p11-kit which uses the pthread library.

There is bug 985495 for that.

Comment 6 Nikos Mavrogiannopoulos 2013-12-05 11:08:43 UTC
Let's postpone that issue then until a solution in p11-kit can be implemented.