From: Ivan Adzhubey <iadzhubey@rics.bwh.harvard.edu>
To: ALT Linux Sisyphus discussion list <sisyphus@altlinux.ru>
Subject: Re: [sisyphus] Shared memory - HELP PLEASE!
Date: Thu, 25 Mar 2004 03:24:31 -0500
Message-ID: <200403250324.31415.iadzhubey@rics.bwh.harvard.edu> (raw)
In-Reply-To: <20040325104429.19718769.bga-no-spam@kovgok.ru>
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?
--
Иван
next prev parent reply other threads:[~2004-03-25 8:24 UTC|newest]
Thread overview: 33+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-03-24 22:17 ` Ivan Adzhubey
2004-03-25 4:14 ` Eugene Ostapets
2004-03-25 4:36 ` Ivan Adzhubey
2004-03-25 4:43 ` Denis S. Filimonov
2004-03-25 4:50 ` Ivan Adzhubey
2004-03-25 5:04 ` Eugene Ostapets
2004-03-25 6:53 ` Ivan Adzhubey
2004-03-25 7:44 ` Serj
2004-03-25 8:28 ` Ivan Adzhubey
2004-03-25 5:09 ` Mike Lykov
2004-03-25 5:23 ` Ivan Adzhubey
2004-03-25 5:28 ` Mike Lykov
2004-03-25 5:30 ` Ivan Adzhubey
2004-03-25 6:42 ` Grigory Batalov
2004-03-25 7:05 ` Ivan Adzhubey
2004-03-25 7:17 ` Ivan Adzhubey
2004-03-25 7:29 ` Ivan Adzhubey
2004-03-25 7:59 ` Ivan Adzhubey
2004-03-25 7:44 ` Grigory Batalov
2004-03-25 8:09 ` Ivan Adzhubey
2004-03-25 8:24 ` Ivan Adzhubey [this message]
2004-03-25 11:54 ` Sergey Vlasov
2004-03-25 4:22 ` Denis S. Filimonov
2004-03-25 12:22 ` Sergey Vlasov
2004-03-25 12:58 ` [JT] снова проблемы от security fixes? (WAS: Re: [sisyphus] Shared memory - HELP PLEASE!) Andrei Bulava
2004-03-25 13:12 ` Sergey Vlasov
2004-04-06 8:57 ` [sisyphus] Shared memory - HELP PLEASE! Sergey Vlasov
2004-04-06 9:08 ` Ivan Adzhubey
2004-04-06 9:24 ` Dmitry V. Levin
2004-04-06 9:50 ` Sergey Vlasov
2004-04-06 21:06 ` Ivan Adzhubey
2004-04-07 6:25 ` Sergey Vlasov
2004-04-07 16:12 ` Ivan Adzhubey
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=200403250324.31415.iadzhubey@rics.bwh.harvard.edu \
--to=iadzhubey@rics.bwh.harvard.edu \
--cc=sisyphus@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 Sisyphus discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/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 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
public-inbox-index sisyphus
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.sisyphus
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git