[prev in list] [next in list] [prev in thread] [next in thread] 

List:       linux-smp
Subject:    RE: POSIX threads
From:       "Robert M. Hyatt" <hyatt () cis ! uab ! edu>
Date:       2003-06-21 2:58:17
[Download RAW message or body]

On Fri, 20 Jun 2003, Riley Williams wrote:

> Hi Robert, Alan.
> 
> Alan: Do any of the listed patches want applying to mainstream 2.4 ?
>       Especially the older ones...
> 
>  > I have an interesting problem with "crafty" a parallel chess program.
>  >
>  > I used POSIX threads until a couple of Red Hat releases ago when
>  > POSIX threads was broken somehow. It was probably caused by the
>  > size of my stack but I am not sure. In any case, I "rolled my
>  > own" by using clone() and it has been working ever since. But
>  > I have been checking with each new release to see if threads were
>  > fixed and sure enough, when I installed red hat 9, it worked fine.
>  >
>  > But if I do my own kernel from a fresh 2.4.20 or 2.4.21 distribution,
>  > threads fails miserably. But with the stock 2.4.20-8 and 2.4.29-9
>  > as distributed by Red Hat, threads and crafty work fine.
>  >
>  > Any suggestions on things to try? I can live with the clone() approach
>  > if needed, but it makes the code a bit messier in terms of portability.
> 
> The above description suggests that Red Hat are patching the kernel source
> to fix that problem, and that the relevant patch hasn't been propagated
> back to the raw Linux tree. You may wish to explore the various patches
> included in the latest Red Hat kernel-*.src.rpm to see what each of them
> do, then report the results here.


I have been doing a ton of diffs comparing 2.4.20-8/2.4.20-9 (redhat
9 release kernel and errata kernel sources).  I have also tried 2.4.21
but it (from kernel.org) fails with my particular posix thread test
(using Crafty).

If I find the key difference, I'll certainly post it.  I suspect
something in clone() or in vm is the main issue, but it could be lots
of other things.  The symptom is best seen by noticing that _all_
of the pthread_create() threads immediately crash and burn so that
no threads (not even the control thread) gets created correctly.




> 
> On the Red Hat 9 kernel updates site, the latest kernel source update is
> ftp://updates.redhat.com/9/en/os/SRPMS/kernel-2.4.20-18.9.src.rpm and,
> amongst the many patches applied therein, there is one with the name of
> linux-2.4.20-sbp2-smpfixes.patch whose name suggests it is something to
> do with SMP. For reference, here's a full list of the patches applied in
> that source RPM (listed by kernel developed against), which you can browse
> and see if there's anything that looks even remotely interesting:
> 
> 	linux-2.2.16-rhconfig.patch
> 
> 	linux-2.4.0-apic-quiet.patch
> 	linux-2.4.0-cipe-1.4.5.patch
> 	linux-2.4.0-e820.patch
> 	linux-2.4.0-nonintconfig.patch
> 	linux-2.4.0-raid5xor.patch
> 	linux-2.4.0-test11-vidfail.patch
> 
> 	linux-2.4.1-compilefailure.patch
> 	linux-2.4.1-netfilter-addons.patch
> 
> 	linux-2.4.2-changeloop.patch
> 	linux-2.4.2-cipe.patch
> 	linux-2.4.2-keyboardsilence.patch
> 	linux-2.4.2-page_bitmap.patch
> 	linux-2.4.2-scsi_scan.patch
> 
> 	linux-2.4.3-pcipenalty.patch
> 
> 	linux-2.4.6-bcm5820-2.patch
> 	linux-2.4.6-bcm5820.patch
> 
> 	linux-2.4.7-bcm5820-16.patch
> 	linux-2.4.7-bcm5820-17.patch
> 	linux-2.4.7-quotareturn.patch
> 	linux-2.4.7-scsitimeout.patch
> 	linux-2.4.7-suspend.patch
> 	linux-2.4.7-tulip.patch
> 	linux-2.4.7-usb-bug50218.patch
> 
> 	linux-2.4.9-addon.patch
> 	linux-2.4.9-aep.patch
> 	linux-2.4.9-cipenat.patch
> 	linux-2.4.9-feral-qlogic-isp-config.patch
> 	linux-2.4.9-freevxfs.patch
> 	linux-2.4.9-fstat.patch
> 	linux-2.4.9-ide-tape.patch
> 	linux-2.4.9-kallsyms.patch
> 	linux-2.4.9-kksymoops.patch
> 	linux-2.4.9-nmiprofiling.patch
> 	linux-2.4.9-pcmcia-ethtool.patch
> 	linux-2.4.9-qla2200.patch
> 	linux-2.4.9-scsilun0.patch
> 
> 	linux-2.4.15-tux2.patch
> 
> 	linux-2.4.17-lvm-bulkcopy.patch
> 	linux-2.4.17-lvm-pvmove.patch
> 	linux-2.4.17-usb-55878.patch
> 	linux-2.4.17-watchdog-nowayout.patch
> 
> 	linux-2.4.18-afs.patch
> 	linux-2.4.18-aic79xx.patch
> 	linux-2.4.18-audigy.patch
> 	linux-2.4.18-bcm5820-update.patch
> 	linux-2.4.18-cipe-moreinterfaces.patch
> 	linux-2.4.18-cpu-partitioning.patch
> 	linux-2.4.18-cryptoapi.patch
> 	linux-2.4.18-dmi-hall-of-shame.patch
> 	linux-2.4.18-ecc.patch
> 	linux-2.4.18-ethtool.patch
> 	linux-2.4.18-feral-qlogic-isp.patch
> 	linux-2.4.18-flock.patch
> 	linux-2.4.18-gericom.patch
> 	linux-2.4.18-gfp-valid.patch
> 	linux-2.4.18-input-35215.patch
> 	linux-2.4.18-irixnfs.patch
> 	linux-2.4.18-iscsi.patch
> 	linux-2.4.18-kiobuf.patch
> 	linux-2.4.18-laptopbits.patch
> 	linux-2.4.18-loop-cryptoapi.patch
> 	linux-2.4.18-loopfixes.patch
> 	linux-2.4.18-lvm-VFSlock.patch
> 	linux-2.4.18-megarac.patch
> 	linux-2.4.18-missing-license-tags.patch
> 	linux-2.4.18-mmap-sem-debug-i386.patch
> 	linux-2.4.18-mmap-sem-debug.patch
> 	linux-2.4.18-moreunnamed.patch
> 	linux-2.4.18-netdump.patch
> 	linux-2.4.18-nfs-default-size.patch
> 	linux-2.4.18-noramfs.patch
> 	linux-2.4.18-nousb.patch
> 	linux-2.4.18-orinoco.patch
> 	linux-2.4.18-scsi-whitelist.patch
> 	linux-2.4.18-scsidevices.patch
> 	linux-2.4.18-sendfile64.patch
> 	linux-2.4.18-sillysymlinkfarms.patch
> 	linux-2.4.18-smallpatches.patch
> 	linux-2.4.18-unselected-ac-bits.patch
> 	linux-2.4.18-usb-bug50225.patch
> 	linux-2.4.18-usb-bug56856.patch
> 	linux-2.4.18-wvlan-cs.patch
> 
> 	linux-2.4.19-vmacache.patch
> 
> 	linux-2.4.20-32bitemu.patch
> 	linux-2.4.20-440gx.patch
> 	linux-2.4.20-acl-ext3.patch
> 	linux-2.4.20-acl-intermezzo-fix.patch
> 	linux-2.4.20-acl-ms-posixacl.patch
> 	linux-2.4.20-acl-xattr.patch
> 	linux-2.4.20-acl.patch
> 	linux-2.4.20-acpi-fixes.patch
> 	linux-2.4.20-acpi-relaxed-aml.patch
> 	linux-2.4.20-additional-vm-tuning.patch
> 	linux-2.4.20-amd-golem.patch
> 	linux-2.4.20-andrea-fix-pausing.patch
> 	linux-2.4.20-bluetooth.patch
> 	linux-2.4.20-cenatek.patch
> 	linux-2.4.20-cpufreq.patch
> 	linux-2.4.20-drm43.patch
> 	linux-2.4.20-edd-allocate.patch
> 	linux-2.4.20-edd.patch
> 	linux-2.4.20-elevator.patch
> 	linux-2.4.20-ext3-updates.patch
> 	linux-2.4.20-futex-debug.patch
> 	linux-2.4.20-hyperthreading-oprofile.patch
> 	linux-2.4.20-inodes.patch
> 	linux-2.4.20-intel-acpi-safe-update.patch
> 	linux-2.4.20-ipmi.patch
> 	linux-2.4.20-irixnfs.patch
> 	linux-2.4.20-later-ac-updates.patch
> 	linux-2.4.20-ldt.patch
> 	linux-2.4.20-lm_sensors.patch
> 	linux-2.4.20-lowlat.patch
> 	linux-2.4.20-lvm-updates.patch
> 	linux-2.4.20-mempool.patch
> 	linux-2.4.20-modulealloc.patch
> 	linux-2.4.20-nethashfix.patch
> 	linux-2.4.20-noresched.patch
> 	linux-2.4.20-noscheduler.patch
> 	linux-2.4.20-o1-sched+threading-backport.patch
> 	linux-2.4.20-odirect.patch
> 	linux-2.4.20-oopsmeharder.patch
> 	linux-2.4.20-oprofile-hammer.patch
> 	linux-2.4.20-oprofile.patch
> 	linux-2.4.20-orinoco.patch
> 	linux-2.4.20-pagereferenced.patch
> 	linux-2.4.20-pre1-nr_frags.patch
> 	linux-2.4.20-ptrace-hammer.patch
> 	linux-2.4.20-ptrace.patch
> 	linux-2.4.20-pwcupdate.patch
> 	linux-2.4.20-rmap15c.patch
> 	linux-2.4.20-sbp2-smpfixes.patch
> 	linux-2.4.20-selected-ac-bits.patch
> 	linux-2.4.20-serverworks.patch
> 	linux-2.4.20-siimage-fixes.patch
> 	linux-2.4.20-silraid.patch
> 	linux-2.4.20-softlockup.patch
> 	linux-2.4.20-speakup.patch
> 	linux-2.4.20-stackcoloring.patch
> 	linux-2.4.20-statm.patch
> 	linux-2.4.20-swapoff-match.patch
> 	linux-2.4.20-usb-bug72604.patch
> 	linux-2.4.20-usb-bug81091.patch
> 	linux-2.4.20-usb-bug82546.patch
> 	linux-2.4.20-vmplayground.patch
> 	linux-2.4.20-x86_64-fixes.patch
> 	linux-2.4.20-x86_64-updates.patch
> 	linux-2.4.20-x86_64.patch
> 	linux-2.4.20-xattr-ext3.patch
> 	linux-2.4.20-xattr-mbcache.patch
> 
> Best wishes from Riley.
> ---
>  * Nothing as pretty as a smile, nothing as ugly as a frown.
> 
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.491 / Virus Database: 290 - Release Date: 18-Jun-2003
> 

-- 
Robert Hyatt                    Computer and Information Sciences
hyatt@cis.uab.edu               University of Alabama at Birmingham
(205) 934-2213                  115A Campbell Hall, UAB Station 
(205) 934-5473 FAX              Birmingham, AL 35294-1170

-
To unsubscribe from this list: send the line "unsubscribe linux-smp" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic