LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* Re: [PATCH 2/8] readahead: state based method routines: explicitly embed class_new/class_old inside flags
[not found] ` <7HR6S-3Wm-13@gated-at.bofh.it>
@ 2007-01-27 12:01 ` Bodo Eggert
2007-01-28 19:11 ` Randy Dunlap
0 siblings, 1 reply; 3+ messages in thread
From: Bodo Eggert @ 2007-01-27 12:01 UTC (permalink / raw)
To: Fengguang Wu, Andrew Morton, Martin Peschke, linux-kernel
Fengguang Wu <wfg@mail.ustc.edu.cn> wrote:
> The new/old ra class were implicitly stored in low bits of
> file_ra_state.flags. Now make the data structure obvious, and remove the
> coding tricks.
> +++ linux-2.6.20-rc4-mm1/include/linux/fs.h
> - unsigned long flags; /* RA_FLAG_xxx | ra_class_old | ra_class_new */
> + union {
> + unsigned long flags; /* RA_FLAG_xxx | class_old | class_new */
> + struct {
> + u8 class_new;
> + u8 class_old;
This doesn't work on big endiam machines, does it?
IMO you should use a bitfield instead.
--
Your e-mail has been returned due to insufficient voltage.
Friß, Spammer: aegzcH4Js@luevh-7.7eggert.dyndns.org
ptulV7@C.7eggert.dyndns.org vkIfyB@SEcltba.7eggert.dyndns.org
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH 2/8] readahead: state based method routines: explicitly embed class_new/class_old inside flags
2007-01-27 12:01 ` [PATCH 2/8] readahead: state based method routines: explicitly embed class_new/class_old inside flags Bodo Eggert
@ 2007-01-28 19:11 ` Randy Dunlap
0 siblings, 0 replies; 3+ messages in thread
From: Randy Dunlap @ 2007-01-28 19:11 UTC (permalink / raw)
To: 7eggert; +Cc: Fengguang Wu, Andrew Morton, Martin Peschke, linux-kernel
On Sat, 27 Jan 2007 13:01:08 +0100 Bodo Eggert wrote:
> Fengguang Wu <wfg@mail.ustc.edu.cn> wrote:
>
> > The new/old ra class were implicitly stored in low bits of
> > file_ra_state.flags. Now make the data structure obvious, and remove the
> > coding tricks.
>
> > +++ linux-2.6.20-rc4-mm1/include/linux/fs.h
>
> > - unsigned long flags; /* RA_FLAG_xxx | ra_class_old | ra_class_new */
> > + union {
> > + unsigned long flags; /* RA_FLAG_xxx | class_old | class_new */
> > + struct {
> > + u8 class_new;
> > + u8 class_old;
>
> This doesn't work on big endiam machines, does it?
>
> IMO you should use a bitfield instead.
Or "use bit masks instead" since
"The order of allocation of bit-fields within a unit (high-order to
low-order or low-order to high-order) is implementation-defined."
---
~Randy
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH 0/8] readahead updates
@ 2007-01-27 8:02 Fengguang Wu
[not found] ` <369886263.27547@ustc.edu.cn>
0 siblings, 1 reply; 3+ messages in thread
From: Fengguang Wu @ 2007-01-27 8:02 UTC (permalink / raw)
To: Andrew Morton; +Cc: Martin Peschke, linux-kernel
Andrew,
Here are more updates for adaptive readahead.
It's not likely to have more big changes, so the next plan is to convert some
accounting items to the statistics infrastructure by Martin Peschke.
[Martin: Sorry for the long delay.]
I'm also playing with the current readahead code, trying to make it more clean
and reliable. I guess it would also be a long journey. It may be better to
wait and confirm if the adaptive readahead works in the wild, before touching
the stock readahead.
Regards,
Fengguang Wu
---
--- broken-out/series 2007-01-12 13:19:44.000000000 +0800
+++ patches/series 2007-01-27 14:53:27.000000000 +0800
@@ -1089,9 +1089,13 @@
readahead-sysctl-parameters-set-readahead_hit_rate=1.patch
readahead-min-max-sizes.patch
readahead-min-max-sizes-remove-get_readahead_bounds.patch
+readahead-min-max-sizes-increase-VM_MIN_READAHEAD-to-32KB.patch
readahead-state-based-method-aging-accounting.patch
readahead-state-based-method-routines.patch
+readahead-state-based-method-routines-explicitly-embed-class_new-class_old-inside-flags.patch
readahead-state-based-method.patch
+readahead-state-based-method-prevent-tiny-size.patch
+readahead-state-based-method-move-readahead_ratio-out-of-compute_thrashing_threshold.patch
readahead-context-based-method.patch
readahead-context-based-method-locking-fix.patch
readahead-context-based-method-locking-fix-2.patch
@@ -1100,14 +1104,18 @@
readahead-initial-method-guiding-sizes.patch
readahead-initial-method-thrashing-guard-size.patch
readahead-initial-method-user-recommended-size.patch
+readahead-initial-method-user-recommended-size-rename-to-read_ahead_initial_kb.patch
readahead-initial-method.patch
readahead-backward-prefetching-method.patch
readahead-thrashing-recovery-method.patch
+readahead-thrashing-recovery-method-fix.patch
readahead-call-scheme.patch
readahead-call-scheme-ifdef-fix.patch
readahead-call-scheme-build-fix.patch
readahead-call-scheme-remove-get_readahead_bounds.patch
+readahead-call-scheme-fix-thrashed-unaligned-read.patch
readahead-laptop-mode.patch
+readahead-laptop-mode-fix.patch
readahead-loop-case.patch
readahead-nfsd-case.patch
readahead-nfsd-case-fix.patch
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2007-01-28 19:15 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <7HR6P-3Wm-3@gated-at.bofh.it>
[not found] ` <7HR6S-3Wm-13@gated-at.bofh.it>
2007-01-27 12:01 ` [PATCH 2/8] readahead: state based method routines: explicitly embed class_new/class_old inside flags Bodo Eggert
2007-01-28 19:11 ` Randy Dunlap
2007-01-27 8:02 [PATCH 0/8] readahead updates Fengguang Wu
[not found] ` <369886263.27547@ustc.edu.cn>
2007-01-27 8:02 ` [PATCH 2/8] readahead: state based method routines: explicitly embed class_new/class_old inside flags Fengguang Wu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).