* Re: 2.6.6-rc3-mm2 (4KSTACK)
@ 2004-05-06 9:48 Sid Boyce
0 siblings, 0 replies; 61+ messages in thread
From: Sid Boyce @ 2004-05-06 9:48 UTC (permalink / raw)
To: linux-kernel
Not only does it not work, I've cratered two reiserfs installs using
4KSTACKS and the nvidia driver, once when I didn't know about the
problem and once when I forgot to reverse the patch. I now always check
my .config before I start the build. Nvidia like most outfits don't
react that swiftly to kernel changes.
Regards
Sid.
--
Sid Boyce .... Hamradio G3VBV and keen Flyer
Linux Only Shop.
^ permalink raw reply [flat|nested] 61+ messages in thread
[parent not found: <1Sq6O-4gJ-25@gated-at.bofh.it>]
* Re: 2.6.6-rc3-mm2 (4KSTACK)
@ 2004-05-06 9:12 h.verhagen
0 siblings, 0 replies; 61+ messages in thread
From: h.verhagen @ 2004-05-06 9:12 UTC (permalink / raw)
To: linux-kernel
No wonder the nvidia binary module doesn't work with 4K stacks. I'm wondered that it even works with 8KB stacks.
The module seems extremely stack hungry.
[harm@node-d-8d2e c]$ objdump -d /lib/modules/2.4.26/kernel/drivers/video/nvidia.o | ./checkstack.pl
0xb6ff3 _nv002427rm: sub $0x908,%esp (almost 4K !)
0x7ff93 _nv003775rm: sub $0x64c,%esp ( ~1-2K)
0x21fd3 _nv000899rm: sub $0x648,%esp
f53f: 81 ec 94 05 00 00 sub $0x594,%esp
_nv003402rm: sub $0x594,%esp
0x10247 _nv003354rm: sub $0x520,%esp
0x42633 _nv003333rm: sub $0x4a8,%esp
0x100bb _nv003353rm: sub $0x490,%esp
0x842ff _nv004811rm: sub $0x41c,%esp (1K from here)
Kind regards,
Harm
^ permalink raw reply [flat|nested] 61+ messages in thread
* Re: 2.6.6-rc3-mm2 (4KSTACK)
@ 2004-05-06 9:06 h.verhagen
0 siblings, 0 replies; 61+ messages in thread
From: h.verhagen @ 2004-05-06 9:06 UTC (permalink / raw)
To: linux-kernel
No wonder the module doesn't work with 4K stacks.
It wonders that it actually works with 8K stacks :)
The nividia module seems extremely stack hungry.
[harm@node-d-8d2e c]$ objdump -d /lib/modules/2.4.26/kernel/drivers/video/nvidia.o | ./checkstack.pl
0xb6ff3 _nv002427rm: sub $0x908,%esp (almost 4K !)
0x7ff93 _nv003775rm: sub $0x64c,%esp ( ~1-2K)
0x21fd3 _nv000899rm: sub $0x648,%esp
f53f: 81 ec 94 05 00 00 sub $0x594,%esp
_nv003402rm: sub $0x594,%esp
0x10247 _nv003354rm: sub $0x520,%esp
0x42633 _nv003333rm: sub $0x4a8,%esp
0x100bb _nv003353rm: sub $0x490,%esp
0x842ff _nv004811rm: sub $0x41c,%esp (1K from here)
Regards,
Harm
^ permalink raw reply [flat|nested] 61+ messages in thread
* 2.6.6-rc3-mm2
@ 2004-05-05 8:31 Andrew Morton
2004-05-05 11:12 ` 2.6.6-rc3-mm2 (4KSTACK) Dominik Karall
0 siblings, 1 reply; 61+ messages in thread
From: Andrew Morton @ 2004-05-05 8:31 UTC (permalink / raw)
To: linux-kernel
ftp://ftp.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.6-rc3/2.6.6-rc3-mm2/
- Lots of little fixes and updates. Nothing really major.
- The huge memory leak from 2.6.6-rc3-mm1 is fixed.
Changes since 2.6.6-rc3-mm2:
linus.patch
bk-acpi.patch
bk-agpgart.patch
bk-alsa.patch
bk-cifs.patch
bk-cpufreq.patch
bk-driver-core.patch
bk-drm.patch
bk-i2c.patch
bk-input.patch
bk-libata.patch
bk-netdev.patch
bk-ntfs.patch
bk-pci.patch
bk-scsi.patch
bk-usb.patch
Latest versions of various development trees
-cifs-build-fix.patch
-nfs-printk-warning-fix.patch
-efivars-sysfs-fix.patch
-dvbfix-adapter-module-removal-bug.patch
-s390-oprofile-config-cleanup.patch
-make-ikconfig-quiet.patch
-ppc64-shmget-translation-bugfix.patch
-aic7xxx-deadlock-fix.patch
-aic7xxx-section-fix.patch
-string_h-needs-compiler_h.patch
-new-set-of-input-patches-synaptics-cleanup.patch
-new-set-of-input-patches-synaptics-middle-button-support.patch
-new-set-of-input-patches-dont-change-max-proto.patch
-new-set-of-input-patches-atkbd-soften-accusation.patch
-new-set-of-input-patches-atkbd-trailing-whitespace.patch
-new-set-of-input-patches-atkbd-use-bitfields.patch
-new-set-of-input-patches-atkbd-timeout-complaints.patch
-new-set-of-input-patches-psmouse-rescan-on-hotplug.patch
-new-set-of-input-patches-psmouse-reconnect-after-error.patch
-new-set-of-input-patches-psmouse-add-protocol_handler.patch
-new-set-of-input-patches-psmouse-sliced-commands.patch
-new-set-of-input-patches-atkbd-reconnect-probe.patch
-new-set-of-input-patches-allow-disabling-psaux.patch
-new-set-of-input-patches-serio-whitespace.patch
-new-set-of-input-patches-serio-open-close-optional.patch
Merged
+page_mapping-race-fix.patch
Avoid a possible BUG in the rmap code.
+fealnx-bogon-fix.patch
Locking fix
+rmap-9-page_add_anon_rmap-bug-fix.patch
Fix a BUG in the rmap code
+rmap-anonhd-locking-fix.patch
Fix a race in the rmap code
+small-numa-api-fixups.patch
Fixes against the NUMA API
+vm_area_struct-size-comment.patch
+rmapc-comment-style-fixups.patch
+rmap-20-i_mmap_shared-into-i_mmap.patch
+rmap-21-try_to_unmap_one-mapcount.patch
+rmap-22-flush_dcache_mmap_lock.patch
+rmap-23-empty-flush_dcache_mmap_lock.patch
More VM/rmap work
+partial-prefetch-for-vma_prio_tree_next.patch
Might speed up the prio-tree code.
+fix-deadlock-in-journalled-quota-fix.patch
Fix fix-deadlock-in-journalled-quota.patch
+ppc-ppc64-cleanup-ppc970-cpu-initialization.patch
+benh-credits-update.patch
+ppc32-add-missing-dma_mapping_error.patch
ppc things
-selinux-inode-race-trap.patch
No longer needed
+sched-ppc64-sched-domain-support-fix.patch
Fix sched-ppc64-sched-domain-support.patch
+sched-kthread_stop_race_fix.patch
Fix a race in kthread_stop()
+fixes-in-32-bit-ioctl-emulation-code.patch
fs/compat.c locking fixes
+binfmt_misc-credentials-fixes-2.patch
Fixes against binfmt_misc-credentials.patch
-fix-acer-travelmate-360-interrupt-routing.patch
I was asked to drop this.
+ext3-reservation-bad-inode-fix.patch
ext3 reservation code fix
+autofs-locking-fix.patch
+autofs4-race-fix.patch
Fixes against the autofs4 patches
+ext3-error-handling-fixes.patch
Fix some error-path code in ext3/namei,c
+re-open-descriptors-closed-on-exec-by-selinux-to.patch
SELinux fix
+cyclades-maintainers-update.patch
MAINTAINERS update
+laptop-mode-mutt-noatime-doc-update.patch
Documentation
-bssprot.patch
-bssprot-sparc-fix.patch
-bssprot-cleanup.patch
-bssprot-more-fixes.patch
Dropped. These were causing pain and Wine userspace can work around it. We
should fix this though.
+shrink_slab-handle-GFP_NOFS-fix.patch
Fix ghastly VFS cache leak.
+reiserfs-remove-debugging-warning-from-block-allocator.patch
reiserfs tidyup.
+tdfxfbc-warning-fix.patch
Fix warnings in the tdfx driver
ia64-cpuhotplug-core_kernel_init.patch
ia64-cpuhotplug-init_removal.patch
ia64-cpuhotplug-sysfs_ia64.patch
ia64-cpuhotplug-irq_affinity_fix.patch
ia64-cpuhotplug-palinfo.patch
Updated
-ia64-cpuhotplug-hotcpu.patch
-ia64-cpuhotplug-cpu_present_map.patch
Dropped. ia64-cpuhotplug-cpu_present_map.patch interacts fatally with the
sched-domains code.
+cmpci-update.patch
Update the cmpci.c OSS driver
+i2o-subsystem-fixing-and-cleanup-for-26-i2o-config-cleanpatch.patch
+i2o-subsystem-fixing-and-cleanup-for-26-i2o-passthrupatch.patch
+i2o-subsystem-fixing-and-cleanup-for-26-i2o_block-cleanuppatch.patch
+i2o-subsystem-fixing-and-cleanup-for-26-i2o-64-bit-fixpatch.patch
+i2o-subsystem-fixing-and-cleanup-for-26-i2o-makefile-cleanuppatch.patch
i2o fixes/cleanups
+dentry-and-inode-cache-hash-algorithm-performance-changes.patch
Bettern hashing functions for the dentry and inode caches
+fix-mtd-suspend-resume.patch
PM fix in MTD
+remove-blk_queue_bounce-messages.patch
Kill some printks
+fix-deadlock-in-__create_workqueue-2.patch
Fix a deadlock in the workqueue code
+throttle-p4-thermal-warnings.patch
Less log output.
+i82365c-warning-fix.patch
Fix a warning
+allow-i386-to-reenable-interrupts-on-lock-contention.patch
re-enable interrupts while spinning in spin_lcok_irq() on ia32.
+make-4k-stacks-permanent.patch
Fill my inbox.
+worker_thread-race-fix.patch
Fix wakeup race in the workqueue code.
+force-config_regparm-to-y.patch
Remove the CONFIG_REGPARM option.
+kernel-syscalls-retval-fix.patch
+remove-errno-refs.patch
+ia64-remove-errno-refs.patch
Fiddle with kernel syscalls and remove the global `errno' variable. I
actually meant to drop this because we'll be doing it differently.
+warn-when-smp_call_function-is-called-with-interrupts-disabled.patch
smp_call_function() is deadlocky if the caller has disabled interrupts
+initio-ini-9x00u-uw-error-handling-in-26.patch
Fix a scsi driver
+fixup-68360-module-refcounting.patch
Fix module refcounting in this driver.
+missing-closing-n-in-printk.patch
Fix a printk.
+intermezzo-stack-reduction.patch
Reduce stack usage in intermezzo
+lance-racal-interlan-fix.patch
Fix the lance net driver for one type of NIC.
+gcc-340-fixes-for-266-rc3-x86_64-kernel.patch
Fix the x86_64 port for gcc-3.4
+fix-warn_on-on-xfs-module-unload.patch
prevent a warning when xfs.ko is unloaded.
+ppc64-use-generic-ipc-syscall-translation.patch
PPC64 code consolidation
+proc-sys-kernel-vermagic.patch
Add /proc/sys/kernel/vermagic so that package installers can work out how
the kernel was built (soliciting feedback on this one).
+ramdisk-size-warning-fix.patch
Fix an assembler warning
+cyclades-cleanups.patch
+cyclades-cleanups-cleanups.patch
Clean up the cyclades driver
+nforce-disconnect-fix.patch
Fix the nforce2 horrors.
+delete-posix-conformance-testing-by-unifix-message.patch
Kill another boot-time printk.
+jiffies-to-clockt-fix_a1.patch
Timekeeping accuracy fixes.
+readahead-private.patch
Prevent concurrent reads against the same fd from screwing with the
readahead state.
+static-define_per_cpu-vs-modules-2.patch
Work around relative address displacement problems on s390.
+introduce-asm--8253pith.patch
+use-pit_tick_rate-in-spkrc.patch
+use-clock_tick_rate.patch
Fiddle with the PIT code to make it more friendly to non-PC machines.
+netpoll-attributions.patch
Update the attributions in netpoll.c
+265-es7000-subarch-update-for-generic-arch.patch
Make es7000 a real subarch
+new-i2c-video-decoder-calls.patch
+new-i2c-video-decoder-calls-saa7111.patch
i2c cleanups/fixes
+get_thread_area-macros.patch
Fix the get_thread_area() macros
+update-documentation-mdtxt.patch
MD documentation update
+invalid-notify_changesymlink-in-nfsd.patch
Fix notofy_change() in knfsd.
+bfs-filesystem-read-past-the-end-of-dir.patch
BFS fix
+simplify-mqueue_inode_info-messages-allocation.patch
Fix a leak in the posix message queue code.
+filtered-wakeups-core.patch
+filtered-buffer_head-wakeups.patch
+filtered-buffer_head-wakeups-tweaks.patch
+wake-one-pg_locked-bh_lock-semantics.patch
+wake-one-pg_locked-bh_lock-semantics-tweaks.patch
More efficient sleeps and and wakeups, use them in the VFS.
All 332 patches:
linus.patch
page_mapping-race-fix.patch
page_mapping race fix
bk-acpi.patch
bk-agpgart.patch
bk-alsa.patch
bk-cifs.patch
bk-cpufreq.patch
bk-driver-core.patch
bk-drm.patch
bk-i2c.patch
bk-input.patch
bk-libata.patch
bk-netdev.patch
bk-ntfs.patch
bk-pci.patch
bk-scsi.patch
bk-usb.patch
mm.patch
add -mmN to EXTRAVERSION
frame-pointer-based-stack-dumps.patch
x86: stack dumps using frame pointers
frame-pointer-based-stack-dumps-tweaks.patch
frame-pointer-based-stack-dumps-tweaks
fealnx-bogon-fix.patch
fealnx.c spinlock fix
kgdb-ga.patch
kgdb stub for ia32 (George Anzinger's one)
kgdbL warning fix
kgdb buffer overflow fix
kgdbL warning fix
kgdb: CONFIG_DEBUG_INFO fix
x86_64 fixes
correct kgdb.txt Documentation link (against 2.6.1-rc1-mm2)
kgdb: fix for recent gcc
kgdb warning fixes
THREAD_SIZE fixes for kgdb
kgdboe-netpoll.patch
kgdb-over-ethernet via netpoll
kgdboe: fix configuration of MAC address
kgdb-x86_64-support.patch
kgdb-x86_64-support.patch for 2.6.2-rc1-mm3
kgdb-x86_64-warning-fixes
rmap-7-object-based-rmap.patch
rmap 7 object-based rmap
ia64-rmap-build-fix.patch
ia64 rmap build fix
rmap-8-unmap-nonlinear.patch
rmap 8 unmap nonlinear
slab-panic.patch
slab: consolidate panic code
rmap-9-remove-pte_chains.patch
rmap 9 remove pte_chains
rmap-9-page_add_anon_rmap-bug-fix.patch
page_add_anon_rmap BUG fix
rmap-10-add-anonmm-rmap.patch
rmap 10 add anonmm rmap
rmap-anonhd-locking-fix.patch
rmap anonhd locking fix
rmap-11-mremap-moves.patch
rmap 11 mremap moves
rmap-12-pgtable-remove-rmap.patch
rmap 12 pgtable remove rmap
rmap-13-include-asm-deletions.patch
rmap 13 include/asm deletions
i_shared_lock.patch
Convert i_shared_sem back to a spinlock
i_shared_lock fix 1
i_shared_lock fix 2
i_shared_lock mremap fix
rmap-14-i_shared_lock-fixes.patch
rmap 14: i_shared_lock fixes
numa-api-x86_64.patch
numa api: -64 support
numa api: Bitmap bugfix
numa-api-i386.patch
numa api: Add i386 support
numa-api-ia64.patch
numa api: Add IA64 support
numa-api-core.patch
numa api: Core NUMA API code
numa api: docs and policy_vma() locking fix
numa-api-core-tweaks
Some fixes for NUMA API
From: Matthew Dobson <colpatch@us.ibm.com>
Subject: [PATCH] include/linux/gfp.h cleanup for NUMA API
numa-api-core bitmap_clear fixes
mpol-in-copy_vma.patch
mpol in copy_vma
numa-api-core-slab-panic.patch
numa-api-core-slab-panic
numa-api-statistics-2.patch
Re-add NUMA API statistics
numa-api-vma-policy-hooks.patch
numa api: Add VMA hooks for policy
numa-api-vma-policy-hooks fix
numa-api-shared-memory-support.patch
numa api: Add shared memory support
numa-api-shared-memory-support-tweaks
small-numa-api-fixups.patch
small numa api fixups
numa-api-statistics.patch
numa api: Add statistics
numa-api-anon-memory-policy.patch
numa api: Add policy support to anonymous memory
rmap-15-vma_adjust.patch
rmap 15: vma_adjust
rmap-16-pretend-prio_tree.patch
rmap 16: pretend prio_tree
rmap-17-real-prio_tree.patch
rmap 17: real prio_tree
rmap-18-i_mmap_nonlinear.patch
rmap 18: i_mmap_nonlinear
rmap-19-arch-prio_tree.patch
rmap 19: arch prio_tree
vm_area_struct-size-comment.patch
vm_area_struct size comment
rmapc-comment-style-fixups.patch
rmap.c comment/style fixups
rmap-20-i_mmap_shared-into-i_mmap.patch
rmap 20 i_mmap_shared into i_mmap
rmap-21-try_to_unmap_one-mapcount.patch
rmap 21 try_to_unmap_one mapcount
rmap-22-flush_dcache_mmap_lock.patch
rmap 22 flush_dcache_mmap_lock
rmap-23-empty-flush_dcache_mmap_lock.patch
rmap 23 empty flush_dcache_mmap_lock
partial-prefetch-for-vma_prio_tree_next.patch
partial prefetch for vma_prio_tree_next
fix-deadlock-in-journalled-quota.patch
Fix deadlock in journalled quota
fix-deadlock-in-journalled-quota-fix.patch
fix-deadlock-in-journalled-quota fix
mips-update.patch
MIPS update
mips-fix-mips-26-fb-setup.patch
mips: fix 2.6 fb setup
mips-simplify-expression.patch
mips: Simplify expression
mips-newport-driver-fixes.patch
mips: newport driver fixes
mips-remove-video_type_sni_rm.patch
mips: remove VIDEO_TYPE_SNI_RM
mips-gbe-video-driver.patch
mips: GBE Video Driver
mips-add-missing-ip22-zilog-bit.patch
mips: add missing IP22 Zilog bit
mips-64-bit-mips-needs-compat-stuff.patch
mips: 64-bit MIPS needs compat stuff
mips-remove-dz-driver.patch
mips: remove dz driver
mips-sgiwd93-26-fixes-and-crapectomy.patch
mips: sgiwd93 2.6 fixes and crapectomy
must-fix.patch
must fix lists update
must fix list update
mustfix update
must-fix-update-5.patch
must-fix update
ppc-ppc64-cleanup-ppc970-cpu-initialization.patch
ppc/ppc64: Cleanup PPC970 CPU initialization
benh-credits-update.patch
Fix my address in CREDITS
ppc32-add-missing-dma_mapping_error.patch
ppc32: Add missing [pci_]dma_mapping_error()
ppc64-reloc_hide.patch
invalidate_inodes-speedup.patch
invalidate_inodes speedup
more invalidate_inodes speedup fixes
config_spinline.patch
uninline spinlocks for profiling accuracy.
pdflush-diag.patch
get_user_pages-handle-VM_IO.patch
fix get_user_pages() against mappings of /dev/mem
pci_set_power_state-might-sleep.patch
CONFIG_STANDALONE-default-to-n.patch
Make CONFIG_STANDALONE default to N
slab-leak-detector.patch
slab leak detector
mm/slab.c warning in cache_alloc_debugcheck_after
local_bh_enable-warning-fix.patch
Move-saved_command_line-to-init-mainc.patch
Move saved_command_line to init/main.c
sched-run_list-cleanup.patch
small scheduler cleanup
sched-find_busiest_node-resolution-fix.patch
sched: improved resolution in find_busiest_node
sched-domains.patch
sched: scheduler domain support
sched-domain-debugging.patch
sched_domain debugging
sched-domain-balancing-improvements.patch
scheduler domain balancing improvements
sched-sibling-map-to-cpumask.patch
sched: cpu_sibling_map to cpu_mask
sched-domains-i386-ht.patch
sched: implement domains for i386 HT
sched-no-drop-balance.patch
sched: handle inter-CPU jiffies skew
sched-directed-migration.patch
sched_balance_exec(): don't fiddle with the cpus_allowed mask
sched-group-power.patch
sched-group-power
sched-domains-use-cpu_possible_map.patch
sched_domains: use cpu_possible_map
sched-smt-nice-handling.patch
sched: SMT niceness handling
sched-local-load.patch
sched: add local load metrics
sched-process-migration-speedup.patch
Reduce TLB flushing during process migration
sched-trivial.patch
sched: trivial fixes, cleanups
sched-hotplug-cpu-sched_balance_exec-fix.patch
Hotplug CPU sched_balance_exec Fix
sched-wakebalance-fixes.patch
sched: wakeup balancing fixes
sched-imbalance-fix.patch
sched: fix imbalance calculations
sched-altix-tune1.patch
sched: altix tuning
sched-fix-activelb.patch
sched: oops fix
sched-ppc64-sched-domain-support.patch
ppc64: sched-domain support
sched-ppc64-sched-domain-support-fix.patch
ARCH_HAS_SCHED_WAKE_BALANCE doesnt exist
sched-domain-setup-lock.patch
sched: fix setup races
sched-minor-cleanups.patch
sched: minor cleanups
sched-inline-removals.patch
sched: uninlinings
sched-move-cold-task.patch
sched: move cold task in mysteriouis ways
sched-migrate-shortcut.patch
sched: add migration shortcut
sched-more-sync-wakeups.patch
sched: extend sync wakeups
sched-boot-fix.patch
sched: lock cpu_attach_domain for hotplug
sched-cleanups.patch
sched: cleanups
sched-damp-passive-balance.patch
sched: passive balancing damping
sched-cpu-load-cleanup.patch
sched: cpu load management cleanup
sched-balance-context.patch
sched: balance-on-clone
sched-less-idle.patch
sched: reduce idle time
sched-wake_up-speedup.patch
sched: micro-optimisation for wake_up
sched-smt-domain-race.patch
sched: Look at another CPU's domain
sched-move-migrate_all_tasks-to-cpu_dead-handling.patch
Move migrate_all_tasks to CPU_DEAD handling
sched-move-migrate_all_tasks-to-cpu_dead-handling-up-fix.patch
sched-move-migrate_all_tasks-to-cpu_dead-handling-up-fix
sched-move-migrate_all_tasks-to-cpu_dead-handling-unlikely-cleanup.patch
Move migrate_all_tasks to CPU_DEAD handling: unlikely() cleanup
sched-sys_sched_getaffinity_lock_cpu_hotplug.patch
sched_getaffinity vs cpu hotplug race fix
sched-kthread_stop_race_fix.patch
migration_thread() race fix
schedstats.patch
sched: scheduler statistics
fixes-in-32-bit-ioctl-emulation-code.patch
Fixes in 32 bit ioctl emulation code
cond_resched-might-sleep.patch
cond_resched() might sleep
fa311-mac-address-fix.patch
wrong mac address with netgear FA311 ethernet card
pid_max-fix.patch
Bug when setting pid_max > 32k
use-soft-float.patch
Use -msoft-float
non-readable-binaries.patch
Handle non-readable binfmt_misc executables
binfmt_misc-credentials.patch
binfmt_misc: improve calaulation of interpreter's credentials
binfmt_misc-credentials-fixes.patch
binfmt_misc-credentials cleanups and fixes
binfmt_misc-credentials-fixes-2.patch
More binfmt_misc-credentials fixes
poll-select-longer-timeouts.patch
poll()/select(): support longer timeouts
poll-select-range-check-fix.patch
poll()/select() range checking fix
poll-select-handle-large-timeouts.patch
poll()/select(): handle long timeouts
add-a-slab-for-ethernet.patch
Add a kmalloc slab for ethernet packets
siimage-update.patch
ide: update for siimage driver
nmi_watchdog-local-apic-fix.patch
Fix nmi_watchdog=2 and P4 HT
nmi-1-hz-2.patch
reduce NMI watchdog call frequency with local APIC.
shm-do_munmap-check.patch
stack-overflow-test-fix.patch
Fix stack overflow test for non-8k stacks
jbd-remove-livelock-avoidance.patch
JBD: remove livelock avoidance code in journal_dirty_data()
logitech-keyboard-fix.patch
2.6.5-rc2 keyboard breakage
stack-reductions-nfsread.patch
stack reductions: nfs read
speed-up-sata.patch
speed up SATA
advansys-fix.patch
advansys check_region() fix
journal_add_journal_head-debug.patch
journal_add_journal_head-debug
nfs-O_DIRECT-fixes.patch
NFS: O_DIRECT fixes
list_del-debug.patch
list_del debug check
oops-dump-preceding-code.patch
i386 oops output: dump preceding code
lockmeter.patch
lockmeter
ia64 CONFIG_LOCKMETER fix
cciss-logical-device-queues.patch
cciss: per logical device queues
sk98lin-buggy-vpd-workaround.patch
net/sk98lin: correct buggy VPD in ASUS MB
unplug-can-sleep.patch
unplug functions can sleep
firestream-warnings.patch
firestream warnings
ext3_rsv_cleanup.patch
ext3 block reservation patch set -- ext3 preallocation cleanup
ext3_rsv_base.patch
ext3 block reservation patch set -- ext3 block reservation
ext3 reservations: fix performance regression
ext3 block reservation patch set -- mount and ioctl feature
ext3 block reservation patch set -- dynamically increase reservation window
ext3-reservation-default-on.patch
ext3 reservation: default to on
ext3-reservation-ifdef-cleanup-patch.patch
ext3 reservation ifdef cleanup patch
ext3-reservation-max-window-size-check-patch.patch
ext3 reservation max window size check patch
ext3-reservation-file-ioctl-fix.patch
ext3 reservation file ioctl fix
ext3-lazy-discard-reservation-window-patch.patch
ext3 lazy discard reservation window patch
ext3-discard-reservation-in-last-iput-fix-patch.patch
ext3 discard reservation in last iput fix patch
ext3-discard-reservation-in-last-iput-fix-patch-fix.patch
Fix lazy reservation discard
ext3-reservation-bad-inode-fix.patch
ext3 reservations: bad_inode fix
ext3-bogus-enospc-fix.patch
Fix ext3 bogus ENOSPC
sched-in_sched_functions.patch
sched: in_sched_functions() cleanup
sysfs-d_fsdata-race-fix-2.patch
kobject/sysfs race fix
0-autofs4-2.6.0-signal-20040405.patch
autofs: dnotify + autofs may create signal/restart syscall loop
add-omitted-autofs4-super-block-field.patch
add omitted autofs4 super block field
1-autofs4-2.6.4-cleanup-20040405.patch
autofs: printk cleanups
2-autofs4-2.6.4-fill_super-20040405.patch
3-autofs4-2.6.0-bkl-20040405.patch
autofs: locking rework
4-autofs4-2.6.0-expire-20040405.patch
autofs: expiry refcount fixes
4-autofs4-260-expire-20040405-fix.patch
4-autofs4-2.6.0-expire-20040405 locking fix
4-autofs4-260-expire-20040405-fix-fix.patch
autofs expiry fix
4-autofs4-2.6.0-expire-20040405-may_umount_tree-cleanup.patch
autofs4: may_umount_tree() cleanup
5-autofs4-2.6.0-readdir-20040405.patch
autofs: readdir fixes
umount-after-bad-chdir.patch
fix umount after bad chdir
autofs4-fix-handling-of-chdir-and-chroot.patch
autofs4: fix handling of chdir and chroot
6-autofs4-2.6.0-may_umount-20040405.patch
autofs: add ioctl to query unmountability
7-autofs4-2.6.0-extra-20040405.patch
autofs: readdir futureproofing
autofs-locking-fix.patch
autofs locking fix
autofs4-race-fix.patch
autofs4 race fix
ext3-error-handling-fixes.patch
ext3 error handling fixes
re-open-descriptors-closed-on-exec-by-selinux-to.patch
selinux: reopen descriptors closed on exec to /dev/null
cyclades-maintainers-update.patch
cyclades MAINTAINERS update
laptop-mode-mutt-noatime-doc-update.patch
Laptop Mode doc update
as-increase-batch-expiry.patch
AS: increase batch expiry intervals
consolidate-sys32_readv-and-sys32_writev.patch
Consolidate sys32_readv and sys32_writev
consolidate-do_execve32.patch
Consolidate do_execve32
consolidate-sys32_select.patch
Consolidate sys32_select
consolidate-sys32_nfsservctl.patch
Consolidate sys32_nfsservctl
clean-up-asm-pgalloch-include.patch
Clean up asm/pgalloc.h include
clean-up-asm-pgalloch-include-2.patch
Clean up asm/pgalloc.h include
clean-up-asm-pgalloch-include-3.patch
Clean up asm/pgalloc.h include 3
ppc64-uninline-__pte_free_tlb.patch
ppc64: uninline __pte_free_tlb()
es7000-subarch-update-2.patch
es7000 subarch update
input-tsdev-fixes.patch
tsdev.c fixes
fix-scancode-keycode-scancode-conversion-for-265.patch
Fix scancode->keycode->scancode conversion
use-less-stack-in-ide_unregister.patch
use less stack in ide_unregister
psmouse-fix-mouse-hotplugging.patch
psmouse: fix mouse hotplugging
neomagic-driver-update.patch
Neomagic driver update.
neomagic-driver-update-fix.patch
neomagic-driver-update fix
kernel_ppc8xx_misc.patch
ppc32: ppc8xx build fixes
remove-bootsect_helper-and-a-comment-fix-iii.patch
Remove bootsect_helper and a comment fix
fealnx-mac-address-and-other-issues.patch
Fealnx. Mac address and other issues
remove-some-unused-variables-in-s2io.patch
remove some unused variables in s2io
new-version-of-early-cpu-detect.patch
New version of early CPU detect
new-version-of-early-cpu-detect-fix.patch
new-version-of-early-cpu-detect-fix
radeon-garbled-screen-fix.patch
radeonfb: fix garbled screen
writepage-retval-warning.patch
writepage-retval-warning
shrink_slab-handle-GFP_NOFS.patch
shrink_slab: improved handling of GFP_NOFS allocations
shrink_slab-handle-GFP_NOFS-fix.patch
shrink_slab-handle-GFP_NOFS-fix
fix-3c59xc-to-allow-3c905c-100bt-fd.patch
fix 3c59x.c to allow 3c905c 100bT-FD
use-dos_extended_partition.patch
partitioning cleanup: use DOS_EXTENDED_PARTITION
reiserfs-commit-default-fix.patch
From: Bart Samwel <bart@samwel.tk>
Subject: [PATCH] Reiserfs commit default fix
reiserfs-acl-mknod.patch
reiserfs: acl device node initialization
reiserfs-xattrs-04.patch
reiserfs: xattr support
reiserfs-acl-02.patch
reiserfs: ACL support
reiserfs-trusted-02.patch
reiserfs: support trusted xattrs
reiserfs-selinux-02.patch
reiserfs: selinux support
reiserfs-xattr-locking-02.patch
reiserfs: xattr locking fixes
reiserfs-quota.patch
reiserfs: quota support
reiserfs-permission.patch
reiserfs: xattr permission fix
reiserfs-warning.patch
reiserfs: add device info to diagnostic messages
reiserfs-group-alloc-9.patch
reiserfs: block allocator optimizations
reiserfs-remove-debugging-warning-from-block-allocator.patch
reiserfs: remove debugging warning from block allocator
reiserfs-group-alloc-9-build-fix.patch
reiserfs-group-alloc-9 build fix
reiserfs-search_reada-5.patch
reiserfs: btree readahead
reiserfs-data-logging-support.patch
reiserfs data logging support
problems-with-atkbd_command--atkbd_interrupt-interaction.patch
Problems with atkbd_command & atkbd_interrupt interaction
mptfusion-depends-on-scsi.patch
mptfusion depends on scsi
mark-config_mac_serial-drivers-macintosh-macserialc-as-broken.patch
Mark CONFIG_MAC_SERIAL (drivers/macintosh/macserial.c) as broken
radeon-fb-screen-corruption-fix.patch
radeonfb display corruption fix
tridentfbc-warning-fix.patch
video/tridentfb.c warning fix
hgafbc-warning-fix.patch
video/hgafb.c warning fix
tdfxfbc-warning-fix.patch
video/tdfxfb.c warning fix
imsttfbc-warning-fix.patch
video/imsttfb.c. warning fix
fbdev-logo-handling-fix.patch
fbdev: clean up logo handling
fbdev-redundant-prows-calculation-removal.patch
fbdev: remove redundant p->vrows calculation
fbdev-remove-redundant-local.patch
fbdev: remove redundant local
fbdev-access_align-default.patch
fbdev: set a default access_align value
fix-null-ptr-dereference-in-pm2fb_probe-2.patch
Fix NULL-ptr dereference in pm2fb_probe
virtual-fbdev-updates.patch
Virtual fbdev updates
vesa-fbdev-update.patch
Vesa Fbdev update
vesa-fbdev-update-fix.patch
Vesa Fbdev update fix
sis-agp-updates.patch
SIS AGP updates
new-asiliant-framebuffer-driver.patch
New Asiliant framebuffer driver.
fbcon-and-unimap.patch
Fix fbcon and unimap
videodev-handle-class_register-failure.patch
videodev: handle class_register() failure
8139too-suspend-fix.patch
8139too not running s3 suspend/resume pci fix
acpiphp_glue-oops-fix.patch
acpiphp_glue.c oops fix
clear_backing_dev_congested.patch
clear_baking_dev_congested
dpt_i2o.patch
Fix dpt_i2o
find_user-locking.patch
find_user-locking
improve-laptop-modes-block_dump-output.patch
Improve laptop mode's block_dump output
com90xx_message.patch
com90xx error message patch: check_region() gone
parport_doc_arg.patch
Kill a warning while making pdfdocs.
kernel-api-docs.patch
Kill some 'No description found...' warnings. (kernel-api.sgml)
allow-architectures-to-reenable-interrupts-on-contended-spinlocks.patch
Allow architectures to reenable interrupts on contended spinlocks
allow-architectures-to-reenable-interrupts-on-contended-spinlocks-fix.patch
allow-architectures-to-reenable-interrupts-on-contended-spinlocks-fix
only-print-tainted-message-once.patch
Only Print Taint Message Once
ia64-cpuhotplug-core_kernel_init.patch
oa64 cpu hotplug: core kernel initialisation
ia64-cpuhotplug-init_removal.patch
ia64 cpu hotplug: init section fixes
ia64-cpuhotplug-sysfs_ia64.patch
ia64 cpu hotplug: sysfs additions
ia64-cpuhotplug-irq_affinity_fix.patch
ia64 cpu hotplug: IRQ affinity work
ia64-cpuhotplug-palinfo.patch
ia64 cpu hotplug: /proc rework
blk_start_queue-use-kblockd.patch
blk_start_queue() should use kblockd
module-ref-counting-for-vt-console-drivers.patch
Module ref counting for vt console drivers
edd-follow-sysfs-convention-module_version-remove-dead-scsi-symlink.patch
EDD: follow sysfs convention, MODULE_VERSION, remove dead SCSI symlink
cmpci-update.patch
cmpci OSS driver update
i2o-subsystem-fixing-and-cleanup-for-26-i2o-config-cleanpatch.patch
I2O subsystem fixing and cleanup for 2.6 - i2o-config-clean.patch
i2o-subsystem-fixing-and-cleanup-for-26-i2o-passthrupatch.patch
I2O subsystem fixing and cleanup for 2.6 - i2o-passthru.patch
i2o-subsystem-fixing-and-cleanup-for-26-i2o_block-cleanuppatch.patch
I2O subsystem fixing and cleanup for 2.6 - i2o_block-cleanup.patch
i2o-subsystem-fixing-and-cleanup-for-26-i2o-64-bit-fixpatch.patch
I2O subsystem fixing and cleanup for 2.6 - i2o-64-bit-fix.patch
i2o-subsystem-fixing-and-cleanup-for-26-i2o-makefile-cleanuppatch.patch
I2O subsystem fixing and cleanup for 2.6 - i2o-makefile-cleanup.patch
dentry-and-inode-cache-hash-algorithm-performance-changes.patch
dentry and inode cache hash algorithm performance changes.
fix-mtd-suspend-resume.patch
From: Russell King <rmk@arm.linux.org.uk>
Subject: [MTD] Fix MTD suspend/resume
remove-blk_queue_bounce-messages.patch
remove blk_queue_bounce() printks
fix-deadlock-in-__create_workqueue-2.patch
a
throttle-p4-thermal-warnings.patch
throttle P4 thermal warnings
i82365c-warning-fix.patch
pcmcia/i82365.c warning fix
allow-i386-to-reenable-interrupts-on-lock-contention.patch
Allow i386 to reenable interrupts on lock contention
make-4k-stacks-permanent.patch
make-4k-stacks-permanent
worker_thread-race-fix.patch
worker_thread-race-fix
force-config_regparm-to-y.patch
Force CONFIG_REGPARM to `y'
kernel-syscalls-retval-fix.patch
a
remove-errno-refs.patch
remove-errno-refs
ia64-remove-errno-refs.patch
ia64-remove-errno-refs
warn-when-smp_call_function-is-called-with-interrupts-disabled.patch
Warn when smp_call_function() is called with interrupts disabled
initio-ini-9x00u-uw-error-handling-in-26.patch
Initio INI-9X00U/UW error handling
fixup-68360-module-refcounting.patch
fixup 68360 module refcounting
missing-closing-n-in-printk.patch
missing closing n in printk
intermezzo-stack-reduction.patch
intermezzos stack usage reduction
lance-racal-interlan-fix.patch
lance.c: fix for card with signature 0x52 0x49
gcc-340-fixes-for-266-rc3-x86_64-kernel.patch
gcc-3.4.0 fixes for 2.6.6-rc3 x86_64 kernel
fix-warn_on-on-xfs-module-unload.patch
fix WARN_ON on XFS module unload
ppc64-use-generic-ipc-syscall-translation.patch
ppc64: use generic ipc syscall translation
proc-sys-kernel-vermagic.patch
add /proc/sys/kernel/vermagic
ramdisk-size-warning-fix.patch
fix ramdisk size assembler warning
cyclades-cleanups.patch
cyclades cleanups
cyclades-cleanups-cleanups.patch
cyclades cleanups cleanups
nforce-disconnect-fix.patch
nforce2 C1 halt disconnect fix
delete-posix-conformance-testing-by-unifix-message.patch
delete "POSIX conformance testing by UNIFIX" message
jiffies-to-clockt-fix_a1.patch
jiffies-to-clockt fix
readahead-private.patch
hack2
static-define_per_cpu-vs-modules-2.patch
static DEFINE_PER_CPU vs. modules
introduce-asm--8253pith.patch
CLOCK_TICK_RATE: introduce asm-*/8253pit.h, #define PIT_TICK_RATE constant.
use-pit_tick_rate-in-spkrc.patch
CLOCK_TICK_RATE: use PIT_TICK_RATE in *spkr.c
use-clock_tick_rate.patch
CLOCK_TICK_RATE: use CLOCK_TICK_RATE
netpoll-attributions.patch
netpoll attributions
265-es7000-subarch-update-for-generic-arch.patch
es7000 subarch update for generic arch
new-i2c-video-decoder-calls.patch
new i2c video decoder calls
new-i2c-video-decoder-calls-saa7111.patch
new i2c video decoder calls: saa7111 driver
get_thread_area-macros.patch
get_thread_area macro fixes
update-documentation-mdtxt.patch
update Documentation/md.txt
invalid-notify_changesymlink-in-nfsd.patch
Invalid notify_change(symlink, [ATTR_MODE]) in nfsd
bfs-filesystem-read-past-the-end-of-dir.patch
bfs filesystem read past the end of dir
simplify-mqueue_inode_info-messages-allocation.patch
simplify mqueue_inode_info->messages allocation
filtered-wakeups-core.patch
filtered wakeups: core
filtered-buffer_head-wakeups.patch
filtered buffer_head wakeups
filtered-buffer_head-wakeups-tweaks.patch
filtered-buffer_head-wakeups-tweaks
wake-one-pg_locked-bh_lock-semantics.patch
wake-one PG_locked/BH_Lock semantics
wake-one-pg_locked-bh_lock-semantics-tweaks.patch
wake-one-pg_locked-bh_lock-semantics-tweaks
^ permalink raw reply [flat|nested] 61+ messages in thread
* Re: 2.6.6-rc3-mm2 (4KSTACK)
2004-05-05 8:31 2.6.6-rc3-mm2 Andrew Morton
@ 2004-05-05 11:12 ` Dominik Karall
2004-05-05 11:10 ` Ralf Hildebrandt
` (4 more replies)
0 siblings, 5 replies; 61+ messages in thread
From: Dominik Karall @ 2004-05-05 11:12 UTC (permalink / raw)
To: Andrew Morton, Linux Kernel ML
On Wednesday 05 May 2004 10:31, you wrote:
> +make-4k-stacks-permanent.patch
>
> Fill my inbox.
Hi Andrew!
Is there any reason why this patch was applied? Because NVidia users can't
work with the original drivers now without removing this patch every time.
greets Dominik
^ permalink raw reply [flat|nested] 61+ messages in thread* Re: 2.6.6-rc3-mm2 (4KSTACK)
2004-05-05 11:12 ` 2.6.6-rc3-mm2 (4KSTACK) Dominik Karall
@ 2004-05-05 11:10 ` Ralf Hildebrandt
2004-05-05 11:13 ` Jan-Benedict Glaw
` (3 subsequent siblings)
4 siblings, 0 replies; 61+ messages in thread
From: Ralf Hildebrandt @ 2004-05-05 11:10 UTC (permalink / raw)
To: Linux Kernel ML
* Dominik Karall <dominik.karall@gmx.net>:
> On Wednesday 05 May 2004 10:31, you wrote:
> > +make-4k-stacks-permanent.patch
> >
> > Fill my inbox.
>
> Hi Andrew!
>
> Is there any reason why this patch was applied? Because NVidia users can't
> work with the original drivers now without removing this patch every time.
Yes, this really sucks (you can choose which "this" I mean)
--
Ralf Hildebrandt (Im Auftrag des Referat V a) Ralf.Hildebrandt@charite.de
Charite - Universitätsmedizin Berlin Tel. +49 (0)30-450 570-155
Gemeinsame Einrichtung von FU- und HU-Berlin Fax. +49 (0)30-450 570-916
IT-Zentrum Standort Campus Mitte AIM. ralfpostfix
^ permalink raw reply [flat|nested] 61+ messages in thread* Re: 2.6.6-rc3-mm2 (4KSTACK)
2004-05-05 11:12 ` 2.6.6-rc3-mm2 (4KSTACK) Dominik Karall
2004-05-05 11:10 ` Ralf Hildebrandt
@ 2004-05-05 11:13 ` Jan-Benedict Glaw
2004-05-05 11:24 ` Arjan van de Ven
` (2 subsequent siblings)
4 siblings, 0 replies; 61+ messages in thread
From: Jan-Benedict Glaw @ 2004-05-05 11:13 UTC (permalink / raw)
To: Linux Kernel ML
[-- Attachment #1: Type: text/plain, Size: 868 bytes --]
On Wed, 2004-05-05 13:12:30 +0200, Dominik Karall <dominik.karall@gmx.net>
wrote in message <200405051312.30626.dominik.karall@gmx.net>:
> On Wednesday 05 May 2004 10:31, you wrote:
> > +make-4k-stacks-permanent.patch
> >
> > Fill my inbox.
>
> Is there any reason why this patch was applied? Because NVidia users can't
> work with the original drivers now without removing this patch every time.
Wrong place to ask:) Go, ask NVidia for a solution. Their driver would
long be working with 4K stacks if they had open-sourced it...
MfG, JBG
--
Jan-Benedict Glaw jbglaw@lug-owl.de . +49-172-7608481
"Eine Freie Meinung in einem Freien Kopf | Gegen Zensur | Gegen Krieg
fuer einen Freien Staat voll Freier Bürger" | im Internet! | im Irak!
ret = do_actions((curr | FREE_SPEECH) & ~(NEW_COPYRIGHT_LAW | DRM | TCPA));
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 61+ messages in thread* Re: 2.6.6-rc3-mm2 (4KSTACK)
2004-05-05 11:12 ` 2.6.6-rc3-mm2 (4KSTACK) Dominik Karall
2004-05-05 11:10 ` Ralf Hildebrandt
2004-05-05 11:13 ` Jan-Benedict Glaw
@ 2004-05-05 11:24 ` Arjan van de Ven
2004-05-05 11:30 ` Andrew Morton
2004-05-05 18:22 ` Valdis.Kletnieks
4 siblings, 0 replies; 61+ messages in thread
From: Arjan van de Ven @ 2004-05-05 11:24 UTC (permalink / raw)
To: Dominik Karall; +Cc: Andrew Morton, Linux Kernel ML
[-- Attachment #1: Type: text/plain, Size: 367 bytes --]
On Wed, 2004-05-05 at 13:12, Dominik Karall wrote:
> On Wednesday 05 May 2004 10:31, you wrote:
> > +make-4k-stacks-permanent.patch
> >
> > Fill my inbox.
>
> Hi Andrew!
>
> Is there any reason why this patch was applied? Because NVidia users
nvidia users can use the nv driver instead? And/Or ask the nvidia binary
only people for a fixed driver ?
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 61+ messages in thread
* Re: 2.6.6-rc3-mm2 (4KSTACK)
2004-05-05 11:12 ` 2.6.6-rc3-mm2 (4KSTACK) Dominik Karall
` (2 preceding siblings ...)
2004-05-05 11:24 ` Arjan van de Ven
@ 2004-05-05 11:30 ` Andrew Morton
2004-05-05 12:09 ` Rene Herman
` (2 more replies)
2004-05-05 18:22 ` Valdis.Kletnieks
4 siblings, 3 replies; 61+ messages in thread
From: Andrew Morton @ 2004-05-05 11:30 UTC (permalink / raw)
To: Dominik Karall; +Cc: linux-kernel
Dominik Karall <dominik.karall@gmx.net> wrote:
>
> On Wednesday 05 May 2004 10:31, you wrote:
> > +make-4k-stacks-permanent.patch
> >
> > Fill my inbox.
>
> Hi Andrew!
>
> Is there any reason why this patch was applied? Because NVidia users can't
> work with the original drivers now without removing this patch every time.
>
We need to push this issue along quickly. The single-page stack generally
gives us a better kernel and having the stack size configurable creates
pain.
^ permalink raw reply [flat|nested] 61+ messages in thread* Re: 2.6.6-rc3-mm2 (4KSTACK)
2004-05-05 11:30 ` Andrew Morton
@ 2004-05-05 12:09 ` Rene Herman
2004-05-05 16:47 ` Steve Lord
2004-05-05 20:31 ` Bill Davidsen
2 siblings, 0 replies; 61+ messages in thread
From: Rene Herman @ 2004-05-05 12:09 UTC (permalink / raw)
To: Andrew Morton; +Cc: linux-kernel
[-- Attachment #1: Type: text/plain, Size: 265 bytes --]
Andrew Morton wrote:
> We need to push this issue along quickly. The single-page stack generally
> gives us a better kernel and having the stack size configurable creates
> pain.
Hi. No idea if you want this. Not seeing 4KSTACKS in there made me recheck.
Rene.
[-- Attachment #2: linux-2.6.6-rc3-mm2_vermagic-4kstacks.diff --]
[-- Type: text/plain, Size: 456 bytes --]
# restore 4KSTACKS to VERMAGIC
--- linux-2.6.6-rc3-mm2/include/asm-i386/module.h.orig 2004-05-05 13:51:29.000000000 +0200
+++ linux-2.6.6-rc3-mm2/include/asm-i386/module.h 2004-05-05 13:52:26.000000000 +0200
@@ -60,11 +60,7 @@
#define MODULE_REGPARM ""
#endif
-#ifdef CONFIG_4KSTACKS
#define MODULE_STACKSIZE "4KSTACKS "
-#else
-#define MODULE_STACKSIZE ""
-#endif
#define MODULE_ARCH_VERMAGIC MODULE_PROC_FAMILY MODULE_REGPARM MODULE_STACKSIZE
^ permalink raw reply [flat|nested] 61+ messages in thread
* Re: 2.6.6-rc3-mm2 (4KSTACK)
2004-05-05 11:30 ` Andrew Morton
2004-05-05 12:09 ` Rene Herman
@ 2004-05-05 16:47 ` Steve Lord
2004-05-05 18:48 ` Felipe Alfaro Solana
` (2 more replies)
2004-05-05 20:31 ` Bill Davidsen
2 siblings, 3 replies; 61+ messages in thread
From: Steve Lord @ 2004-05-05 16:47 UTC (permalink / raw)
To: Andrew Morton; +Cc: Dominik Karall, linux-kernel
Andrew Morton wrote:
> Dominik Karall <dominik.karall@gmx.net> wrote:
>
>>On Wednesday 05 May 2004 10:31, you wrote:
>>
>>>+make-4k-stacks-permanent.patch
>>>
>>> Fill my inbox.
>>
>>Hi Andrew!
>>
>>Is there any reason why this patch was applied? Because NVidia users can't
>>work with the original drivers now without removing this patch every time.
>>
>
>
> We need to push this issue along quickly. The single-page stack generally
> gives us a better kernel and having the stack size configurable creates
> pain.
Is it less pain than making something like a memory allocation which comes
out of a deep stack? Say, nfs server -> filesystem -> lvm/raid -> fiber channel,
which itself does something like a writepage into an nfs filesystem and ends
up in the networking stack? OK, getting back into the filesystem on a
memory allocation from the block layer should not happen, but you could
certainly be down in the bowels of the first filesystem when this happens.
There are other combinations which worry me. I do wonder how close to the
edge some of these are living now and cutting them off at the knees, stack
wise, is going to bite later. How many folks run the mm kernel in production
server environments?
Maybe there should be a competition to see how convoluted a stack you can
generate out of the kernel ;-)
Steve
^ permalink raw reply [flat|nested] 61+ messages in thread* Re: 2.6.6-rc3-mm2 (4KSTACK)
2004-05-05 16:47 ` Steve Lord
@ 2004-05-05 18:48 ` Felipe Alfaro Solana
2004-05-05 19:51 ` Arjan van de Ven
2004-05-06 17:44 ` Max Valdez
2 siblings, 0 replies; 61+ messages in thread
From: Felipe Alfaro Solana @ 2004-05-05 18:48 UTC (permalink / raw)
To: Steve Lord; +Cc: Andrew Morton, Dominik Karall, Kernel Mailinglist
On Wed, 2004-05-05 at 18:47, Steve Lord wrote:
> There are other combinations which worry me. I do wonder how close to the
> edge some of these are living now and cutting them off at the knees, stack
> wise, is going to bite later. How many folks run the mm kernel in production
> server environments?
Me... Although the servers aren't critical. However, I know I'm a
minority...
^ permalink raw reply [flat|nested] 61+ messages in thread
* Re: 2.6.6-rc3-mm2 (4KSTACK)
2004-05-05 16:47 ` Steve Lord
2004-05-05 18:48 ` Felipe Alfaro Solana
@ 2004-05-05 19:51 ` Arjan van de Ven
2004-05-05 19:56 ` Steve Lord
2004-05-05 19:59 ` Arjan van de Ven
2004-05-06 17:44 ` Max Valdez
2 siblings, 2 replies; 61+ messages in thread
From: Arjan van de Ven @ 2004-05-05 19:51 UTC (permalink / raw)
To: Steve Lord; +Cc: Andrew Morton, Dominik Karall, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 1104 bytes --]
> Is it less pain than making something like a memory allocation which comes
> out of a deep stack? Say, nfs server -> filesystem -> lvm/raid -> fiber channel,
> which itself does something like a writepage into an nfs filesystem and ends
> up in the networking stack? OK, getting back into the filesystem on a
> memory allocation from the block layer should not happen, but you could
> certainly be down in
it's not really much different than the 2.4 kernel already has.
In 2.4 you have a 8Kb stack of which
First 1600 bytes (+/-) are for the task struct
about 4Kb of user context stack
>= 2Kb stack which is needed for irq context (both soft and hard)
In 2.6 with this patch you have
32 bytes for thread info
4Kb minus 32 bytes for context stack
SEPARATE softirq stack of 4K
SEPARATE hardirq stack of 4K
so in a way you have MORE stack space than in 2.4.
Now I'll fully admit the 2Kb is somewhat of a stochast, you only hit it
if you have iptable rules and 2 nic irq's arriving on the same cpu at an
unfortionate moment, but that doesn't mean it's a safe situation.
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 61+ messages in thread
* Re: 2.6.6-rc3-mm2 (4KSTACK)
2004-05-05 19:51 ` Arjan van de Ven
@ 2004-05-05 19:56 ` Steve Lord
2004-05-05 19:59 ` Arjan van de Ven
1 sibling, 0 replies; 61+ messages in thread
From: Steve Lord @ 2004-05-05 19:56 UTC (permalink / raw)
To: arjanv; +Cc: Andrew Morton, Dominik Karall, linux-kernel
Arjan van de Ven wrote:
>>Is it less pain than making something like a memory allocation which comes
>>out of a deep stack? Say, nfs server -> filesystem -> lvm/raid -> fiber channel,
>>which itself does something like a writepage into an nfs filesystem and ends
>>up in the networking stack? OK, getting back into the filesystem on a
>>memory allocation from the block layer should not happen, but you could
>>certainly be down in
>
>
> it's not really much different than the 2.4 kernel already has.
> In 2.4 you have a 8Kb stack of which
>
> First 1600 bytes (+/-) are for the task struct
> about 4Kb of user context stack
>
>>= 2Kb stack which is needed for irq context (both soft and hard)
>
>
> In 2.6 with this patch you have
>
> 32 bytes for thread info
> 4Kb minus 32 bytes for context stack
> SEPARATE softirq stack of 4K
> SEPARATE hardirq stack of 4K
>
> so in a way you have MORE stack space than in 2.4.
>
> Now I'll fully admit the 2Kb is somewhat of a stochast, you only hit it
> if you have iptable rules and 2 nic irq's arriving on the same cpu at an
> unfortionate moment, but that doesn't mean it's a safe situation.
>
I agree with that, but that combination had a heck of a lot of soak time
on it. This stack crunching exercise is happening fairly early on in a
stable kernel series, that makes me nervous. A lot of new code showed up
in the meantime during 2.5 development which changed many of these
code paths.
You can do static code analysis and say which functions are stack hogs and
rework them, but the dynamic analysis is really hard to do for all possibly
combinations. Doing the dynamic analysis on someones production fileserver may
not be the wisest move ever made.
Steve
^ permalink raw reply [flat|nested] 61+ messages in thread
* Re: 2.6.6-rc3-mm2 (4KSTACK)
2004-05-05 19:51 ` Arjan van de Ven
2004-05-05 19:56 ` Steve Lord
@ 2004-05-05 19:59 ` Arjan van de Ven
1 sibling, 0 replies; 61+ messages in thread
From: Arjan van de Ven @ 2004-05-05 19:59 UTC (permalink / raw)
To: Steve Lord; +Cc: Andrew Morton, Dominik Karall, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 252 bytes --]
>
> Now I'll fully admit the 2Kb is somewhat of a stochast, you only hit it
> if you have iptable rules and 2 nic irq's arriving on the same cpu at an
> unfortionate moment, but that doesn't mean it's a safe situation.
s/safe/safer than 2.6/
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 61+ messages in thread
* Re: 2.6.6-rc3-mm2 (4KSTACK)
2004-05-05 16:47 ` Steve Lord
2004-05-05 18:48 ` Felipe Alfaro Solana
2004-05-05 19:51 ` Arjan van de Ven
@ 2004-05-06 17:44 ` Max Valdez
2 siblings, 0 replies; 61+ messages in thread
From: Max Valdez @ 2004-05-06 17:44 UTC (permalink / raw)
To: linux-kernel
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I do
and Ihave nvidia video card :-), last couple of week been running 2.6.5
because of the problem with the module nvidia.o and teh 4STACK thing
But as soon as I get to compile the new mm kernel, and reboot, will continue
to work on a mm like the last months.
Actually I've been using mm kernels most of the time since AC patches stoped
when Alan left to his Ph.D., or what ever he's doing right now.
Max
- --
Linux garaged 2.6.5-rc2-mm3 #1 Fri Mar 26 11:07:16 CST 2004 i686 Intel(R)
Pentium(R) 4 CPU 2.80GHz GenuineIntel GNU/Linux
- -----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GS/S d- s: a-29 C++(+++) ULAHI+++ P+ L++>+++ E--- W++ N* o-- K- w++++ O- M--
V-- PS+ PE Y-- PGP++ t- 5- X+ R tv++ b+ DI+++ D- G++ e++ h+ r+ z**
- ------END GEEK CODE BLOCK------
gpg-key: http://garaged.homeip.net/gpg-key.txt
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
iD8DBQFAmnmNNNkpVEFxW78RAm+5AJ0c5/U5nmrzFFh9aS0p3iGBcwZVlgCdGMx9
1CwtWd5W01omEDfWO6iHpVk=
=KM7C
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 61+ messages in thread
* Re: 2.6.6-rc3-mm2 (4KSTACK)
2004-05-05 11:30 ` Andrew Morton
2004-05-05 12:09 ` Rene Herman
2004-05-05 16:47 ` Steve Lord
@ 2004-05-05 20:31 ` Bill Davidsen
2004-05-05 23:04 ` Bartlomiej Zolnierkiewicz
2004-05-06 10:09 ` Helge Hafting
2 siblings, 2 replies; 61+ messages in thread
From: Bill Davidsen @ 2004-05-05 20:31 UTC (permalink / raw)
To: linux-kernel
Andrew Morton wrote:
> Dominik Karall <dominik.karall@gmx.net> wrote:
>
>>On Wednesday 05 May 2004 10:31, you wrote:
>>
>>>+make-4k-stacks-permanent.patch
>>>
>>> Fill my inbox.
>>
>>Hi Andrew!
>>
>>Is there any reason why this patch was applied? Because NVidia users can't
>>work with the original drivers now without removing this patch every time.
>>
>
>
> We need to push this issue along quickly. The single-page stack generally
> gives us a better kernel and having the stack size configurable creates
> pain.
Add my voice to those who don't think 4k stacks are a good idea as a
default, they break some things and seem to leave other paths (as others
have noted) on the edge. I'm not sure what you have in mind as a "better
kernel" but I'd rather have a worse kernel and not have to check 4k
stack as a possible problem before looking at other things if I get bad
behaviour.
Reliability first, performance later. We've lived with the config for a
while, pain there is better than pain at runtime.
--
-bill davidsen (davidsen@tmr.com)
"The secret to procrastination is to put things off until the
last possible moment - but no longer" -me
^ permalink raw reply [flat|nested] 61+ messages in thread* Re: 2.6.6-rc3-mm2 (4KSTACK)
2004-05-05 20:31 ` Bill Davidsen
@ 2004-05-05 23:04 ` Bartlomiej Zolnierkiewicz
2004-05-06 12:55 ` Norberto Bensa
2004-05-09 17:00 ` Bill Davidsen
2004-05-06 10:09 ` Helge Hafting
1 sibling, 2 replies; 61+ messages in thread
From: Bartlomiej Zolnierkiewicz @ 2004-05-05 23:04 UTC (permalink / raw)
To: Bill Davidsen; +Cc: linux-kernel
On Wednesday 05 of May 2004 22:31, Bill Davidsen wrote:
> Andrew Morton wrote:
> > Dominik Karall <dominik.karall@gmx.net> wrote:
> >>On Wednesday 05 May 2004 10:31, you wrote:
> >>>+make-4k-stacks-permanent.patch
> >>>
> >>> Fill my inbox.
> >>
> >>Hi Andrew!
> >>
> >>Is there any reason why this patch was applied? Because NVidia users
> >> can't work with the original drivers now without removing this patch
> >> every time.
> >
> > We need to push this issue along quickly. The single-page stack
> > generally gives us a better kernel and having the stack size configurable
> > creates pain.
>
> Add my voice to those who don't think 4k stacks are a good idea as a
> default, they break some things and seem to leave other paths (as others
> have noted) on the edge. I'm not sure what you have in mind as a "better
> kernel" but I'd rather have a worse kernel and not have to check 4k
> stack as a possible problem before looking at other things if I get bad
> behaviour.
>
> Reliability first, performance later. We've lived with the config for a
> while, pain there is better than pain at runtime.
Opposite opinion here.
If you want 100% reliability you shouldn't use -mm in the first place.
Making 4kb stacks default in -mm is very good idea so it will get necessary
testing and fixing before being integrated into mainline.
Please also note that users of binary only modules always have choice:
- new kernels without binary only modules
- old kernels with binary only modules
It is really that simple.
Regards,
Bartlomiej
^ permalink raw reply [flat|nested] 61+ messages in thread
* Re: 2.6.6-rc3-mm2 (4KSTACK)
2004-05-05 23:04 ` Bartlomiej Zolnierkiewicz
@ 2004-05-06 12:55 ` Norberto Bensa
2004-05-06 13:33 ` Bartlomiej Zolnierkiewicz
2004-05-09 17:00 ` Bill Davidsen
1 sibling, 1 reply; 61+ messages in thread
From: Norberto Bensa @ 2004-05-06 12:55 UTC (permalink / raw)
To: Bartlomiej Zolnierkiewicz; +Cc: Bill Davidsen, linux-kernel
Bartlomiej Zolnierkiewicz wrote:
> Making 4kb stacks default in -mm is very good idea so it will get necessary
> testing and fixing before being integrated into mainline.
Then let us test with _AND_ without 4KSTACKS.
I love the -mm three, but I use a nvidia GFX card too. Making 4KSTACkS
permanent excludes me from more testing.
Best regards,
Norberto
^ permalink raw reply [flat|nested] 61+ messages in thread
* Re: 2.6.6-rc3-mm2 (4KSTACK)
2004-05-06 12:55 ` Norberto Bensa
@ 2004-05-06 13:33 ` Bartlomiej Zolnierkiewicz
2004-05-06 18:47 ` Norberto Bensa
0 siblings, 1 reply; 61+ messages in thread
From: Bartlomiej Zolnierkiewicz @ 2004-05-06 13:33 UTC (permalink / raw)
To: Norberto Bensa; +Cc: Bill Davidsen, linux-kernel
On Thursday 06 of May 2004 14:55, Norberto Bensa wrote:
> Bartlomiej Zolnierkiewicz wrote:
> > Making 4kb stacks default in -mm is very good idea so it will get
> > necessary testing and fixing before being integrated into mainline.
>
> Then let us test with _AND_ without 4KSTACKS.
You are free to remove this patch from your kernel. 8)
> I love the -mm three, but I use a nvidia GFX card too. Making 4KSTACkS
> permanent excludes me from more testing.
We currently need testing for 4KSTACKS. Please also note that your testing
with binary modules loaded has limited value as you should always reproduce
problem w/o binary modules before reporting problem.
Regards,
Bartlomiej
^ permalink raw reply [flat|nested] 61+ messages in thread
* Re: 2.6.6-rc3-mm2 (4KSTACK)
2004-05-05 23:04 ` Bartlomiej Zolnierkiewicz
2004-05-06 12:55 ` Norberto Bensa
@ 2004-05-09 17:00 ` Bill Davidsen
2004-05-09 18:25 ` Bartlomiej Zolnierkiewicz
1 sibling, 1 reply; 61+ messages in thread
From: Bill Davidsen @ 2004-05-09 17:00 UTC (permalink / raw)
To: linux-kernel
Bartlomiej Zolnierkiewicz wrote:
> On Wednesday 05 of May 2004 22:31, Bill Davidsen wrote:
>
>>Andrew Morton wrote:
>>
>>>Dominik Karall <dominik.karall@gmx.net> wrote:
>>>
>>>>On Wednesday 05 May 2004 10:31, you wrote:
>>>>
>>>>>+make-4k-stacks-permanent.patch
>>>>>
>>>>>Fill my inbox.
>>>>
>>>>Hi Andrew!
>>>>
>>>>Is there any reason why this patch was applied? Because NVidia users
>>>>can't work with the original drivers now without removing this patch
>>>>every time.
>>>
>>>We need to push this issue along quickly. The single-page stack
>>>generally gives us a better kernel and having the stack size configurable
>>>creates pain.
>>
>>Add my voice to those who don't think 4k stacks are a good idea as a
>>default, they break some things and seem to leave other paths (as others
>>have noted) on the edge. I'm not sure what you have in mind as a "better
>>kernel" but I'd rather have a worse kernel and not have to check 4k
>>stack as a possible problem before looking at other things if I get bad
>>behaviour.
>>
>>Reliability first, performance later. We've lived with the config for a
>>while, pain there is better than pain at runtime.
>
>
> Opposite opinion here.
>
> If you want 100% reliability you shouldn't use -mm in the first place.
>
> Making 4kb stacks default in -mm is very good idea so it will get necessary
> testing and fixing before being integrated into mainline.
>
> Please also note that users of binary only modules always have choice:
> - new kernels without binary only modules
> - old kernels with binary only modules
>
> It is really that simple.
No it's not that simple, this has nothing to do with binary modules, and
everything to do with not making 4k stack the only available
configuration in 2.6. Options are fine, but in a stable kernel series I
don't think think that the default should change part way into the
series, and certainly the availability of the original functionality
shouldn't go away, which is what I read AKPMs original post to state as
the goal.
Making changes to the kernel which will break existing applications
seems to be the opposite of "stable." People who want a new kernel for
fixes don't usually want to have to upgrade and/or rewrite their
applications. The "we change the system interface everything we fix a
bug" approach comes from a well-known software company, but shouldn't be
the way *good* software is done.
--
bill davidsen <davidsen@tmr.com>
CTO TMR Associates, Inc
Doing interesting things with small computers since 1979
^ permalink raw reply [flat|nested] 61+ messages in thread
* Re: 2.6.6-rc3-mm2 (4KSTACK)
2004-05-09 17:00 ` Bill Davidsen
@ 2004-05-09 18:25 ` Bartlomiej Zolnierkiewicz
2004-05-11 16:24 ` Bill Davidsen
0 siblings, 1 reply; 61+ messages in thread
From: Bartlomiej Zolnierkiewicz @ 2004-05-09 18:25 UTC (permalink / raw)
To: Bill Davidsen; +Cc: linux-kernel
On Sunday 09 of May 2004 19:00, Bill Davidsen wrote:
> Bartlomiej Zolnierkiewicz wrote:
> > On Wednesday 05 of May 2004 22:31, Bill Davidsen wrote:
> >>Andrew Morton wrote:
> >>>Dominik Karall <dominik.karall@gmx.net> wrote:
> >>>>On Wednesday 05 May 2004 10:31, you wrote:
> >>>>>+make-4k-stacks-permanent.patch
> >>>>>
> >>>>>Fill my inbox.
> >>>>
> >>>>Hi Andrew!
> >>>>
> >>>>Is there any reason why this patch was applied? Because NVidia users
> >>>>can't work with the original drivers now without removing this patch
> >>>>every time.
> >>>
> >>>We need to push this issue along quickly. The single-page stack
> >>>generally gives us a better kernel and having the stack size
> >>> configurable creates pain.
> >>
> >>Add my voice to those who don't think 4k stacks are a good idea as a
> >>default, they break some things and seem to leave other paths (as others
> >>have noted) on the edge. I'm not sure what you have in mind as a "better
> >>kernel" but I'd rather have a worse kernel and not have to check 4k
> >>stack as a possible problem before looking at other things if I get bad
> >>behaviour.
> >>
> >>Reliability first, performance later. We've lived with the config for a
> >>while, pain there is better than pain at runtime.
> >
> > Opposite opinion here.
> >
> > If you want 100% reliability you shouldn't use -mm in the first place.
> >
> > Making 4kb stacks default in -mm is very good idea so it will get
> > necessary testing and fixing before being integrated into mainline.
> >
> > Please also note that users of binary only modules always have choice:
> > - new kernels without binary only modules
> > - old kernels with binary only modules
> >
> > It is really that simple.
>
> No it's not that simple, this has nothing to do with binary modules, and
> everything to do with not making 4k stack the only available
> configuration in 2.6. Options are fine, but in a stable kernel series I
> don't think think that the default should change part way into the
> series, and certainly the availability of the original functionality
> shouldn't go away, which is what I read AKPMs original post to state as
> the goal.
What functionality are you talking about?
We don't care about out of tree kernel code (be it GPL or Proprietary).
> Making changes to the kernel which will break existing applications
> seems to be the opposite of "stable." People who want a new kernel for
> fixes don't usually want to have to upgrade and/or rewrite their
> applications. The "we change the system interface everything we fix a
You don't understand what the patch is really about.
This is kernel stack not the user-space one so
this change can't brake any application.
> bug" approach comes from a well-known software company, but shouldn't be
> the way *good* software is done.
It doesn't change any kernel interface visible to user-space
and stack hungry kernel code needs fixing anyway.
Regards,
Bartlomiej
^ permalink raw reply [flat|nested] 61+ messages in thread
* Re: 2.6.6-rc3-mm2 (4KSTACK)
2004-05-09 18:25 ` Bartlomiej Zolnierkiewicz
@ 2004-05-11 16:24 ` Bill Davidsen
2004-05-11 23:27 ` Bartlomiej Zolnierkiewicz
0 siblings, 1 reply; 61+ messages in thread
From: Bill Davidsen @ 2004-05-11 16:24 UTC (permalink / raw)
To: Bartlomiej Zolnierkiewicz; +Cc: linux-kernel
On Sun, 9 May 2004, Bartlomiej Zolnierkiewicz wrote:
> On Sunday 09 of May 2004 19:00, Bill Davidsen wrote:
> > No it's not that simple, this has nothing to do with binary modules, and
> > everything to do with not making 4k stack the only available
> > configuration in 2.6. Options are fine, but in a stable kernel series I
> > don't think think that the default should change part way into the
> > series, and certainly the availability of the original functionality
> > shouldn't go away, which is what I read AKPMs original post to state as
> > the goal.
>
> What functionality are you talking about?
> We don't care about out of tree kernel code (be it GPL or Proprietary).
Let me say this one more time, since you keep changing the topic so you
can say that you don't care about something I never mentioned. I am
**NOT** talking about binary modules, I am **NOT** talking about out of
tree code, I am talking about applications which make calls that cause the
**IN TREE** code to use more than 4k.
>
> > Making changes to the kernel which will break existing applications
> > seems to be the opposite of "stable." People who want a new kernel for
> > fixes don't usually want to have to upgrade and/or rewrite their
> > applications. The "we change the system interface everything we fix a
>
> You don't understand what the patch is really about.
>
> This is kernel stack not the user-space one so
> this change can't brake any application.
Right, the kernel code does not contain any places where the data passed
in a system call isn't reflected in stack usage.
>
> > bug" approach comes from a well-known software company, but shouldn't be
> > the way *good* software is done.
>
> It doesn't change any kernel interface visible to user-space
> and stack hungry kernel code needs fixing anyway.
And what better way to detect it than to release it in a stable kernel.
Don't bother to say "don't use -mm" AKPM has said it is intended for the
stable kernel, work or not.
===
Third request for info
===
I still haven't seen any objective data showing that there is any
measureable benefit from this, although I agree that smaller is good
practice, I don't think that throwing in a feature in a stable kernel,
which has been reported by others to corrupt data, is the best way to do
it.
--
bill davidsen <davidsen@tmr.com>
CTO, TMR Associates, Inc
Doing interesting things with little computers since 1979.
^ permalink raw reply [flat|nested] 61+ messages in thread
* Re: 2.6.6-rc3-mm2 (4KSTACK)
2004-05-11 16:24 ` Bill Davidsen
@ 2004-05-11 23:27 ` Bartlomiej Zolnierkiewicz
2004-05-11 23:50 ` Andrew Morton
0 siblings, 1 reply; 61+ messages in thread
From: Bartlomiej Zolnierkiewicz @ 2004-05-11 23:27 UTC (permalink / raw)
To: Bill Davidsen; +Cc: linux-kernel
On Tuesday 11 of May 2004 18:24, Bill Davidsen wrote:
> On Sun, 9 May 2004, Bartlomiej Zolnierkiewicz wrote:
> > On Sunday 09 of May 2004 19:00, Bill Davidsen wrote:
> > > No it's not that simple, this has nothing to do with binary modules,
> > > and everything to do with not making 4k stack the only available
> > > configuration in 2.6. Options are fine, but in a stable kernel series I
> > > don't think think that the default should change part way into the
> > > series, and certainly the availability of the original functionality
> > > shouldn't go away, which is what I read AKPMs original post to state as
> > > the goal.
> >
> > What functionality are you talking about?
> > We don't care about out of tree kernel code (be it GPL or Proprietary).
>
> Let me say this one more time, since you keep changing the topic so you
> can say that you don't care about something I never mentioned. I am
> **NOT** talking about binary modules, I am **NOT** talking about out of
> tree code, I am talking about applications which make calls that cause the
> **IN TREE** code to use more than 4k.
No need to flame, I really didn't know what you were talking about.
I agree that this is a very good argument against pushing this
change to mainline quickly (proposed originally by AKPM).
> > > Making changes to the kernel which will break existing applications
> > > seems to be the opposite of "stable." People who want a new kernel for
> > > fixes don't usually want to have to upgrade and/or rewrite their
> > > applications. The "we change the system interface everything we fix a
> >
> > You don't understand what the patch is really about.
> >
> > This is kernel stack not the user-space one so
> > this change can't brake any application.
>
> Right, the kernel code does not contain any places where the data passed
> in a system call isn't reflected in stack usage.
It won't break applications it will break kernel first. ;-)
You need to fix kernel code not the user space.
> > > bug" approach comes from a well-known software company, but shouldn't
> > > be the way *good* software is done.
> >
> > It doesn't change any kernel interface visible to user-space
> > and stack hungry kernel code needs fixing anyway.
>
> And what better way to detect it than to release it in a stable kernel.
> Don't bother to say "don't use -mm" AKPM has said it is intended for the
> stable kernel, work or not.
I see no problem with this approach (this patch in -mm then in linus')
but issues mentioned by you need fixing first. I'm not proposing to
push it to mainline NOW - it needs to be done CAREFULLY but CAN be
done in 2.6 (i.e. 2.6.15).
I guess this is what we can't agree on.
> ===
> Third request for info
> ===
> I still haven't seen any objective data showing that there is any
> measureable benefit from this, although I agree that smaller is good
> practice, I don't think that throwing in a feature in a stable kernel,
> which has been reported by others to corrupt data, is the best way to do
> it.
There was some evidence from AKPM (and Arjan AFAIR).
[ BTW wasn't the corruption only seen with nvidia module? ]
I think we can prevent it by adding something ala 4kstack flag
to the module.
Regards,
Bartlomiej
^ permalink raw reply [flat|nested] 61+ messages in thread
* Re: 2.6.6-rc3-mm2 (4KSTACK)
2004-05-11 23:27 ` Bartlomiej Zolnierkiewicz
@ 2004-05-11 23:50 ` Andrew Morton
2004-05-12 0:05 ` Valdis.Kletnieks
2004-05-12 16:07 ` Bill Davidsen
0 siblings, 2 replies; 61+ messages in thread
From: Andrew Morton @ 2004-05-11 23:50 UTC (permalink / raw)
To: Bartlomiej Zolnierkiewicz; +Cc: davidsen, linux-kernel
Bartlomiej Zolnierkiewicz <B.Zolnierkiewicz@elka.pw.edu.pl> wrote:
>
> There was some evidence from AKPM (and Arjan AFAIR).
> [ BTW wasn't the corruption only seen with nvidia module? ]
> I think we can prevent it by adding something ala 4kstack flag
> to the module.
"4KSTACKS" already is present in the module version string.
And RHL is shipping now with 4k stacks, so presumably any disasters
are relatively uncommon...
^ permalink raw reply [flat|nested] 61+ messages in thread
* Re: 2.6.6-rc3-mm2 (4KSTACK)
2004-05-11 23:50 ` Andrew Morton
@ 2004-05-12 0:05 ` Valdis.Kletnieks
2004-05-12 16:07 ` Bill Davidsen
1 sibling, 0 replies; 61+ messages in thread
From: Valdis.Kletnieks @ 2004-05-12 0:05 UTC (permalink / raw)
To: Andrew Morton; +Cc: linux-kernel
[-- Attachment #1: Type: text/plain, Size: 815 bytes --]
On Tue, 11 May 2004 16:50:13 PDT, Andrew Morton said:
> And RHL is shipping now with 4k stacks, so presumably any disasters
> are relatively uncommon...
I think currently, it's only the people running the -test or -devel Fedora
trees that can get bit - Fedora Core 1 didn't have it, as it was still a
2.4 kernel, and Fedora Core 2 just kicked over from FC 1.92 last night..
And then they'd have to have NVidia cards, and use the NVIdia drivers..
and I suspect that most of the people who are in that group visit either
one of the NVidia forums or www.minion.de, both of which have lots
of tags saying that patch needs reverting...
So right now it's probably NOT biting too many, as only the clueful are
getting into a situation where it's a problem.
Wait a week or two, when .ISO's of FC2 hit the streets. :)
[-- Attachment #2: Type: application/pgp-signature, Size: 226 bytes --]
^ permalink raw reply [flat|nested] 61+ messages in thread
* Re: 2.6.6-rc3-mm2 (4KSTACK)
2004-05-11 23:50 ` Andrew Morton
2004-05-12 0:05 ` Valdis.Kletnieks
@ 2004-05-12 16:07 ` Bill Davidsen
2004-05-12 16:20 ` Arjan van de Ven
1 sibling, 1 reply; 61+ messages in thread
From: Bill Davidsen @ 2004-05-12 16:07 UTC (permalink / raw)
To: Andrew Morton; +Cc: Bartlomiej Zolnierkiewicz, linux-kernel
On Tue, 11 May 2004, Andrew Morton wrote:
> Bartlomiej Zolnierkiewicz <B.Zolnierkiewicz@elka.pw.edu.pl> wrote:
> >
> > There was some evidence from AKPM (and Arjan AFAIR).
> > [ BTW wasn't the corruption only seen with nvidia module? ]
> > I think we can prevent it by adding something ala 4kstack flag
> > to the module.
>
> "4KSTACKS" already is present in the module version string.
>
> And RHL is shipping now with 4k stacks, so presumably any disasters
> are relatively uncommon...
RHL and kernel.org have a lot of unshared bugs and features,
unfortunately. I take that information as an encouraging proof of concept,
not a waranty that the kernel.org code will behave in a similar way.
--
bill davidsen <davidsen@tmr.com>
CTO, TMR Associates, Inc
Doing interesting things with little computers since 1979.
^ permalink raw reply [flat|nested] 61+ messages in thread
* Re: 2.6.6-rc3-mm2 (4KSTACK)
2004-05-12 16:07 ` Bill Davidsen
@ 2004-05-12 16:20 ` Arjan van de Ven
2004-05-15 19:48 ` Bill Davidsen
0 siblings, 1 reply; 61+ messages in thread
From: Arjan van de Ven @ 2004-05-12 16:20 UTC (permalink / raw)
To: Bill Davidsen; +Cc: Andrew Morton, Bartlomiej Zolnierkiewicz, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 601 bytes --]
> > "4KSTACKS" already is present in the module version string.
> >
> > And Fedora is shipping now with 4k stacks, so presumably any disasters
> > are relatively uncommon...
>
> Fedora and kernel.org have a lot of unshared bugs and features,
> unfortunately. I take that information as an encouraging proof of concept,
> not a waranty that the kernel.org code will behave in a similar way.
Hey! That's slander of title! :-)
Seriously the difference between the Fedora Core 2 kernel and the
matching kernel.org kernel aren't THAT big. The 4g/4g split patch being
the biggest delta.
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 61+ messages in thread
* Re: 2.6.6-rc3-mm2 (4KSTACK)
2004-05-12 16:20 ` Arjan van de Ven
@ 2004-05-15 19:48 ` Bill Davidsen
0 siblings, 0 replies; 61+ messages in thread
From: Bill Davidsen @ 2004-05-15 19:48 UTC (permalink / raw)
To: arjanv; +Cc: Andrew Morton, Bartlomiej Zolnierkiewicz, linux-kernel
Arjan van de Ven wrote:
>>>"4KSTACKS" already is present in the module version string.
>>>
>>>And Fedora is shipping now with 4k stacks, so presumably any disasters
>>>are relatively uncommon...
>>
>>Fedora and kernel.org have a lot of unshared bugs and features,
>>unfortunately. I take that information as an encouraging proof of concept,
>>not a waranty that the kernel.org code will behave in a similar way.
>
>
> Hey! That's slander of title! :-)
> Seriously the difference between the Fedora Core 2 kernel and the
> matching kernel.org kernel aren't THAT big. The 4g/4g split patch being
> the biggest delta.
>
I was thinking about the one you charge for... I wouldn't use FCn for
production on a bet. I was thinking of my RHEL AS3.0 vs. kernel.org,
which are kernels stable enough for commercial use.
--
bill davidsen <davidsen@tmr.com>
CTO TMR Associates, Inc
Doing interesting things with small computers since 1979
^ permalink raw reply [flat|nested] 61+ messages in thread
* Re: 2.6.6-rc3-mm2 (4KSTACK)
2004-05-05 20:31 ` Bill Davidsen
2004-05-05 23:04 ` Bartlomiej Zolnierkiewicz
@ 2004-05-06 10:09 ` Helge Hafting
2004-05-06 12:54 ` Bill Davidsen
1 sibling, 1 reply; 61+ messages in thread
From: Helge Hafting @ 2004-05-06 10:09 UTC (permalink / raw)
To: Bill Davidsen; +Cc: linux-kernel
Bill Davidsen wrote:
> Andrew Morton wrote:
>
>>
>> We need to push this issue along quickly. The single-page stack
>> generally
>> gives us a better kernel and having the stack size configurable creates
>> pain.
>
>
> Add my voice to those who don't think 4k stacks are a good idea as a
> default, they break some things and seem to leave other paths (as
> others have noted) on the edge. I'm not sure what you have in mind as
> a "better kernel" but I'd rather have a worse kernel and not have to
> check 4k stack as a possible problem before looking at other things if
> I get bad behaviour.
I think 4k stacks is perfectly ok for mm, as mm is an experimental
testing ground anyway. Not everything in mm goes into the next 2.6.x.
Wether 4k goes into some 2.6 release or waits for 2.7 is another debate.
Helge Hafting
^ permalink raw reply [flat|nested] 61+ messages in thread
* Re: 2.6.6-rc3-mm2 (4KSTACK)
2004-05-06 10:09 ` Helge Hafting
@ 2004-05-06 12:54 ` Bill Davidsen
0 siblings, 0 replies; 61+ messages in thread
From: Bill Davidsen @ 2004-05-06 12:54 UTC (permalink / raw)
To: Helge Hafting; +Cc: linux-kernel
On Thu, 6 May 2004, Helge Hafting wrote:
> Bill Davidsen wrote:
>
> > Andrew Morton wrote:
> >
> >>
> >> We need to push this issue along quickly. The single-page stack
> >> generally
> >> gives us a better kernel and having the stack size configurable creates
> >> pain.
> >
> >
> > Add my voice to those who don't think 4k stacks are a good idea as a
> > default, they break some things and seem to leave other paths (as
> > others have noted) on the edge. I'm not sure what you have in mind as
> > a "better kernel" but I'd rather have a worse kernel and not have to
> > check 4k stack as a possible problem before looking at other things if
> > I get bad behaviour.
>
> I think 4k stacks is perfectly ok for mm, as mm is an experimental
> testing ground anyway. Not everything in mm goes into the next 2.6.x.
>
>
> Wether 4k goes into some 2.6 release or waits for 2.7 is another debate.
I think it's fine as an option, but taking it out of config and making it
an immutable part of the kernel is probably undesirable. It appears to be
a small gain (nothing I can easily measure), and a larger risk. I'd like
that to be an optional risk, like many other things in the kernel,
available to be used if the last drop of size or performance is desired.
Does someone has any numbers showing what this gains? I didn't see
anything obvious when I tried it, so it's either very small or only in
some case(s) I didn't try.
--
bill davidsen <davidsen@tmr.com>
CTO, TMR Associates, Inc
Doing interesting things with little computers since 1979.
^ permalink raw reply [flat|nested] 61+ messages in thread
* Re: 2.6.6-rc3-mm2 (4KSTACK)
2004-05-05 11:12 ` 2.6.6-rc3-mm2 (4KSTACK) Dominik Karall
` (3 preceding siblings ...)
2004-05-05 11:30 ` Andrew Morton
@ 2004-05-05 18:22 ` Valdis.Kletnieks
2004-05-05 21:51 ` Jörn Engel
4 siblings, 1 reply; 61+ messages in thread
From: Valdis.Kletnieks @ 2004-05-05 18:22 UTC (permalink / raw)
To: Dominik Karall; +Cc: Andrew Morton, Linux Kernel ML
[-- Attachment #1: Type: text/plain, Size: 710 bytes --]
On Wed, 05 May 2004 13:12:30 +0200, Dominik Karall <dominik.karall@gmx.net> said:
> Is there any reason why this patch was applied? Because NVidia users can't
> work with the original drivers now without removing this patch every time.
The NVidia users will also have to back out the regparm patch, or insert
'asmlinkage' on all the appropriate definitions in the glue code. Note that
the patches on www.minion.de already fix this for the 5341 drivers as of
03/24/2004.
In any case, even though I'm one of those NVidia users, I'm OK with the
patch being in there - anybody who's clued enough to build and run a -mm
kernel shouldn't have much trouble figuring out how to build it with 2 patches
reverted.
[-- Attachment #2: Type: application/pgp-signature, Size: 226 bytes --]
^ permalink raw reply [flat|nested] 61+ messages in thread* Re: 2.6.6-rc3-mm2 (4KSTACK)
2004-05-05 18:22 ` Valdis.Kletnieks
@ 2004-05-05 21:51 ` Jörn Engel
2004-05-06 15:18 ` Valdis.Kletnieks
0 siblings, 1 reply; 61+ messages in thread
From: Jörn Engel @ 2004-05-05 21:51 UTC (permalink / raw)
To: Valdis.Kletnieks; +Cc: Dominik Karall, Andrew Morton, Linux Kernel ML
On Wed, 5 May 2004 14:22:02 -0400, Valdis.Kletnieks@vt.edu wrote:
> On Wed, 05 May 2004 13:12:30 +0200, Dominik Karall <dominik.karall@gmx.net> said:
>
> > Is there any reason why this patch was applied? Because NVidia users can't
> > work with the original drivers now without removing this patch every time.
>
> The NVidia users will also have to back out the regparm patch, or insert
> 'asmlinkage' on all the appropriate definitions in the glue code. Note that
> the patches on www.minion.de already fix this for the 5341 drivers as of
> 03/24/2004.
>
> In any case, even though I'm one of those NVidia users, I'm OK with the
> patch being in there - anybody who's clued enough to build and run a -mm
> kernel shouldn't have much trouble figuring out how to build it with 2 patches
> reverted.
I disagree. -mm is the testing ground for -linus. If this patch
would only break the nvidia module, I couldn't care less. But
breaking it in such a way that random kernel memory gets corrupted,
which can soon backfire to the filesystem as well? That's not what
most people understand when calling something "stable".
If this goes in, we should at least detect the nvidia module and
refuse to load it. Maybe do the same for other modules as well or
refuse to load any module that doesn't somehow state to be ok with 4k
stacks. Details don't matter, as long as the filesystems survive.
Jörn
--
Das Aufregende am Schreiben ist es, eine Ordnung zu schaffen, wo
vorher keine existiert hat.
-- Doris Lessing
^ permalink raw reply [flat|nested] 61+ messages in thread
* Re: 2.6.6-rc3-mm2 (4KSTACK)
2004-05-05 21:51 ` Jörn Engel
@ 2004-05-06 15:18 ` Valdis.Kletnieks
2004-05-06 15:40 ` Arjan van de Ven
` (2 more replies)
0 siblings, 3 replies; 61+ messages in thread
From: Valdis.Kletnieks @ 2004-05-06 15:18 UTC (permalink / raw)
To: Jörn Engel; +Cc: Dominik Karall, Andrew Morton, Linux Kernel ML
[-- Attachment #1: Type: text/plain, Size: 1101 bytes --]
On Wed, 05 May 2004 23:51:36 +0200, =?iso-8859-1?Q?J=F6rn?= Engel said:
> I disagree. -mm is the testing ground for -linus. If this patch
> would only break the nvidia module, I couldn't care less.
OK.. I need to clarify - I'm OK on the patch being *in -mm* precisely *because*
it's a testing ground. Anybody who's running a -mm kernel should have the
technical savvy to deal with the issue by reverting the one patch in question,
and to recover if it eats their file system (Yes, I'm running 2.6.6-rc3-mm2 and
the NVidia driver as I type. No, making it work wasn't a problem. Yes, I spin
everything needed to rebuild out to CD/RW at least once a week, just because it
*is* a -mm kernel. ;)
It's a Good Idea to do this in -mm, to flush out all the binary modules that
are known to have issues with this (have we identified anybody other than NVidia
that actually *has* a problem)?
It's probably a Bad Idea to push this to Linus before the vendors that have
significant market-impact issues (again - anybody other than NVidia here?)
have gotten their stuff cleaned up...
[-- Attachment #2: Type: application/pgp-signature, Size: 226 bytes --]
^ permalink raw reply [flat|nested] 61+ messages in thread* Re: 2.6.6-rc3-mm2 (4KSTACK)
2004-05-06 15:18 ` Valdis.Kletnieks
@ 2004-05-06 15:40 ` Arjan van de Ven
2004-05-06 16:29 ` Valdis.Kletnieks
` (2 more replies)
2004-05-06 16:03 ` Malte Schröder
2004-05-06 17:05 ` Matt Mackall
2 siblings, 3 replies; 61+ messages in thread
From: Arjan van de Ven @ 2004-05-06 15:40 UTC (permalink / raw)
To: Valdis.Kletnieks; +Cc: Andrew Morton, Linux Kernel ML
[-- Attachment #1: Type: text/plain, Size: 336 bytes --]
> It's probably a Bad Idea to push this to Linus before the vendors that have
> significant market-impact issues (again - anybody other than NVidia here?)
> have gotten their stuff cleaned up...
Ok I don't want to start a flamewar but... Do we want to hold linux back
until all binary only module vendors have caught up ??
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 61+ messages in thread* Re: 2.6.6-rc3-mm2 (4KSTACK)
2004-05-06 15:40 ` Arjan van de Ven
@ 2004-05-06 16:29 ` Valdis.Kletnieks
2004-05-07 9:50 ` Helge Hafting
2004-05-07 0:37 ` Paul Jakma
2004-05-10 19:49 ` Bill Davidsen
2 siblings, 1 reply; 61+ messages in thread
From: Valdis.Kletnieks @ 2004-05-06 16:29 UTC (permalink / raw)
To: arjanv; +Cc: Andrew Morton, Linux Kernel ML
[-- Attachment #1: Type: text/plain, Size: 631 bytes --]
On Thu, 06 May 2004 17:40:33 +0200, Arjan van de Ven said:
> Ok I don't want to start a flamewar but... Do we want to hold linux back
> until all binary only module vendors have caught up ??
No.. I merely suggested that coordinating with as few as possibly one vendor to
clean their module up might minimize the pain considerably. NVidia is aware of
the issue, and rumor has it that the 6xxx series of Linux drivers are targeted
for the end of May and will have a fix for the 4K stack (which is an issue for
the Fedora Core 2 release already) since they need to push out a revision to
support the 6800 series cards anyhow....
[-- Attachment #2: Type: application/pgp-signature, Size: 226 bytes --]
^ permalink raw reply [flat|nested] 61+ messages in thread
* Re: 2.6.6-rc3-mm2 (4KSTACK)
2004-05-06 16:29 ` Valdis.Kletnieks
@ 2004-05-07 9:50 ` Helge Hafting
0 siblings, 0 replies; 61+ messages in thread
From: Helge Hafting @ 2004-05-07 9:50 UTC (permalink / raw)
To: Valdis.Kletnieks; +Cc: Linux Kernel ML
Valdis.Kletnieks@vt.edu wrote:
>On Thu, 06 May 2004 17:40:33 +0200, Arjan van de Ven said:
>
>
>>Ok I don't want to start a flamewar but... Do we want to hold linux back
>>until all binary only module vendors have caught up ??
>>
>>
>
>No.. I merely suggested that coordinating with as few as possibly one vendor to
>clean their module up might minimize the pain considerably.
>
I don't see much of a problem. So what if Linus puts 4k stacks in 2.6.6
tomorrow?
It won't kill linux for all those nvidia users. They'll simply have to
stop at 2.6.5
until nvidia catch up. Not much of a problem, considering how the majority
still runs various versions of 2.4.x.
Helge Hafting
^ permalink raw reply [flat|nested] 61+ messages in thread
* Re: 2.6.6-rc3-mm2 (4KSTACK)
2004-05-06 15:40 ` Arjan van de Ven
2004-05-06 16:29 ` Valdis.Kletnieks
@ 2004-05-07 0:37 ` Paul Jakma
2004-05-07 2:50 ` Andrew Morton
2004-05-07 6:51 ` Arjan van de Ven
2004-05-10 19:49 ` Bill Davidsen
2 siblings, 2 replies; 61+ messages in thread
From: Paul Jakma @ 2004-05-07 0:37 UTC (permalink / raw)
To: Arjan van de Ven; +Cc: Valdis.Kletnieks, Andrew Morton, Linux Kernel ML
On Thu, 6 May 2004, Arjan van de Ven wrote:
> Ok I don't want to start a flamewar but... Do we want to hold linux
> back until all binary only module vendors have caught up ??
What about normal linux modules though? Eg, NFS (most likely):
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=121804
regards,
--
Paul Jakma paul@clubi.ie paul@jakma.org Key ID: 64A2FF6A
warning: do not ever send email to spam@dishone.st
Fortune:
Disraeli was pretty close: actually, there are Lies, Damn lies, Statistics,
Benchmarks, and Delivery dates.
^ permalink raw reply [flat|nested] 61+ messages in thread
* Re: 2.6.6-rc3-mm2 (4KSTACK)
2004-05-07 0:37 ` Paul Jakma
@ 2004-05-07 2:50 ` Andrew Morton
2004-05-07 3:44 ` Paul Jakma
2004-05-07 6:51 ` Arjan van de Ven
1 sibling, 1 reply; 61+ messages in thread
From: Andrew Morton @ 2004-05-07 2:50 UTC (permalink / raw)
To: Paul Jakma; +Cc: arjanv, Valdis.Kletnieks, linux-kernel
Paul Jakma <paul@clubi.ie> wrote:
>
> On Thu, 6 May 2004, Arjan van de Ven wrote:
>
> > Ok I don't want to start a flamewar but... Do we want to hold linux
> > back until all binary only module vendors have caught up ??
>
> What about normal linux modules though? Eg, NFS (most likely):
>
> https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=121804
That's a misdiagnosis. The problem here is that the kernel is taking a
pagefault within show_trace(), and the pagefault handler calls
show_trace(). It has gone infinitely recursive.
The bug is unrelated to the stack size. It is in show_trace() or
thereabouts. That code tries to protect itself from recursive faults, but
it's a vendor kernel and may be different from the public tree.
^ permalink raw reply [flat|nested] 61+ messages in thread
* Re: 2.6.6-rc3-mm2 (4KSTACK)
2004-05-07 2:50 ` Andrew Morton
@ 2004-05-07 3:44 ` Paul Jakma
2004-05-07 3:58 ` Andrew Morton
0 siblings, 1 reply; 61+ messages in thread
From: Paul Jakma @ 2004-05-07 3:44 UTC (permalink / raw)
To: Andrew Morton; +Cc: arjanv, Valdis.Kletnieks, linux-kernel
On Thu, 6 May 2004, Andrew Morton wrote:
> That's a misdiagnosis. The problem here is that the kernel is
> taking a pagefault within show_trace(), and the pagefault handler
> calls show_trace(). It has gone infinitely recursive.
That happens after the initial stack overflow with a trace (from what
i could discern before it scrolled into oblivion) in NFS -> IP path
similar to the other non-recursive trace, see below.
> The bug is unrelated to the stack size. It is in show_trace() or
> thereabouts. That code tries to protect itself from recursive
> faults, but it's a vendor kernel and may be different from the
> public tree.
Fair enough but have a look at the other fault from that bug though:
https://bugzilla.redhat.com/bugzilla/attachment.cgi?id=99855&action=view
That one did not recurse for some reason.
regards,
--
Paul Jakma paul@clubi.ie paul@jakma.org Key ID: 64A2FF6A
warning: do not ever send email to spam@dishone.st
Fortune:
The program isn't debugged until the last user is dead.
^ permalink raw reply [flat|nested] 61+ messages in thread
* Re: 2.6.6-rc3-mm2 (4KSTACK)
2004-05-07 3:44 ` Paul Jakma
@ 2004-05-07 3:58 ` Andrew Morton
2004-05-07 7:05 ` Arjan van de Ven
2004-05-07 15:26 ` Martin J. Bligh
0 siblings, 2 replies; 61+ messages in thread
From: Andrew Morton @ 2004-05-07 3:58 UTC (permalink / raw)
To: Paul Jakma; +Cc: arjanv, Valdis.Kletnieks, linux-kernel
Paul Jakma <paul@clubi.ie> wrote:
>
> Fair enough but have a look at the other fault from that bug though:
>
> https://bugzilla.redhat.com/bugzilla/attachment.cgi?id=99855&action=view
>
> That one did not recurse for some reason.
OK.
So we're 50 to 60 levels deep in function calls there and simply ran out
of 4k stack.
Based on this and upon the few other feedbackings I've had on this issue it
seems that the 4k stack experiment will come back saying "no".
Thanks.
^ permalink raw reply [flat|nested] 61+ messages in thread
* Re: 2.6.6-rc3-mm2 (4KSTACK)
2004-05-07 3:58 ` Andrew Morton
@ 2004-05-07 7:05 ` Arjan van de Ven
2004-05-07 15:26 ` Martin J. Bligh
1 sibling, 0 replies; 61+ messages in thread
From: Arjan van de Ven @ 2004-05-07 7:05 UTC (permalink / raw)
To: Andrew Morton; +Cc: Paul Jakma, Valdis.Kletnieks, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 475 bytes --]
On Thu, May 06, 2004 at 08:58:38PM -0700, Andrew Morton wrote:
> Paul Jakma <paul@clubi.ie> wrote:
> >
> > Fair enough but have a look at the other fault from that bug though:
> >
> > https://bugzilla.redhat.com/bugzilla/attachment.cgi?id=99855&action=view
> >
> > That one did not recurse for some reason.
>
> OK.
>
> So we're 50 to 60 levels deep in function calls there and simply ran out
> of 4k stack.
no that call trace is AFTER you overflow, eg wrong stack
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 61+ messages in thread
* Re: 2.6.6-rc3-mm2 (4KSTACK)
2004-05-07 3:58 ` Andrew Morton
2004-05-07 7:05 ` Arjan van de Ven
@ 2004-05-07 15:26 ` Martin J. Bligh
2004-05-07 19:41 ` Andrew Morton
1 sibling, 1 reply; 61+ messages in thread
From: Martin J. Bligh @ 2004-05-07 15:26 UTC (permalink / raw)
To: Andrew Morton, Paul Jakma; +Cc: arjanv, Valdis.Kletnieks, linux-kernel
--Andrew Morton <akpm@osdl.org> wrote (on Thursday, May 06, 2004 20:58:38 -0700):
> Paul Jakma <paul@clubi.ie> wrote:
>>
>> Fair enough but have a look at the other fault from that bug though:
>>
>> https://bugzilla.redhat.com/bugzilla/attachment.cgi?id=99855&action=view
>>
>> That one did not recurse for some reason.
>
> OK.
>
> So we're 50 to 60 levels deep in function calls there and simply ran out
> of 4k stack.
>
> Based on this and upon the few other feedbackings I've had on this issue it
> seems that the 4k stack experiment will come back saying "no"
There's two problems with that stack ....
1. it seems to have the IRQ on it as well as normal traffic instead of
using the separate irqstacks ... why isn't that working?
2 nfs_writepage_sync is a known stack-abuser ;-) 1632 bytes on PPC64 at least
(from Anton's data). Maybe it's that struct nfs_write_data ?
M.
^ permalink raw reply [flat|nested] 61+ messages in thread
* Re: 2.6.6-rc3-mm2 (4KSTACK)
2004-05-07 15:26 ` Martin J. Bligh
@ 2004-05-07 19:41 ` Andrew Morton
0 siblings, 0 replies; 61+ messages in thread
From: Andrew Morton @ 2004-05-07 19:41 UTC (permalink / raw)
To: Martin J. Bligh; +Cc: paul, arjanv, Valdis.Kletnieks, linux-kernel
"Martin J. Bligh" <mbligh@aracnet.com> wrote:
>
> 2 nfs_writepage_sync is a known stack-abuser ;-) 1632 bytes on PPC64 at least
> (from Anton's data). Maybe it's that struct nfs_write_data ?
(from Anton's data). Maybe it's that struct nfs_write_data ?
diff -puN fs/nfs/write.c~nfs_writepage_sync-stack-reduction fs/nfs/write.c
--- 25/fs/nfs/write.c~nfs_writepage_sync-stack-reduction 2004-05-07 12:36:51.648098192 -0700
+++ 25-akpm/fs/nfs/write.c 2004-05-07 12:39:41.320304096 -0700
@@ -179,7 +179,13 @@ static int nfs_writepage_sync(struct fil
{
unsigned int wsize = NFS_SERVER(inode)->wsize;
int result, written = 0;
- struct nfs_write_data wdata = {
+ struct nfs_write_data *wdata;
+
+ wdata = kmalloc(sizeof(*wdata), GFP_NOFS);
+ if (!wdata)
+ return -ENOMEM;
+
+ *wdata = (struct nfs_write_data) {
.flags = how,
.cred = NULL,
.inode = inode,
@@ -192,8 +198,8 @@ static int nfs_writepage_sync(struct fil
.count = wsize,
},
.res = {
- .fattr = &wdata.fattr,
- .verf = &wdata.verf,
+ .fattr = &wdata->fattr,
+ .verf = &wdata->verf,
},
};
@@ -205,22 +211,22 @@ static int nfs_writepage_sync(struct fil
nfs_begin_data_update(inode);
do {
if (count < wsize)
- wdata.args.count = count;
- wdata.args.offset = page_offset(page) + wdata.args.pgbase;
+ wdata->args.count = count;
+ wdata->args.offset = page_offset(page) + wdata->args.pgbase;
- result = NFS_PROTO(inode)->write(&wdata, file);
+ result = NFS_PROTO(inode)->write(wdata, file);
if (result < 0) {
/* Must mark the page invalid after I/O error */
ClearPageUptodate(page);
goto io_error;
}
- if (result < wdata.args.count)
+ if (result < wdata->args.count)
printk(KERN_WARNING "NFS: short write, count=%u, result=%d\n",
- wdata.args.count, result);
+ wdata->args.count, result);
- wdata.args.offset += result;
- wdata.args.pgbase += result;
+ wdata->args.offset += result;
+ wdata->args.pgbase += result;
written += result;
count -= result;
} while (count);
@@ -234,9 +240,10 @@ static int nfs_writepage_sync(struct fil
io_error:
nfs_end_data_update_defer(inode);
- if (wdata.cred)
- put_rpccred(wdata.cred);
+ if (wdata->cred)
+ put_rpccred(wdata->cred);
+ kfree(wdata);
return written ? written : result;
}
_
^ permalink raw reply [flat|nested] 61+ messages in thread
* Re: 2.6.6-rc3-mm2 (4KSTACK)
2004-05-07 0:37 ` Paul Jakma
2004-05-07 2:50 ` Andrew Morton
@ 2004-05-07 6:51 ` Arjan van de Ven
2004-05-07 15:13 ` Dave Jones
2004-05-07 19:45 ` Paul Jakma
1 sibling, 2 replies; 61+ messages in thread
From: Arjan van de Ven @ 2004-05-07 6:51 UTC (permalink / raw)
To: Paul Jakma; +Cc: Valdis.Kletnieks, Andrew Morton, Linux Kernel ML
[-- Attachment #1: Type: text/plain, Size: 452 bytes --]
On Fri, May 07, 2004 at 01:37:54AM +0100, Paul Jakma wrote:
> On Thu, 6 May 2004, Arjan van de Ven wrote:
>
> > Ok I don't want to start a flamewar but... Do we want to hold linux
> > back until all binary only module vendors have caught up ??
>
> What about normal linux modules though? Eg, NFS (most likely):
>
> https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=121804
NFSv4 has a > 1Kb stack user; Dave Jones has a fix pending for that...
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 61+ messages in thread
* Re: 2.6.6-rc3-mm2 (4KSTACK)
2004-05-07 6:51 ` Arjan van de Ven
@ 2004-05-07 15:13 ` Dave Jones
2004-05-07 15:47 ` Steve Lord
2004-05-07 19:45 ` Paul Jakma
1 sibling, 1 reply; 61+ messages in thread
From: Dave Jones @ 2004-05-07 15:13 UTC (permalink / raw)
To: Arjan van de Ven
Cc: Paul Jakma, Valdis.Kletnieks, Andrew Morton, Linux Kernel ML
On Fri, May 07, 2004 at 08:51:05AM +0200, Arjan van de Ven wrote:
>
> On Fri, May 07, 2004 at 01:37:54AM +0100, Paul Jakma wrote:
> > On Thu, 6 May 2004, Arjan van de Ven wrote:
> >
> > > Ok I don't want to start a flamewar but... Do we want to hold linux
> > > back until all binary only module vendors have caught up ??
> >
> > What about normal linux modules though? Eg, NFS (most likely):
> >
> > https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=121804
>
> NFSv4 has a > 1Kb stack user; Dave Jones has a fix pending for that...
Hmm, this one maybe?
Dave
--- linux-2.6.5/net/sunrpc/auth_gss/auth_gss.c~ 2004-05-05 13:34:31.000000000 +0100
+++ linux-2.6.5/net/sunrpc/auth_gss/auth_gss.c 2004-05-05 13:33:05.000000000 +0100
@@ -429,10 +429,8 @@ gss_pipe_upcall(struct file *filp, struc
static ssize_t
gss_pipe_downcall(struct file *filp, const char *src, size_t mlen)
{
- char buf[1024];
struct xdr_netobj obj = {
.len = mlen,
- .data = buf,
};
struct inode *inode = filp->f_dentry->d_inode;
struct rpc_inode *rpci = RPC_I(inode);
@@ -448,11 +446,19 @@ gss_pipe_downcall(struct file *filp, con
int err;
int gss_err;
- if (mlen > sizeof(buf))
+ obj.data = kmalloc(1024, GFP_KERNEL);
+ if (!obj.data)
+ return -ENOMEM;
+
+ if (mlen > 1024) {
+ kfree (obj.data);
return -ENOSPC;
- left = copy_from_user(buf, src, mlen);
- if (left)
+ }
+ left = copy_from_user(obj.data, src, mlen);
+ if (left) {
+ kfree (obj.data);
return -EFAULT;
+ }
clnt = rpci->private;
atomic_inc(&clnt->cl_users);
auth = clnt->cl_auth;
@@ -477,12 +483,14 @@ gss_pipe_downcall(struct file *filp, con
} else
spin_unlock(&gss_auth->lock);
rpc_release_client(clnt);
+ kfree (obj.data);
return mlen;
err:
if (ctx)
gss_destroy_ctx(ctx);
rpc_release_client(clnt);
dprintk("RPC: gss_pipe_downcall returning %d\n", err);
+ kfree (obj.data);
return err;
}
^ permalink raw reply [flat|nested] 61+ messages in thread* Re: 2.6.6-rc3-mm2 (4KSTACK)
2004-05-07 15:13 ` Dave Jones
@ 2004-05-07 15:47 ` Steve Lord
2004-05-07 15:59 ` Arjan van de Ven
0 siblings, 1 reply; 61+ messages in thread
From: Steve Lord @ 2004-05-07 15:47 UTC (permalink / raw)
To: Dave Jones
Cc: Arjan van de Ven, Paul Jakma, Valdis.Kletnieks, Andrew Morton,
Linux Kernel ML
Dave Jones wrote:
> On Fri, May 07, 2004 at 08:51:05AM +0200, Arjan van de Ven wrote:
> >
> > On Fri, May 07, 2004 at 01:37:54AM +0100, Paul Jakma wrote:
> > > On Thu, 6 May 2004, Arjan van de Ven wrote:
> > >
> > > > Ok I don't want to start a flamewar but... Do we want to hold linux
> > > > back until all binary only module vendors have caught up ??
> > >
> > > What about normal linux modules though? Eg, NFS (most likely):
> > >
> > > https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=121804
> >
> > NFSv4 has a > 1Kb stack user; Dave Jones has a fix pending for that...
>
> Hmm, this one maybe?
>
> Dave
>
>
> - if (mlen > sizeof(buf))
> + obj.data = kmalloc(1024, GFP_KERNEL);
> + if (!obj.data)
> + return -ENOMEM;
> +
> + if (mlen > 1024) {
That's what I hate about all of this, just think how much stack that
kmalloc can take in low memory situations.... it might end up in
writepage on another nfs file.... Moving stuff off the stack and
into kmalloc just reduces the possibility of stack overflow, it
does not fix the problem. Having memory reclaim take place inside
the thread which is waiting for memory makes that a pretty hard
problem to fix.
Steve
^ permalink raw reply [flat|nested] 61+ messages in thread* Re: 2.6.6-rc3-mm2 (4KSTACK)
2004-05-07 15:47 ` Steve Lord
@ 2004-05-07 15:59 ` Arjan van de Ven
2004-05-07 16:09 ` J. Bruce Fields
2004-05-07 16:11 ` Steve Lord
0 siblings, 2 replies; 61+ messages in thread
From: Arjan van de Ven @ 2004-05-07 15:59 UTC (permalink / raw)
To: Steve Lord
Cc: Dave Jones, Paul Jakma, Valdis.Kletnieks, Andrew Morton,
Linux Kernel ML
[-- Attachment #1: Type: text/plain, Size: 413 bytes --]
On Fri, May 07, 2004 at 10:47:56AM -0500, Steve Lord wrote:
> >- if (mlen > sizeof(buf))
> >+ obj.data = kmalloc(1024, GFP_KERNEL);
> >+ if (!obj.data)
> >+ return -ENOMEM;
> >+
> >+ if (mlen > 1024) {
>
> That's what I hate about all of this, just think how much stack that
> kmalloc can take in low memory situations.... it might end up in
> writepage on another nfs file....
it clearly needs to be GFP_NOFS
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 61+ messages in thread* Re: 2.6.6-rc3-mm2 (4KSTACK)
2004-05-07 15:59 ` Arjan van de Ven
@ 2004-05-07 16:09 ` J. Bruce Fields
2004-05-07 16:11 ` Steve Lord
1 sibling, 0 replies; 61+ messages in thread
From: J. Bruce Fields @ 2004-05-07 16:09 UTC (permalink / raw)
To: Arjan van de Ven
Cc: Steve Lord, Dave Jones, Paul Jakma, Valdis.Kletnieks,
Andrew Morton, Linux Kernel ML
On Fri, May 07, 2004 at 05:59:43PM +0200, Arjan van de Ven wrote:
> On Fri, May 07, 2004 at 10:47:56AM -0500, Steve Lord wrote:
> > >- if (mlen > sizeof(buf))
> > >+ obj.data = kmalloc(1024, GFP_KERNEL);
> > >+ if (!obj.data)
> > >+ return -ENOMEM;
> > >+
> > >+ if (mlen > 1024) {
> >
> > That's what I hate about all of this, just think how much stack that
> > kmalloc can take in low memory situations.... it might end up in
> > writepage on another nfs file....
>
> it clearly needs to be GFP_NOFS
The function is question is essentially a write method for a virtual
filesystem (rpc_pipefs) that's used to communicate with some
NFSv4-related daemons. It isn't called from any of the NFS fileystem
code.
--Bruce Fields
^ permalink raw reply [flat|nested] 61+ messages in thread* Re: 2.6.6-rc3-mm2 (4KSTACK)
2004-05-07 15:59 ` Arjan van de Ven
2004-05-07 16:09 ` J. Bruce Fields
@ 2004-05-07 16:11 ` Steve Lord
2004-05-07 16:28 ` Jörn Engel
1 sibling, 1 reply; 61+ messages in thread
From: Steve Lord @ 2004-05-07 16:11 UTC (permalink / raw)
To: Arjan van de Ven
Cc: Dave Jones, Paul Jakma, Valdis.Kletnieks, Andrew Morton,
Linux Kernel ML
Arjan van de Ven wrote:
> On Fri, May 07, 2004 at 10:47:56AM -0500, Steve Lord wrote:
>
>>>- if (mlen > sizeof(buf))
>>>+ obj.data = kmalloc(1024, GFP_KERNEL);
>>>+ if (!obj.data)
>>>+ return -ENOMEM;
>>>+
>>>+ if (mlen > 1024) {
>>
>>That's what I hate about all of this, just think how much stack that
>>kmalloc can take in low memory situations.... it might end up in
>>writepage on another nfs file....
>
>
> it clearly needs to be GFP_NOFS
That was not really my point, consider any memory allocation on the
stack which is being replaced with an allocate to save space. Then replace
the saved stack space with the potential stack space used to
free memory by writing it out via a filesystem. You cannot make all
the allocations in the kernel GFP_NOFS.
Now at least if the memory is allocated high enough up in the
call chain it fixes the problems of a function with a large
stack frame with a deep stack underneath it. It does not fix
anything if the function is already deep in the stack.
All this is doing is papering over the cracks.
Steve
^ permalink raw reply [flat|nested] 61+ messages in thread* Re: 2.6.6-rc3-mm2 (4KSTACK)
2004-05-07 16:11 ` Steve Lord
@ 2004-05-07 16:28 ` Jörn Engel
0 siblings, 0 replies; 61+ messages in thread
From: Jörn Engel @ 2004-05-07 16:28 UTC (permalink / raw)
To: Steve Lord
Cc: Arjan van de Ven, Dave Jones, Paul Jakma, Valdis.Kletnieks,
Andrew Morton, Linux Kernel ML
On Fri, 7 May 2004 11:11:30 -0500, Steve Lord wrote:
>
> That was not really my point, consider any memory allocation on the
> stack which is being replaced with an allocate to save space. Then replace
> the saved stack space with the potential stack space used to
> free memory by writing it out via a filesystem. You cannot make all
> the allocations in the kernel GFP_NOFS.
>
> Now at least if the memory is allocated high enough up in the
> call chain it fixes the problems of a function with a large
> stack frame with a deep stack underneath it. It does not fix
> anything if the function is already deep in the stack.
>
> All this is doing is papering over the cracks.
No, it turns two problems into one. We have the problem you describe
anyway, there is no point avoiding it here. It remains unsolved, but
that's just one problem left, not two.
Would it make sense to switch stacks if memory allocation has to free
other memory first? Sounds a bit insane, but that problem needs a
solution as well.
Jörn
--
...one more straw can't possibly matter...
-- Kirby Bakken
^ permalink raw reply [flat|nested] 61+ messages in thread
* Re: 2.6.6-rc3-mm2 (4KSTACK)
2004-05-07 6:51 ` Arjan van de Ven
2004-05-07 15:13 ` Dave Jones
@ 2004-05-07 19:45 ` Paul Jakma
2004-05-07 19:48 ` Paul Jakma
1 sibling, 1 reply; 61+ messages in thread
From: Paul Jakma @ 2004-05-07 19:45 UTC (permalink / raw)
To: Arjan van de Ven; +Cc: Valdis.Kletnieks, Andrew Morton, Linux Kernel ML
On Fri, 7 May 2004, Arjan van de Ven wrote:
> NFSv4 has a > 1Kb stack user; Dave Jones has a fix pending for
> that...
I'm using NFSv3 though.
regards,
--
Paul Jakma paul@clubi.ie paul@jakma.org Key ID: 64A2FF6A
warning: do not ever send email to spam@dishone.st
Fortune:
Never invest your money in anything that eats or needs repainting.
-- Billy Rose
^ permalink raw reply [flat|nested] 61+ messages in thread
* Re: 2.6.6-rc3-mm2 (4KSTACK)
2004-05-07 19:45 ` Paul Jakma
@ 2004-05-07 19:48 ` Paul Jakma
0 siblings, 0 replies; 61+ messages in thread
From: Paul Jakma @ 2004-05-07 19:48 UTC (permalink / raw)
To: Arjan van de Ven; +Cc: Valdis.Kletnieks, Andrew Morton, Linux Kernel ML
On Fri, 7 May 2004, Paul Jakma wrote:
> On Fri, 7 May 2004, Arjan van de Ven wrote:
>
> > NFSv4 has a > 1Kb stack user; Dave Jones has a fix pending for
> > that...
>
> I'm using NFSv3 though.
Well.. the mount itself is NFSv3 at least. The kernel does however
have NFSv4 client support and support for the rpc_pipefs fs.
regards,
--
Paul Jakma paul@clubi.ie paul@jakma.org Key ID: 64A2FF6A
warning: do not ever send email to spam@dishone.st
Fortune:
Forgive and forget.
-- Cervantes
^ permalink raw reply [flat|nested] 61+ messages in thread
* Re: 2.6.6-rc3-mm2 (4KSTACK)
2004-05-06 15:40 ` Arjan van de Ven
2004-05-06 16:29 ` Valdis.Kletnieks
2004-05-07 0:37 ` Paul Jakma
@ 2004-05-10 19:49 ` Bill Davidsen
2004-05-10 20:31 ` Horst von Brand
2004-05-11 8:45 ` Helge Hafting
2 siblings, 2 replies; 61+ messages in thread
From: Bill Davidsen @ 2004-05-10 19:49 UTC (permalink / raw)
To: linux-kernel
Arjan van de Ven wrote:
>>It's probably a Bad Idea to push this to Linus before the vendors that have
>>significant market-impact issues (again - anybody other than NVidia here?)
>>have gotten their stuff cleaned up...
>
>
> Ok I don't want to start a flamewar but... Do we want to hold linux back
> until all binary only module vendors have caught up ??
My questions is, hold it back from what? Having the 4k option is fine,
it's just eliminating the current default which I think is undesirable.
I tried 4k stack, I couldn't measure any improvement in anything (as in
no visible speedup or saving in memory). For an embedded system, where
space is tight and the code paths well known, sure, but I haven't been
able to find or generate any objective improvement, other than some
posts saying smaller is always better. Nothing slows a system down like
a crash, even if it isn't followed by a restore from backup.
Feel free to point me at some results showing major improvement from 4k
stacks, I'm open to data.
--
-bill davidsen (davidsen@tmr.com)
"The secret to procrastination is to put things off until the
last possible moment - but no longer" -me
^ permalink raw reply [flat|nested] 61+ messages in thread* Re: 2.6.6-rc3-mm2 (4KSTACK)
2004-05-10 19:49 ` Bill Davidsen
@ 2004-05-10 20:31 ` Horst von Brand
2004-05-11 2:39 ` Andrew Morton
2004-05-11 8:45 ` Helge Hafting
1 sibling, 1 reply; 61+ messages in thread
From: Horst von Brand @ 2004-05-10 20:31 UTC (permalink / raw)
To: Bill Davidsen; +Cc: Linux Kernel Mailing List
Bill Davidsen <davidsen@tmr.com> said:
[...]
> I tried 4k stack, I couldn't measure any improvement in anything (as in
> no visible speedup or saving in memory).
4K stacks lets the kernel create new threads/processes as long as there is
free memory; with 8K stacks it needs two consecutive free page frames in
physical memory, when memory is fragmented (and large) they are hard to
come by...
--
Dr. Horst H. von Brand User #22616 counter.li.org
Departamento de Informatica Fono: +56 32 654431
Universidad Tecnica Federico Santa Maria +56 32 654239
Casilla 110-V, Valparaiso, Chile Fax: +56 32 797513
^ permalink raw reply [flat|nested] 61+ messages in thread
* Re: 2.6.6-rc3-mm2 (4KSTACK)
2004-05-10 20:31 ` Horst von Brand
@ 2004-05-11 2:39 ` Andrew Morton
0 siblings, 0 replies; 61+ messages in thread
From: Andrew Morton @ 2004-05-11 2:39 UTC (permalink / raw)
To: Horst von Brand; +Cc: davidsen, linux-kernel
Horst von Brand <vonbrand@inf.utfsm.cl> wrote:
>
> Bill Davidsen <davidsen@tmr.com> said:
>
> [...]
>
> > I tried 4k stack, I couldn't measure any improvement in anything (as in
> > no visible speedup or saving in memory).
>
> 4K stacks lets the kernel create new threads/processes as long as there is
> free memory; with 8K stacks it needs two consecutive free page frames in
> physical memory, when memory is fragmented (and large) they are hard to
> come by...
This is true to a surprising extent. A couple of weeks ago I observed my
256MB box freeing over 20MB of pages before it could successfully acquire a
single 1-order page.
That was during an updatedb run.
And a 1-order GFP_NOFS allocation was actually livelocking, because
!__GFP_FS allocations aren't allowed to enter dentry reclaim. Which is why
VFS caches are now forced to use 0-order allocations.
^ permalink raw reply [flat|nested] 61+ messages in thread
* Re: 2.6.6-rc3-mm2 (4KSTACK)
2004-05-10 19:49 ` Bill Davidsen
2004-05-10 20:31 ` Horst von Brand
@ 2004-05-11 8:45 ` Helge Hafting
1 sibling, 0 replies; 61+ messages in thread
From: Helge Hafting @ 2004-05-11 8:45 UTC (permalink / raw)
To: Bill Davidsen; +Cc: linux-kernel
Bill Davidsen wrote:
> Arjan van de Ven wrote:
>
>>> It's probably a Bad Idea to push this to Linus before the vendors
>>> that have
>>> significant market-impact issues (again - anybody other than NVidia
>>> here?)
>>> have gotten their stuff cleaned up...
>>
>>
>>
>> Ok I don't want to start a flamewar but... Do we want to hold linux back
>> until all binary only module vendors have caught up ??
>
>
> My questions is, hold it back from what? Having the 4k option is fine,
> it's just eliminating the current default which I think is
> undesirable. I tried 4k stack, I couldn't measure any improvement in
> anything (as in no visible speedup or saving in memory).
The memory saving is usually modest: 4k per thread. It might make a
difference for
those with many thousands of threads. I believe this is unswappable
memory,
which is much more valuable than ordinary process memory.
More interesting is that it removes one way for fork() to fail. With 8k
stacks,
the new process needs to allocate two consecutive pages for those 8k. That
might be impossible due to fragmentation, even if there are megabytes of
free
memory. Such a problem usually only shows up after a long time. Now we
only need to
allocate a single page, which always works as long as there is any free
memory at all.
> For an embedded system, where space is tight and the code paths well
> known, sure, but I haven't been able to find or generate any objective
> improvement, other than some posts saying smaller is always better.
> Nothing slows a system down like a crash, even if it isn't followed by
> a restore from backup.
Consider the case when your server (web/mail/other) fails to fork, and then
you can't login because that requires fork() too. 4k stacks remove this
scenario,
and is a stability improvement.
Helge Hafting
^ permalink raw reply [flat|nested] 61+ messages in thread
* Re: 2.6.6-rc3-mm2 (4KSTACK)
2004-05-06 15:18 ` Valdis.Kletnieks
2004-05-06 15:40 ` Arjan van de Ven
@ 2004-05-06 16:03 ` Malte Schröder
2004-05-06 16:13 ` Valdis.Kletnieks
2004-05-06 17:05 ` Matt Mackall
2 siblings, 1 reply; 61+ messages in thread
From: Malte Schröder @ 2004-05-06 16:03 UTC (permalink / raw)
To: Valdis.Kletnieks
Cc: Jörn Engel, Dominik Karall, Andrew Morton, Linux Kernel ML
[-- Attachment #1: Type: text/plain, Size: 1529 bytes --]
On Thu, 06 May 2004 11:18:10 -0400
Valdis.Kletnieks@vt.edu wrote:
> On Wed, 05 May 2004 23:51:36 +0200, =?iso-8859-1?Q?J=F6rn?= Engel said:
>
> > I disagree. -mm is the testing ground for -linus. If this patch
> > would only break the nvidia module, I couldn't care less.
>
> OK.. I need to clarify - I'm OK on the patch being *in -mm* precisely *because*
> it's a testing ground. Anybody who's running a -mm kernel should have the
> technical savvy to deal with the issue by reverting the one patch in question,
> and to recover if it eats their file system (Yes, I'm running 2.6.6-rc3-mm2 and
> the NVidia driver as I type. No, making it work wasn't a problem. Yes, I spin
> everything needed to rebuild out to CD/RW at least once a week, just because it
> *is* a -mm kernel. ;)
>
> It's a Good Idea to do this in -mm, to flush out all the binary modules that
> are known to have issues with this (have we identified anybody other than NVidia
> that actually *has* a problem)?
I use 2.6.6-rc3 w/ 4k-stack enabled (-mm is a bit too experimental for my taste ;) ), ATIs binary-module is working w/o problems.
but IIRC I had to disable REGPARMS.
>
> It's probably a Bad Idea to push this to Linus before the vendors that have
> significant market-impact issues (again - anybody other than NVidia here?)
> have gotten their stuff cleaned up...
>
>
--
---------------------------------------
Malte Schröder
MalteSch@gmx.de
ICQ# 68121508
---------------------------------------
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 61+ messages in thread
* Re: 2.6.6-rc3-mm2 (4KSTACK)
2004-05-06 16:03 ` Malte Schröder
@ 2004-05-06 16:13 ` Valdis.Kletnieks
0 siblings, 0 replies; 61+ messages in thread
From: Valdis.Kletnieks @ 2004-05-06 16:13 UTC (permalink / raw)
To: MalteSch; +Cc: Linux Kernel ML
[-- Attachment #1: Type: text/plain, Size: 598 bytes --]
On Thu, 06 May 2004 18:03:14 +0200, Malte =?ISO-8859-1?B?U2NocvZkZXI=?= said:
> I use 2.6.6-rc3 w/ 4k-stack enabled (-mm is a bit too experimental for my =
> taste ;) ), ATIs binary-module is working w/o problems.
> but IIRC I had to disable REGPARMS.
Alternatively, www.minion.de has a patch against the 5341 drivers that makes
it work with the regparms (basically, it sticks an asmlinkage in all the right
places)....
http://www.minion.de/files/NVIDIA_kernel-1.0-5341-2.6.diff
Of course, if you hit problems running a 3rd party patch against a mostly-binary
driver, you're on your own... ;)
[-- Attachment #2: Type: application/pgp-signature, Size: 226 bytes --]
^ permalink raw reply [flat|nested] 61+ messages in thread
* Re: 2.6.6-rc3-mm2 (4KSTACK)
2004-05-06 15:18 ` Valdis.Kletnieks
2004-05-06 15:40 ` Arjan van de Ven
2004-05-06 16:03 ` Malte Schröder
@ 2004-05-06 17:05 ` Matt Mackall
2 siblings, 0 replies; 61+ messages in thread
From: Matt Mackall @ 2004-05-06 17:05 UTC (permalink / raw)
To: Valdis.Kletnieks
Cc: J?rn Engel, Dominik Karall, Andrew Morton, Linux Kernel ML
On Thu, May 06, 2004 at 11:18:10AM -0400, Valdis.Kletnieks@vt.edu wrote:
> It's a Good Idea to do this in -mm, to flush out all the binary
> modules that are known to have issues with this (have we identified
> anybody other than NVidia that actually *has* a problem)?
Anything that uses current() or the like will be unhappy, though it
may work half the time. So just about anything binary-only is liable
to hit it. We can catch most of this by adding "4KSTACKS" to the
global build flags, but I think stuff like the Nvidia wrapper layer
shoots itself in the foot here by silently ignoring this check.
--
Matt Mackall : http://www.selenic.com : Linux development and consulting
^ permalink raw reply [flat|nested] 61+ messages in thread
end of thread, other threads:[~2004-05-15 19:41 UTC | newest]
Thread overview: 61+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-05-06 9:48 2.6.6-rc3-mm2 (4KSTACK) Sid Boyce
[not found] <1Sq6O-4gJ-25@gated-at.bofh.it>
[not found] ` <1Sss1-7qC-53@gated-at.bofh.it>
[not found] ` <1SzjQ-4EY-21@gated-at.bofh.it>
[not found] ` <1SCB0-7kE-11@gated-at.bofh.it>
[not found] ` <1SSZ6-3vy-13@gated-at.bofh.it>
[not found] ` <1STip-3L3-11@gated-at.bofh.it>
[not found] ` <1T1IW-2eH-3@gated-at.bofh.it>
[not found] ` <1T7vo-6C2-7@gated-at.bofh.it>
[not found] ` <1TfiY-4s1-17@gated-at.bofh.it>
[not found] ` <1TfVX-4T4-51@gated-at.bofh.it>
[not found] ` <1Tg5k-55S-19@gated-at.bofh.it>
[not found] ` <1Tgf4-5cp-27@gated-at.bofh.it>
2004-05-07 18:38 ` Andi Kleen
-- strict thread matches above, loose matches on Subject: below --
2004-05-06 9:12 h.verhagen
2004-05-06 9:06 h.verhagen
2004-05-05 8:31 2.6.6-rc3-mm2 Andrew Morton
2004-05-05 11:12 ` 2.6.6-rc3-mm2 (4KSTACK) Dominik Karall
2004-05-05 11:10 ` Ralf Hildebrandt
2004-05-05 11:13 ` Jan-Benedict Glaw
2004-05-05 11:24 ` Arjan van de Ven
2004-05-05 11:30 ` Andrew Morton
2004-05-05 12:09 ` Rene Herman
2004-05-05 16:47 ` Steve Lord
2004-05-05 18:48 ` Felipe Alfaro Solana
2004-05-05 19:51 ` Arjan van de Ven
2004-05-05 19:56 ` Steve Lord
2004-05-05 19:59 ` Arjan van de Ven
2004-05-06 17:44 ` Max Valdez
2004-05-05 20:31 ` Bill Davidsen
2004-05-05 23:04 ` Bartlomiej Zolnierkiewicz
2004-05-06 12:55 ` Norberto Bensa
2004-05-06 13:33 ` Bartlomiej Zolnierkiewicz
2004-05-06 18:47 ` Norberto Bensa
2004-05-09 17:00 ` Bill Davidsen
2004-05-09 18:25 ` Bartlomiej Zolnierkiewicz
2004-05-11 16:24 ` Bill Davidsen
2004-05-11 23:27 ` Bartlomiej Zolnierkiewicz
2004-05-11 23:50 ` Andrew Morton
2004-05-12 0:05 ` Valdis.Kletnieks
2004-05-12 16:07 ` Bill Davidsen
2004-05-12 16:20 ` Arjan van de Ven
2004-05-15 19:48 ` Bill Davidsen
2004-05-06 10:09 ` Helge Hafting
2004-05-06 12:54 ` Bill Davidsen
2004-05-05 18:22 ` Valdis.Kletnieks
2004-05-05 21:51 ` Jörn Engel
2004-05-06 15:18 ` Valdis.Kletnieks
2004-05-06 15:40 ` Arjan van de Ven
2004-05-06 16:29 ` Valdis.Kletnieks
2004-05-07 9:50 ` Helge Hafting
2004-05-07 0:37 ` Paul Jakma
2004-05-07 2:50 ` Andrew Morton
2004-05-07 3:44 ` Paul Jakma
2004-05-07 3:58 ` Andrew Morton
2004-05-07 7:05 ` Arjan van de Ven
2004-05-07 15:26 ` Martin J. Bligh
2004-05-07 19:41 ` Andrew Morton
2004-05-07 6:51 ` Arjan van de Ven
2004-05-07 15:13 ` Dave Jones
2004-05-07 15:47 ` Steve Lord
2004-05-07 15:59 ` Arjan van de Ven
2004-05-07 16:09 ` J. Bruce Fields
2004-05-07 16:11 ` Steve Lord
2004-05-07 16:28 ` Jörn Engel
2004-05-07 19:45 ` Paul Jakma
2004-05-07 19:48 ` Paul Jakma
2004-05-10 19:49 ` Bill Davidsen
2004-05-10 20:31 ` Horst von Brand
2004-05-11 2:39 ` Andrew Morton
2004-05-11 8:45 ` Helge Hafting
2004-05-06 16:03 ` Malte Schröder
2004-05-06 16:13 ` Valdis.Kletnieks
2004-05-06 17:05 ` Matt Mackall
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox