Re: [ck] 2.6.13-ck2
On Wed, 2005-09-07 at 20:41 +1000, Con Kolivas wrote: > On Wed, 7 Sep 2005 04:25, Adam Petaccia wrote: > > I think this patch is missing an IFDEF or something (I'm not really a > > programmer, I just like to pretend). Anyway, I've tried building -ck2 > > without swap enabled, and it failed. Just to make sure, I make'd > > distclean, and I get the following: > > > > LD .tmp_vmlinux1 > > mm/built-in.o: In function `zone_watermark_ok': > > mm/page_alloc.c:763: undefined reference to `delay_prefetch' > > mm/built-in.o: In function `swap_setup': > > mm/swap.c:485: undefined reference to `prepare_prefetch' > > make: *** [.tmp_vmlinux1] Error 1 > > Bad layout on my part. > > Try this patch on top. > > Cheers, > Con Weee, kernel compiles now. Thanks con. -- Adam Petaccia <[EMAIL PROTECTED]> signature.asc Description: This is a digitally signed message part
Re: [ck] 2.6.13-ck2
On Wed, 7 Sep 2005 04:25, Adam Petaccia wrote: > I think this patch is missing an IFDEF or something (I'm not really a > programmer, I just like to pretend). Anyway, I've tried building -ck2 > without swap enabled, and it failed. Just to make sure, I make'd > distclean, and I get the following: > > LD .tmp_vmlinux1 > mm/built-in.o: In function `zone_watermark_ok': > mm/page_alloc.c:763: undefined reference to `delay_prefetch' > mm/built-in.o: In function `swap_setup': > mm/swap.c:485: undefined reference to `prepare_prefetch' > make: *** [.tmp_vmlinux1] Error 1 Bad layout on my part. Try this patch on top. Cheers, Con Index: linux-2.6.13-ck2test/include/linux/swap.h === --- linux-2.6.13-ck2test.orig/include/linux/swap.h 2005-09-07 20:25:40.0 +1000 +++ linux-2.6.13-ck2test/include/linux/swap.h 2005-09-07 20:35:12.0 +1000 @@ -186,6 +186,32 @@ extern int shmem_unuse(swp_entry_t entry extern void swap_unplug_io_fn(struct backing_dev_info *, struct page *); +#ifdef CONFIG_SWAP_PREFETCH +/* mm/swap_prefetch.c */ +extern void prepare_prefetch(void); +extern void add_to_swapped_list(unsigned long index); +extern void remove_from_swapped_list(unsigned long index); +extern void delay_prefetch(void); + +#else /* CONFIG_SWAP_PREFETCH */ +static inline void add_to_swapped_list(unsigned long index) +{ +} + +static inline void prepare_prefetch(void) +{ +} + +static inline void remove_from_swapped_list(unsigned long index) +{ +} + +static inline void delay_prefetch(void) +{ +} + +#endif /* CONFIG_SWAP_PREFETCH */ + #ifdef CONFIG_SWAP /* linux/mm/page_io.c */ extern int swap_readpage(struct file *, struct page *); @@ -249,32 +275,6 @@ static inline void put_swap_token(struct __put_swap_token(mm); } -#ifdef CONFIG_SWAP_PREFETCH -/* mm/swap_prefetch.c */ -extern void prepare_prefetch(void); -extern void add_to_swapped_list(unsigned long index); -extern void remove_from_swapped_list(unsigned long index); -extern void delay_prefetch(void); - -#else /* CONFIG_SWAP_PREFETCH */ -static inline void add_to_swapped_list(unsigned long index) -{ -} - -static inline void prepare_prefetch(void) -{ -} - -static inline void remove_from_swapped_list(unsigned long index) -{ -} - -static inline void delay_prefetch(void) -{ -} - -#endif /* CONFIG_SWAP_PREFETCH */ - #else /* CONFIG_SWAP */ #define total_swap_pages 0
Re: [ck] 2.6.13-ck2
On Wed, 2005-09-07 at 20:41 +1000, Con Kolivas wrote: On Wed, 7 Sep 2005 04:25, Adam Petaccia wrote: I think this patch is missing an IFDEF or something (I'm not really a programmer, I just like to pretend). Anyway, I've tried building -ck2 without swap enabled, and it failed. Just to make sure, I make'd distclean, and I get the following: LD .tmp_vmlinux1 mm/built-in.o: In function `zone_watermark_ok': mm/page_alloc.c:763: undefined reference to `delay_prefetch' mm/built-in.o: In function `swap_setup': mm/swap.c:485: undefined reference to `prepare_prefetch' make: *** [.tmp_vmlinux1] Error 1 Bad layout on my part. Try this patch on top. Cheers, Con Weee, kernel compiles now. Thanks con. -- Adam Petaccia [EMAIL PROTECTED] signature.asc Description: This is a digitally signed message part
Re: [ck] 2.6.13-ck2
Oops, forgot the config file... On Tue, 2005-09-06 at 14:25 -0400, Adam Petaccia wrote: > On Mon, 2005-09-05 at 23:44 +1000, Con Kolivas wrote: > > These are patches designed to improve system responsiveness and > > interactivity. > > It is configurable to any workload but the default ck* patch is aimed at > > the > > desktop and ck*-server is available with more emphasis on serverspace. > > > > > > Apply to 2.6.13 > > http://ck.kolivas.org/patches/2.6/2.6.13/2.6.13-ck2/patch-2.6.13-ck2.bz2 > > > > or server version (no new version this release): > > http://ck.kolivas.org/patches/2.6/2.6.13/2.6.13-ck1/patch-2.6.13-ck1-server.bz2 > > > > > > web: > > http://kernel.kolivas.org > > all patches: > > http://ck.kolivas.org/patches/ > > Split patches available. > > > > > > Changes: > > > > Added: > > +vm-swap_prefetch-2.patch > > As mentioned many times already, this code prefetches ram that has been > > swapped out during idle periods. This is the latest version of the patch > > and > > is a config option. > I think this patch is missing an IFDEF or something (I'm not really a > programmer, I just like to pretend). Anyway, I've tried building -ck2 > without swap enabled, and it failed. Just to make sure, I make'd > distclean, and I get the following: > > LD .tmp_vmlinux1 > mm/built-in.o: In function `zone_watermark_ok': > mm/page_alloc.c:763: undefined reference to `delay_prefetch' > mm/built-in.o: In function `swap_setup': > mm/swap.c:485: undefined reference to `prepare_prefetch' > make: *** [.tmp_vmlinux1] Error 1 > > ___ > [EMAIL PROTECTED] > ck mailing list. Please reply-to-all when posting. > If replying to an email please reply below the original message. > http://bhhdoa.org.au/mailman/listinfo/ck -- Adam Petaccia <[EMAIL PROTECTED]> # # Automatically generated make config: don't edit # Linux kernel version: 2.6.13-ck2 # Tue Sep 6 14:14:18 2005 # CONFIG_X86=y CONFIG_MMU=y CONFIG_UID16=y CONFIG_GENERIC_ISA_DMA=y CONFIG_GENERIC_IOMAP=y # # Code maturity level options # CONFIG_EXPERIMENTAL=y CONFIG_CLEAN_COMPILE=y CONFIG_BROKEN_ON_SMP=y CONFIG_INIT_ENV_ARG_LIMIT=32 # # General setup # CONFIG_LOCALVERSION="" # CONFIG_SWAP is not set CONFIG_SYSVIPC=y CONFIG_POSIX_MQUEUE=y # CONFIG_BSD_PROCESS_ACCT is not set CONFIG_SYSCTL=y # CONFIG_AUDIT is not set CONFIG_HOTPLUG=y CONFIG_KOBJECT_UEVENT=y CONFIG_IKCONFIG=y CONFIG_IKCONFIG_PROC=y CONFIG_EMBEDDED=y CONFIG_KALLSYMS=y # CONFIG_KALLSYMS_ALL is not set # CONFIG_KALLSYMS_EXTRA_PASS is not set CONFIG_PRINTK=y CONFIG_BUG=y CONFIG_BASE_FULL=y CONFIG_FUTEX=y CONFIG_EPOLL=y # CONFIG_CC_OPTIMIZE_FOR_SIZE is not set CONFIG_SHMEM=y CONFIG_CC_ALIGN_FUNCTIONS=64 CONFIG_CC_ALIGN_LABELS=0 CONFIG_CC_ALIGN_LOOPS=0 CONFIG_CC_ALIGN_JUMPS=0 # CONFIG_TINY_SHMEM is not set CONFIG_BASE_SMALL=0 # # Loadable module support # CONFIG_MODULES=y CONFIG_MODULE_UNLOAD=y # CONFIG_MODULE_FORCE_UNLOAD is not set CONFIG_OBSOLETE_MODPARM=y # CONFIG_MODVERSIONS is not set # CONFIG_MODULE_SRCVERSION_ALL is not set CONFIG_KMOD=y # # Processor type and features # CONFIG_X86_PC=y # CONFIG_X86_ELAN is not set # CONFIG_X86_VOYAGER is not set # CONFIG_X86_NUMAQ is not set # CONFIG_X86_SUMMIT is not set # CONFIG_X86_BIGSMP is not set # CONFIG_X86_VISWS is not set # CONFIG_X86_GENERICARCH is not set # CONFIG_X86_ES7000 is not set # CONFIG_M386 is not set # CONFIG_M486 is not set # CONFIG_M586 is not set # CONFIG_M586TSC is not set # CONFIG_M586MMX is not set # CONFIG_M686 is not set # CONFIG_MPENTIUMII is not set # CONFIG_MPENTIUMIII is not set # CONFIG_MPENTIUMM is not set # CONFIG_MPENTIUM4 is not set # CONFIG_MK6 is not set CONFIG_MK7=y # CONFIG_MK8 is not set # CONFIG_MCRUSOE is not set # CONFIG_MEFFICEON is not set # CONFIG_MWINCHIPC6 is not set # CONFIG_MWINCHIP2 is not set # CONFIG_MWINCHIP3D is not set # CONFIG_MGEODEGX1 is not set # CONFIG_MCYRIXIII is not set # CONFIG_MVIAC3_2 is not set # CONFIG_X86_GENERIC is not set CONFIG_X86_CMPXCHG=y CONFIG_X86_XADD=y CONFIG_X86_L1_CACHE_SHIFT=6 CONFIG_RWSEM_XCHGADD_ALGORITHM=y CONFIG_GENERIC_CALIBRATE_DELAY=y CONFIG_X86_WP_WORKS_OK=y CONFIG_X86_INVLPG=y CONFIG_X86_BSWAP=y CONFIG_X86_POPAD_OK=y CONFIG_X86_GOOD_APIC=y CONFIG_X86_INTEL_USERCOPY=y CONFIG_X86_USE_PPRO_CHECKSUM=y CONFIG_X86_USE_3DNOW=y CONFIG_HPET_TIMER=y CONFIG_HPET_EMULATE_RTC=y # CONFIG_SMP is not set CONFIG_PREEMPT_NONE=y # CONFIG_PREEMPT_VOLUNTARY is not set # CONFIG_PREEMPT is not set # CONFIG_X86_UP_APIC is not set CONFIG_X86_TSC=y # CONFIG_X86_MCE is not set # CONFIG_TOSHIBA is not set # CONFIG_I8K is not set # CONFIG_X86_REBOOTFIXUPS is not set # CONFIG_MICROCODE is not set # CONFIG_X86_MSR is not set # CONFIG_X86_CPUID is not set # # Firmware Drivers # # CONFIG_EDD is not set # CONFIG_NOHIGHMEM is not set CONFIG_HIGHMEM4G=y # CONFIG_HIGHMEM64G is not set CONFIG_HIGHMEM=y CONFIG_SELECT_MEMORY_MODEL=y CONFIG_FLATMEM_MANUAL=y # CONFIG_DISCONTIGMEM_MANUAL is not set # CONFIG_SPARSEMEM_MANUAL is not set
Re: [ck] 2.6.13-ck2
On Mon, 2005-09-05 at 23:44 +1000, Con Kolivas wrote: > These are patches designed to improve system responsiveness and > interactivity. > It is configurable to any workload but the default ck* patch is aimed at the > desktop and ck*-server is available with more emphasis on serverspace. > > > Apply to 2.6.13 > http://ck.kolivas.org/patches/2.6/2.6.13/2.6.13-ck2/patch-2.6.13-ck2.bz2 > > or server version (no new version this release): > http://ck.kolivas.org/patches/2.6/2.6.13/2.6.13-ck1/patch-2.6.13-ck1-server.bz2 > > > web: > http://kernel.kolivas.org > all patches: > http://ck.kolivas.org/patches/ > Split patches available. > > > Changes: > > Added: > +vm-swap_prefetch-2.patch > As mentioned many times already, this code prefetches ram that has been > swapped out during idle periods. This is the latest version of the patch and > is a config option. I think this patch is missing an IFDEF or something (I'm not really a programmer, I just like to pretend). Anyway, I've tried building -ck2 without swap enabled, and it failed. Just to make sure, I make'd distclean, and I get the following: LD .tmp_vmlinux1 mm/built-in.o: In function `zone_watermark_ok': mm/page_alloc.c:763: undefined reference to `delay_prefetch' mm/built-in.o: In function `swap_setup': mm/swap.c:485: undefined reference to `prepare_prefetch' make: *** [.tmp_vmlinux1] Error 1 -- Adam Petaccia <[EMAIL PROTECTED]> signature.asc Description: This is a digitally signed message part
Re: [ck] 2.6.13-ck2
On Mon, 2005-09-05 at 23:44 +1000, Con Kolivas wrote: These are patches designed to improve system responsiveness and interactivity. It is configurable to any workload but the default ck* patch is aimed at the desktop and ck*-server is available with more emphasis on serverspace. Apply to 2.6.13 http://ck.kolivas.org/patches/2.6/2.6.13/2.6.13-ck2/patch-2.6.13-ck2.bz2 or server version (no new version this release): http://ck.kolivas.org/patches/2.6/2.6.13/2.6.13-ck1/patch-2.6.13-ck1-server.bz2 web: http://kernel.kolivas.org all patches: http://ck.kolivas.org/patches/ Split patches available. Changes: Added: +vm-swap_prefetch-2.patch As mentioned many times already, this code prefetches ram that has been swapped out during idle periods. This is the latest version of the patch and is a config option. I think this patch is missing an IFDEF or something (I'm not really a programmer, I just like to pretend). Anyway, I've tried building -ck2 without swap enabled, and it failed. Just to make sure, I make'd distclean, and I get the following: LD .tmp_vmlinux1 mm/built-in.o: In function `zone_watermark_ok': mm/page_alloc.c:763: undefined reference to `delay_prefetch' mm/built-in.o: In function `swap_setup': mm/swap.c:485: undefined reference to `prepare_prefetch' make: *** [.tmp_vmlinux1] Error 1 -- Adam Petaccia [EMAIL PROTECTED] signature.asc Description: This is a digitally signed message part
Re: [ck] 2.6.13-ck2
Oops, forgot the config file... On Tue, 2005-09-06 at 14:25 -0400, Adam Petaccia wrote: On Mon, 2005-09-05 at 23:44 +1000, Con Kolivas wrote: These are patches designed to improve system responsiveness and interactivity. It is configurable to any workload but the default ck* patch is aimed at the desktop and ck*-server is available with more emphasis on serverspace. Apply to 2.6.13 http://ck.kolivas.org/patches/2.6/2.6.13/2.6.13-ck2/patch-2.6.13-ck2.bz2 or server version (no new version this release): http://ck.kolivas.org/patches/2.6/2.6.13/2.6.13-ck1/patch-2.6.13-ck1-server.bz2 web: http://kernel.kolivas.org all patches: http://ck.kolivas.org/patches/ Split patches available. Changes: Added: +vm-swap_prefetch-2.patch As mentioned many times already, this code prefetches ram that has been swapped out during idle periods. This is the latest version of the patch and is a config option. I think this patch is missing an IFDEF or something (I'm not really a programmer, I just like to pretend). Anyway, I've tried building -ck2 without swap enabled, and it failed. Just to make sure, I make'd distclean, and I get the following: LD .tmp_vmlinux1 mm/built-in.o: In function `zone_watermark_ok': mm/page_alloc.c:763: undefined reference to `delay_prefetch' mm/built-in.o: In function `swap_setup': mm/swap.c:485: undefined reference to `prepare_prefetch' make: *** [.tmp_vmlinux1] Error 1 ___ [EMAIL PROTECTED] ck mailing list. Please reply-to-all when posting. If replying to an email please reply below the original message. http://bhhdoa.org.au/mailman/listinfo/ck -- Adam Petaccia [EMAIL PROTECTED] # # Automatically generated make config: don't edit # Linux kernel version: 2.6.13-ck2 # Tue Sep 6 14:14:18 2005 # CONFIG_X86=y CONFIG_MMU=y CONFIG_UID16=y CONFIG_GENERIC_ISA_DMA=y CONFIG_GENERIC_IOMAP=y # # Code maturity level options # CONFIG_EXPERIMENTAL=y CONFIG_CLEAN_COMPILE=y CONFIG_BROKEN_ON_SMP=y CONFIG_INIT_ENV_ARG_LIMIT=32 # # General setup # CONFIG_LOCALVERSION= # CONFIG_SWAP is not set CONFIG_SYSVIPC=y CONFIG_POSIX_MQUEUE=y # CONFIG_BSD_PROCESS_ACCT is not set CONFIG_SYSCTL=y # CONFIG_AUDIT is not set CONFIG_HOTPLUG=y CONFIG_KOBJECT_UEVENT=y CONFIG_IKCONFIG=y CONFIG_IKCONFIG_PROC=y CONFIG_EMBEDDED=y CONFIG_KALLSYMS=y # CONFIG_KALLSYMS_ALL is not set # CONFIG_KALLSYMS_EXTRA_PASS is not set CONFIG_PRINTK=y CONFIG_BUG=y CONFIG_BASE_FULL=y CONFIG_FUTEX=y CONFIG_EPOLL=y # CONFIG_CC_OPTIMIZE_FOR_SIZE is not set CONFIG_SHMEM=y CONFIG_CC_ALIGN_FUNCTIONS=64 CONFIG_CC_ALIGN_LABELS=0 CONFIG_CC_ALIGN_LOOPS=0 CONFIG_CC_ALIGN_JUMPS=0 # CONFIG_TINY_SHMEM is not set CONFIG_BASE_SMALL=0 # # Loadable module support # CONFIG_MODULES=y CONFIG_MODULE_UNLOAD=y # CONFIG_MODULE_FORCE_UNLOAD is not set CONFIG_OBSOLETE_MODPARM=y # CONFIG_MODVERSIONS is not set # CONFIG_MODULE_SRCVERSION_ALL is not set CONFIG_KMOD=y # # Processor type and features # CONFIG_X86_PC=y # CONFIG_X86_ELAN is not set # CONFIG_X86_VOYAGER is not set # CONFIG_X86_NUMAQ is not set # CONFIG_X86_SUMMIT is not set # CONFIG_X86_BIGSMP is not set # CONFIG_X86_VISWS is not set # CONFIG_X86_GENERICARCH is not set # CONFIG_X86_ES7000 is not set # CONFIG_M386 is not set # CONFIG_M486 is not set # CONFIG_M586 is not set # CONFIG_M586TSC is not set # CONFIG_M586MMX is not set # CONFIG_M686 is not set # CONFIG_MPENTIUMII is not set # CONFIG_MPENTIUMIII is not set # CONFIG_MPENTIUMM is not set # CONFIG_MPENTIUM4 is not set # CONFIG_MK6 is not set CONFIG_MK7=y # CONFIG_MK8 is not set # CONFIG_MCRUSOE is not set # CONFIG_MEFFICEON is not set # CONFIG_MWINCHIPC6 is not set # CONFIG_MWINCHIP2 is not set # CONFIG_MWINCHIP3D is not set # CONFIG_MGEODEGX1 is not set # CONFIG_MCYRIXIII is not set # CONFIG_MVIAC3_2 is not set # CONFIG_X86_GENERIC is not set CONFIG_X86_CMPXCHG=y CONFIG_X86_XADD=y CONFIG_X86_L1_CACHE_SHIFT=6 CONFIG_RWSEM_XCHGADD_ALGORITHM=y CONFIG_GENERIC_CALIBRATE_DELAY=y CONFIG_X86_WP_WORKS_OK=y CONFIG_X86_INVLPG=y CONFIG_X86_BSWAP=y CONFIG_X86_POPAD_OK=y CONFIG_X86_GOOD_APIC=y CONFIG_X86_INTEL_USERCOPY=y CONFIG_X86_USE_PPRO_CHECKSUM=y CONFIG_X86_USE_3DNOW=y CONFIG_HPET_TIMER=y CONFIG_HPET_EMULATE_RTC=y # CONFIG_SMP is not set CONFIG_PREEMPT_NONE=y # CONFIG_PREEMPT_VOLUNTARY is not set # CONFIG_PREEMPT is not set # CONFIG_X86_UP_APIC is not set CONFIG_X86_TSC=y # CONFIG_X86_MCE is not set # CONFIG_TOSHIBA is not set # CONFIG_I8K is not set # CONFIG_X86_REBOOTFIXUPS is not set # CONFIG_MICROCODE is not set # CONFIG_X86_MSR is not set # CONFIG_X86_CPUID is not set # # Firmware Drivers # # CONFIG_EDD is not set # CONFIG_NOHIGHMEM is not set CONFIG_HIGHMEM4G=y # CONFIG_HIGHMEM64G is not set CONFIG_HIGHMEM=y CONFIG_SELECT_MEMORY_MODEL=y CONFIG_FLATMEM_MANUAL=y # CONFIG_DISCONTIGMEM_MANUAL is not set # CONFIG_SPARSEMEM_MANUAL is not set CONFIG_FLATMEM=y CONFIG_FLAT_NODE_MEM_MAP=y # CONFIG_HIGHPTE is not set #