Re: Fedora 34 Change: Scale ZRAM to Full Memory Size — arbitrary scaling

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 2021-01-28 at 10:18 -0800, Adam Williamson wrote:
> On Thu, 2021-01-28 at 14:16 +0000, Zbigniew Jędrzejewski-Szmek wrote:
> > On Thu, Jan 28, 2021 at 03:20:38PM +0200, Alexander Bokovoy wrote:
> > > With today's OpenQA tests I can point out that using zram on 2048MB RAM
> > > VMs actually breaks FreeIPA deployment:
> > > https://openqa.fedoraproject.org/tests/763006#step/role_deploy_domain_controller/35
> > > 
> > > OpenQA uses 2048MB RAM for QEMU VMs and this was typically OK for
> > > FreeIPA deployment with integrated CA and DNS server. Not anymore with
> > > zram activated:
> > > 
> > > Jan 27 21:17:47 fedora zram_generator::generator[25243]: Creating unit dev-zram0.swap (/dev/zram0 with 1384MB)
> > > 
> > > which ends up eating 2/3rds of the whole memory budget and FreeIPA
> > > installer fails:
> > > 
> > > 2021-01-28T02:18:31Z DEBUG ipa-server-install was invoked with arguments [] and options: {'unattended': True, 'ip_addresses': None, 'domain_name': 'test.openqa.fedoraproject.org', 'realm_name': 'TEST.OPENQA.FEDORAPROJECT.ORG', 'host_name': None, 'ca_cert
> > > 2021-01-28T02:18:31Z DEBUG IPA version 4.9.1-1.fc34
> > > 2021-01-28T02:18:31Z DEBUG IPA platform fedora
> > > 2021-01-28T02:18:31Z DEBUG IPA os-release Fedora 34 (Server Edition Prerelease)
> > > 2021-01-28T02:18:31Z DEBUG Available memory is 823529472B
> > > ...
> > > 2021-01-28T02:18:31Z DEBUG The ipa-server-install command failed, exception: ScriptError: Less than the minimum 1.2GB of RAM is available, 0.77GB available
> > > 2021-01-28T02:18:31Z ERROR Less than the minimum 1.2GB of RAM is available, 0.77GB available
> > > 2021-01-28T02:18:31Z ERROR The ipa-server-install command failed. See /var/log/ipaserver-install.log for more information
> > 
> > Enabling zram doesn't really "take away memory", because no pre-allocation happens.
> > If there is no physical swap, then adding zram0 should just shown additional
> > swap space, so I don't think it could cause the check to fail.
> > But if there is physical swap, the zram device is used with higher preference
> > than the physical swap. So I think the explanation could be that the VM has
> > a swap partition.
> 
> The openQA test in question runs after, and uses the hard disk from, a
> test that runs a default Fedora Server install:
> https://openqa.fedoraproject.org/tests/763650
> which, AIUI, should not be creating a swap partition. The logs from the test -
> https://openqa.fedoraproject.org/tests/763657/file/role_deploy_domain_controller-var_log.tar.gz - 
> do not show any swaps being activated other than zram ones. So no, I
> don't think there is a swap partition.

Probably relevant - we log the output of `free` shortly after system
install. Up to and including Fedora-Rawhide-20210124.n.0 , it looked
approximately like this:

              total        used        free      shared  buff/cache   available
Mem:        2024132      189668     1609448        4104      225016     1684936
Swap:       1011708           0     1011708

Particularly, "total" memory was reported as around 2000000 bytes. In
Fedora-Rawhide-20210127.n.1 and Fedora-Rawhide-20210128.n.0, though -
the two most recent composes - it looks like this:

              total        used        free      shared  buff/cache   available
Mem:        1417856      311908      852832        4104      253116      944752
Swap:       1417212           0     1417212

"total" memory is now reported as around 1400000 bytes. Not sure what
caused this to change.
-- 
Adam Williamson
Fedora QA
IRC: adamw | Twitter: adamw_ha
https://www.happyassassin.net


_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Users]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]

  Powered by Linux