From: "Dmitry V. Levin" <ldv@altlinux.org>
To: ALT Devel discussion list <devel@lists.altlinux.org>
Subject: Re: [devel] [SCM] packages/apt: tags/0.5.15lorg2-alt74
Date: Wed, 23 Oct 2019 15:46:59 +0300
Message-ID: <20191023124659.GB15329@altlinux.org> (raw)
In-Reply-To: <CA+qzenm3=gKLC00w4UAS9XQB4ATM1Ua8DBjdV1c+NtxL4q4_Ew@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 595 bytes --]
On Tue, Oct 22, 2019 at 06:35:48PM +0300, Alexey Tourbin wrote:
[...]
> Зачем выравнивать структуру исходя из ее общего размера, а не
> требований к выравниванию членов?
Все структуры, память для которых резервируется с помощью
pkgCacheGenerator::AllocateInMap, apt с незапамятных времён выравнивает
не на размер выравнивания этой структуры (как принято везде), а на размер
самой структуры, и, что хуже, полагается на такое выравнивание
(см. напр. DynamicMMap::Allocate).
Из-за этого особенного поведения в apt проблем с памятью ещё больше,
чем должно было бы быть.
--
ldv
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 801 bytes --]
next prev parent reply other threads:[~2019-10-23 12:46 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-10-21 23:42 ` Dmitry V. Levin
2019-10-22 0:01 ` Michael Shigorin
2019-10-22 8:32 ` Dmitry V. Levin
2019-10-22 12:28 ` Anton Farygin
2019-10-22 12:46 ` Anton Farygin
2019-10-22 15:32 ` Dmitry V. Levin
2019-10-22 15:51 ` Anton Farygin
2019-10-22 16:52 ` Ivan Zakharyaschev
2019-10-24 13:59 ` Aleksei Nikiforov
2019-10-24 15:10 ` Andrey Savchenko
2019-10-24 15:29 ` Aleksei Nikiforov
2019-10-24 15:50 ` Andrey Savchenko
2019-10-24 16:01 ` Aleksei Nikiforov
2019-10-24 16:54 ` Andrey Savchenko
2019-10-25 7:23 ` Aleksei Nikiforov
2019-10-22 4:06 ` Anton Farygin
2019-10-22 15:35 ` Alexey Tourbin
2019-10-23 12:46 ` Dmitry V. Levin [this message]
2019-10-24 13:58 ` Aleksei Nikiforov
2019-10-24 15:20 ` Ivan Zakharyaschev
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=20191023124659.GB15329@altlinux.org \
--to=ldv@altlinux.org \
--cc=devel@lists.altlinux.org \
/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
ALT Linux Team development discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
public-inbox-index devel
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.devel
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git