From: Gustavo Barbieri <barbieri@gmail.com>
To: Gustavo Barbieri <barbieri@gmail.com>,
Pekka Enberg <penberg@cs.helsinki.fi>,
ck@vds.kolivas.org, linux-kernel@vger.kernel.org
Subject: Re: Re: [PATCH] vm - swap_prefetch-15
Date: Fri, 7 Oct 2005 15:40:12 -0300 [thread overview]
Message-ID: <9ef20ef30510071140r6402e1e8p4b7c51955774d522@mail.gmail.com> (raw)
In-Reply-To: <20051007182817.GA8145@jikos.cz>
On 10/7/05, Rudo Thomas <rudo@matfyz.cz> wrote:
> > Or make it a "const static" variable, so compiler will check types and
> > everything, but the symbol will not be present in the binary, causing
> > no overhead. So it could be:
> >
> > const unsigned PREFETCH_PAGES = (SWAP_CLUSTER_MAX * swap_prefetch * \
> > (1 + 9 * laptop_mode));
>
> This won't work, AFAICT. swap_prefetch and laptop_mode are variables,
> but with the code above, they would be evaluated only once. And maybe
> the compiler will reject that code immediately...
Ah... yes, you're right! These may change in runtime.
--
Gustavo Sverzut Barbieri
---------------------------------------
Computer Engineer 2001 - UNICAMP
GPSL - Grupo Pro Software Livre
Cell..: +55 (19) 9165 8010
Jabber: gsbarbieri@jabber.org
ICQ#: 17249123
MSN: barbieri@gmail.com
Skype: gsbarbieri
GPG: 0xB640E1A2 @ wwwkeys.pgp.net
next prev parent reply other threads:[~2005-10-07 18:40 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-10-06 14:01 Con Kolivas
2005-10-06 14:13 ` [PATCH] vm - swap_prefetch-15 docs Con Kolivas
2005-10-07 10:03 ` [PATCH] vm - swap_prefetch-15 Pekka Enberg
2005-10-07 10:54 ` Con Kolivas
2005-10-07 11:31 ` Pekka Enberg
2005-10-07 12:08 ` Con Kolivas
2005-10-07 12:26 ` Pekka J Enberg
2005-10-07 12:33 ` Con Kolivas
2005-10-07 12:49 ` Pekka J Enberg
2005-10-07 14:44 ` [ck] " Gustavo Barbieri
2005-10-07 18:28 ` Rudo Thomas
2005-10-07 18:40 ` Gustavo Barbieri [this message]
2005-10-07 11:46 ` Paolo Ciarrocchi
2005-10-07 12:18 ` Con Kolivas
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=9ef20ef30510071140r6402e1e8p4b7c51955774d522@mail.gmail.com \
--to=barbieri@gmail.com \
--cc=ck@vds.kolivas.org \
--cc=linux-kernel@vger.kernel.org \
--cc=penberg@cs.helsinki.fi \
/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
all inboxes | Powered by JetHome®