Received: from out0.migadu.com (out0.migadu.com [94.23.1.103]) by nld3-dev1.alpinelinux.org (Postfix) with ESMTPS id 8A0D07812B6 for <~alpine/devel@lists.alpinelinux.org>; Wed, 22 Jun 2022 16:39:33 +0000 (UTC) MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ayaya.dev; s=key1; t=1655915972; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=DWGb7JopUI8vqAbBL/u53rBp8hnVDjnLV+1q9M1Rh+k=; b=oYLT3JJU+UbCE2MXeqhpO3vyuZzMlbPKCJ9GLZQGYMEHEAN9ooVTKuu4iSz4kuYNvdrPP4 72PjAtGscMnboOc1ktCEsQ1hOPjd4yvQZ4qWaBhHSRFeLHQyLvDsDX1H0y05fmfJMRn00Z TeV7qXLeNTzyke96ODjf5sy9D3rB5XY= Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Wed, 22 Jun 2022 18:39:30 +0200 Message-Id: Cc: <~alpine/devel@lists.alpinelinux.org> Subject: Re: Native Alpine GLibc support (NEW) X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: "alice" To: "Tomas Kolda" , "Ariadne Conill" References: In-Reply-To: X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: ayaya.dev On Wed Jun 22, 2022 at 2:04 PM CEST, Tomas Kolda wrote: > > Yes, I have written about this before[0]. Mixing glibc and musl > > environments will lead to instability -- this can be overcome with prop= er > > multi-arch support, but we have not implemented this in Alpine yet (and > > apk-tools would need some minor changes to the solver to become > > multi-arch aware). > > > I know. That is why I want to have glibc build. Many JNI dependencies > in Java is glibc based for example. It is really hard to keep up. > > > > Locks in musl are done with atomics. The advantage is probably due to = the > > fact that glibc has lock elision, which musl does not yet have. > > Investigating the addition of lock elision to musl is on my list of thi= ngs > > to do eventually. > > > > Which JVM are you using? OpenJDK 17 and later have their own internal > > implementation of lock elision for Java/JNI locks, which should improve > > performance. > > > I tried JDK 8, 11, 17. Latest versions. No difference. Yes it is in > futex as you said. From user perspective it matters, because it is 5 > times slower. As I said I do not believe MUSL can dramatically change > pthread implementation as it is most sensitive part and very hard to > test. It is very long run. > > > - customize hundreds of APKBUILDs which will require the cooperation of > > package maintainers (who may be skeptical) > I do not agree with this. Most changes in that 300 set was in the > basic packages that was requiring MUSL tweaks. There will be less > tweaks after we will go further as more complex applications are using > libraries that are solved already. Anyway even from statistical > perspective it is 17 changes for 300 packages -> 5-6%. I am not sure > how many packages are in Alpine, but we can extrapolate. > > I also do not agree that someone would just for one "if" be pushing > change out. There are many patches for all other reasons. I am > positive that people tend to help others. And this change does not > generate any work for them if they will not need to support it. They > will just try to keep it in working way. > > > > Speaking in personal capacity, I do not think the Alpine TSC will appro= ve > > this proposal because the project is already overwhelmed with work to d= o. > > > Agree. I think that for start it would be great to at least allow "if" > patches to be able to merge it. It will be noop for Alpine. > > See example changes here: > https://github.com/koldat/alpine/pull/1