From: Grigory Batalov <bga@altlinux.ru>
To: ALT Devel discussion list <devel@altlinux.ru>
Subject: Re: [devel] Fw: Re: [sisyphus] Shared memory
Date: Thu, 25 Mar 2004 11:44:52 +0300
Message-ID: <20040325114452.2c391fa2.bga@altlinux.ru> (raw)
In-Reply-To: <20040325111059.0162db1e.bga@altlinux.ru>
Begin forwarded message:
Date: Thu, 25 Mar 2004 03:24:31 -0500
From: Ivan Adzhubey <iadzhubey@rics.bwh.harvard.edu>
To: ALT Linux Sisyphus discussion list <sisyphus@altlinux.ru>
Subject: Re: [sisyphus] Shared memory - HELP PLEASE!
On Thursday 25 March 2004 02:44 am, Grigory Batalov wrote:
> On Thu, 25 Mar 2004 02:17:54 -0500
>
> man shmget:
>
> ...A new shared memory segment, with
> size equal to the value of size rounded up to a multiple of PAGE_SIZE,
> is created...
То есть должно быть:
size = [1..1024]
shmblock = 1024 (или 1 * PAGE_SIZE)
size = [1025..2047]
shmblock = 2048 (или 2 * PAGE_SIZE)
size = [2048..3071]
shmblock = 3072 (или 3 * PAGE_SIZE)
и тд.
Вместо этого получаем:
size = [1..1024]
shmblock = 0
size = [1025..2047]
shmblock = 4096
size = [2048..4095]
shmblock = 8192
size = [4096..5119]
shmblock = 16384
и тд.
Какое же это rounded up to a multiple of PAGE_SIZE, даже если например
PAGE_SIZE == 4096?
--
Иван
prev parent reply other threads:[~2004-03-25 8:44 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-03-25 8:10 Grigory Batalov
2004-03-25 8:25 ` Denis Ovsienko
2004-03-25 8:43 ` Grigory Batalov
2004-03-25 8:44 ` Grigory Batalov [this message]
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=20040325114452.2c391fa2.bga@altlinux.ru \
--to=bga@altlinux.ru \
--cc=devel@altlinux.ru \
/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