qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Andrew Randrianasulu <randrianasulu@gmail.com>
To: Thomas Huth <thuth@redhat.com>
Cc: "Philippe Mathieu-Daudé" <philmd@linaro.org>,
	qemu-discuss@nongnu.org,
	"QEMU Developers" <qemu-devel@nongnu.org>
Subject: Re: dropping 32-bit host support
Date: Thu, 16 Mar 2023 13:22:38 +0300	[thread overview]
Message-ID: <CA+rFky4su7ZEo8pNQGk3qEkTOLEkFAqO2Tsrh6VyDaNOf7w=_Q@mail.gmail.com> (raw)
In-Reply-To: <CA+rFky6WqdLjNpeU3sCXwjwMEuEK+XVHE5BBCKYC=umRGK81eg@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 6158 bytes --]

чт, 16 мар. 2023 г., 12:17 Andrew Randrianasulu <randrianasulu@gmail.com>:

>
>
> чт, 16 мар. 2023 г., 11:31 Thomas Huth <thuth@redhat.com>:
>
>> On 16/03/2023 08.36, Philippe Mathieu-Daudé wrote:
>> > On 16/3/23 08:17, Andrew Randrianasulu wrote:
>> >>
>> >> чт, 16 мар. 2023 г., 10:05 Philippe Mathieu-Daudé <philmd@linaro.org
>> >> <mailto:philmd@linaro.org>>:
>> >>
>> >>     Hi Andrew,
>> >>
>> >>     On 16/3/23 01:57, Andrew Randrianasulu wrote:
>> >>      > Looking at https://wiki.qemu.org/ChangeLog/8.0
>> >>     <https://wiki.qemu.org/ChangeLog/8.0>
>> >>      > <https://wiki.qemu.org/ChangeLog/8.0
>> >>     <https://wiki.qemu.org/ChangeLog/8.0>>
>> >>      >
>> >>      > ===
>> >>      > System emulation on 32-bit x86 and ARM hosts has been
>> deprecated.
>> >>     The
>> >>      > QEMU project no longer considers 32-bit x86 and ARM support for
>> >>     system
>> >>      > emulation to be an effective use of its limited resources, and
>> thus
>> >>      > intends to discontinue.
>> >>      >
>> >>      >   ==
>> >>      >
>> >>      > well, I guess arguing from memory-consuption point on 32 bit x86
>> >>     hosts
>> >>      > (like my machine where I run 32 bit userspace on 64 bit kernel)
>>
>> All current PCs have multiple gigabytes of RAM, so using a 32-bit
>> userspace
>> to save some few bytes sounds weird.
>>
>
> I think difference more like in 20-30% (on disk and in ram), not *few
> bytes*.
>

I stand (self) corrected on *on disk* binary size, this parameter tend to
be ~same between bash / php binaries from Slackware 15.0 i586/x86_64. I do
not have full identical x64 Slackware setup for measuring memory impact.


Still, pushing users into endless hw upgrade is no fun:

https://hackaday.com/2023/02/28/repurposing-old-smartphones-when-reusing-makes-more-sense-than-recycling/

note e-waste and energy consumption

This graph does not make me happy:

https://ourworldindata.org/grapher/global-energy-substitution?time=earliest..2021

Note this paradox too

https://en.m.wikipedia.org/wiki/Jevons_paradox

Yes, weirdly or not basically I talk about same thing as "we are running
out of CI  quota". But. With ~all developers following mindlessly into
"upgrade now, think later if at all" whole dependency tree will be heavier
and heavier.


I guess whole move to gitlab also was not from overly good life .... I
wonder of those c:\ paths I saw while looking into build status  are real
and mean CI running on Windows? Or it was just some strange fake thing
..... is Windows cheaper? Is it really better when it comes to containers?



Also, this whole "my program is only one running on user's machine"  is
> flawed.
>
>
>
>> (and in case you're talking about a very old PC that cannot be extened
>> anymore, you're likely better off with an older version of QEMU anyway)
>>
>> >>
>> >>     If you use a 64-bit kernel, then your host is 64-bit :)
>> >>
>> >>
>> >>
>> >> No, I mean *kernel* is 64 bit yet userspace (glibc, X , ...) all
>> 32bit.
>> >> So, qemu naturally will be 32-bit binary on my system.
>> >
>> > This configuration is still supported!
>> >
>> > Thomas, should we clarify yet again? Maybe adding examples?
>>
>> There are two aspects here:
>>
>> 1) 32-bit KVM support - this won't be supported in the future anymore.
>> Since
>> running a 32-bit QEMU on a 64-bit kernel still uses the 32-bit KVM API,
>> KVM
>> also won't be possible anymore with a QEMU that has been compiled in
>> 32-bit
>> mode.
>>
>> 2) Compiling a 32-bit QEMU binary won't be officially supported anymore.
>> We
>> won't waste any more precious CI minutes on this (which is where we're
>> struggling the most currently), and likely no active support for finding
>> and
>> fixing bugs.
>
>
> Well, does this CI thing reuse build objects (even indirectly, via ccache)
> currently?
>
>
> But I guess we won't actively disable this possibility
>> (especially since we did not deprecate the corresponding 32-bit
>> linux-user
>> emulation yet, so the emulation code will mostly still stay around).
>>
>> In the long run, we likely want to get rid of the separate compilation of
>> the qemu-system-i386 binary, too, but that's still to be discussed. E.g.
>> we
>> could add a special run mode to the qemu-system-x86_64 instead that makes
>> sure that the guest can only run in 32-bit mode.
>>
>> >>     host: hardware where you run QEMU
>> >>     guest: what is run within QEMU
>> >>
>> >>     Running 32-bit *guest* on your 64-bit *host* is still supported.
>>
>> If the complete userspace is 32-bit, I'd rather consider it a 32-bit host.
>>
>> >> [...] I also ran qemu-system-ppc on Huawei Matepad T8 (32 bit Android,
>> >> too) for emulating old mac os 9. Yes, I can wait 10 min per guest
>> boot.
>> >> Fedora 36 armhf boots even slower on emulation!
>>
>> Yes, but for such scenarios, you can also use older versions of QEMU, you
>> don't need the latest and greatest shiny QEMU version.
>>
>> >> Well, sometimes simple patch restores functionality. I patched for
>> example
>> >> olive-editor to run on 32 bit, and before this intel embree
>> (raytracing
>> >> kernels for Lux renderer). So, _sometimes_ it really not that costly.
>> >> While if this CI thing really runs per-commit and thrown away each
>> result
>> >> ... may be letting interested users to build things on their own
>> machines
>> >> (and share patches, if they develop them, publicly) actually good idea.
>>
>> The problem is really that we don't have unlimited resources in the QEMU
>> project. Currently we're heavily struggling with the load in the CI, but
>> also pure man power is always very scarce. So at one point in time, you
>> have
>> to decide to say good bye to some old and hardly used features - at least
>> to
>> stop testing and actively supporting it. If you want to continue testing
>> and
>> fixing bugs for such host systems, that's fine, of course, but don't
>> expect
>> the QEMU developers to do that job in the future.
>>
>>   Thomas
>>
>>

[-- Attachment #2: Type: text/html, Size: 9824 bytes --]

  reply	other threads:[~2023-03-16 10:23 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CA+rFky6A9Q_5sJ4WDO-Z2HBT59qiNgr8A-xk+O7-gnAMZmHt2A@mail.gmail.com>
2023-03-16  7:05 ` dropping 32-bit host support Philippe Mathieu-Daudé
2023-03-16  7:17   ` Andrew Randrianasulu
2023-03-16  7:36     ` Philippe Mathieu-Daudé
2023-03-16  7:44       ` Andrew Randrianasulu
2023-03-16  8:31       ` Thomas Huth
2023-03-16  9:17         ` Andrew Randrianasulu
2023-03-16 10:22           ` Andrew Randrianasulu [this message]
2023-03-16 10:56             ` Philippe Mathieu-Daudé
2023-03-16 11:04               ` Andrew Randrianasulu
2023-03-16 11:15                 ` Thomas Huth
2023-03-16 11:02             ` Thomas Huth
2023-03-16 11:11               ` Andrew Randrianasulu
2023-03-16 12:35                 ` Daniel P. Berrangé
2023-03-16 13:01                   ` Andrew Randrianasulu
2023-03-16 13:32                     ` Thomas Huth
2023-03-16 15:21                       ` Warner Losh
2023-03-16 15:29                         ` Andrew Randrianasulu
2023-03-16 15:27                       ` Andrew Randrianasulu
2023-03-16 15:39                     ` Daniel P. Berrangé
2023-03-17  8:03                   ` Andrew Randrianasulu
2023-03-16 10:00         ` Markus Armbruster
2023-03-16 10:05           ` Andrew Randrianasulu
     [not found] ` <3DD8295F-4BE0-4262-8C68-4A85A56D63C7@livius.net>
2023-03-16  7:29   ` Philippe Mathieu-Daudé
2023-03-16  7:57     ` Liviu Ionescu
2023-03-16  8:07       ` Liviu Ionescu
2023-03-16  8:36         ` Thomas Huth
2023-03-16  8:42           ` Liviu Ionescu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CA+rFky4su7ZEo8pNQGk3qEkTOLEkFAqO2Tsrh6VyDaNOf7w=_Q@mail.gmail.com' \
    --to=randrianasulu@gmail.com \
    --cc=philmd@linaro.org \
    --cc=qemu-devel@nongnu.org \
    --cc=qemu-discuss@nongnu.org \
    --cc=thuth@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).