[debian-mysql] Bug#813199: mysql-5.6: support s390x in the testsuite

Dimitri John Ledkov xnox at ubuntu.com
Sun Jan 31 11:47:56 UTC 2016


On Sat, 30 Jan 2016 14:38:20 +0100 Dimitri John Ledkov <xnox at ubuntu.com> wrote:
> Package: mysql-5.6
> Version: 5.6.28-1
> Severity: wishlist
>
> Hello,
>
> I'm running autopkgtests on s390x, and they fail. There is a perl
> module which is parsing /proc/cpuinfo. However, cpuinfo has quite
> different output on s390x:
>
> vendor_id       : IBM/S390
> # processors    : 4
> bogomips per cpu: 3033.00
> features : esan3 zarch stfle msa ldisp eimm dfp etf3eh highgprs
> cache0          : level=1 type=Data scope=Private size=128K
> line_size=256 associativity=8
> cache1          : level=1 type=Instruction scope=Private size=96K
> line_size=256 associativity=6
> cache2          : level=2 type=Data scope=Private size=2048K
> line_size=256 associativity=8
> cache3          : level=2 type=Instruction scope=Private size=2048K
> line_size=256 associativity=8
> cache4          : level=3 type=Unified scope=Shared size=65536K
> line_size=256 associativity=16
> cache5          : level=4 type=Unified scope=Shared size=491520K
> line_size=256 associativity=30
> processor 0: version = FF,  identification = 018F67,  machine = 2964
> processor 1: version = FF,  identification = 018F67,  machine = 2964
> processor 2: version = FF,  identification = 018F67,  machine = 2964
> processor 3: version = FF,  identification = 018F67,  machine = 2964
>
> Notice, how there are no redundant paragraphs of text per each cpu
> core. And that there is simply a "comment" specifying how many there
> are. Also it's "features", rather than "flags".
>
> Imho, /proc/cpuinfo should not be parsed for such things, and e.g.
> instead nproc should be called to find number of the CPUs. Anyway, i
> have "fixed" these things up, hopefully in an unintrusive way. Would
> you please consider applying the below patch?
>

Well the attached patch only partially fixed the problem... e.g.
inside lxc adt test bed /proc/cpuinfo is empty for some reason.
And it was an ugly patch anyway. Thus instead, I think we should do
things properly as I have originally intended, i.e. use nproc.

So please patch upstream pep test to set --parallel=`nproc`, this
succeeds on lxc adt runner on s390x, and all other architectures.

Regards,

Dimitri.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fix-pep8.patch
Type: text/x-patch
Size: 624 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-mysql-maint/attachments/20160131/a6c10fe5/attachment.bin>


More information about the pkg-mysql-maint mailing list