[OpenAFS-devel] 1.3.78 on AIX 5.1 broken, stack issues

Niklas Edmundsson Niklas.Edmundsson@hpc2n.umu.se
Thu, 17 Feb 2005 17:04:22 +0100 (MET)


  This message is in MIME format.  The first part should be readable text,
  while the remaining parts are likely unreadable without MIME-aware tools.

---559023410-1251336619-1108652930=:9680
Content-Type: TEXT/PLAIN; CHARSET=US-ASCII; FORMAT=flowed
Content-ID: <Pine.GSO.4.61.0502171608531.9680@khan.acc.umu.se>


Hi!

I finally found some time to test openafs 1.3 on AIX 5.1, and the 
results indicates that there are some issues with stack size...

My test machine is a single CPU AIX5.1 machine running the 32bit 
kernel. Harald Barths AIX 5.2 test machine was running the 64bit 
kernel I think.

On the first try (compiling plain openafs-1.3.78), the machine dumped 
as soon I obtained an AFS token.

The next approach was to make openafs handle AIX 5.1 the same way as 
AIX 5.2 (ie. a modification of the patch Harald did). This means a 
128kB stack instead of 48kB. This way, I could log in and obtain an 
AFS token, but 'find /afs/some/where -type f >/dev/null' fails on 
random files with messages like:
find: 0652-019 The status on ./a2273475.pdf is not valid.

Suspecting more stack smashage, I increased the stack to 512kB. Now it 
works better, but it only takes more users with tokens to make the 
above "find"-test fail.

The result is a bit better than dying-upon-login though, so I have 
attached the resulting patch. Since Harald only tested hist patch on 
the 64bit kernel I assume that my results are valid for AIX 5.2 on 
32bit too, I don't have a chrp test machine handy to verify that 
though.

Someone with more Clue<tm> on the openafs innards might want to look 
into this, since 512kB stack in kernel space really should be enough. 
I really have no idea where to look, and finding that the issue was 
seemingly stack related was more luck than skill on my part ;)

Ideas?

/Nikke
-- 
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  Niklas Edmundsson, Admin @ {acc,hpc2n}.umu.se     |    nikke@hpc2n.umu.se
---------------------------------------------------------------------------
  A penny saved is a penny.
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
---559023410-1251336619-1108652930=:9680
Content-Type: TEXT/PLAIN; CHARSET=US-ASCII; NAME="openafs-aix51.patch"
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.GSO.4.61.0502171608500.9680@khan.acc.umu.se>
Content-Description: 
Content-Disposition: ATTACHMENT; FILENAME="openafs-aix51.patch"

ZGlmZiAtd3J1IC4uL29wZW5hZnMtMS4zLjc4Lm9yaWcvc3JjL2x3cC9sd3Au
aCAuL3NyYy9sd3AvbHdwLmgNCi0tLSAuLi9vcGVuYWZzLTEuMy43OC5vcmln
L3NyYy9sd3AvbHdwLmgJVHVlIERlYyAgNyAxNzo0ODo0MyAyMDA0DQorKysg
Li9zcmMvbHdwL2x3cC5oCVRodSBGZWIgMTcgMTQ6MDU6NDEgMjAwNQ0KQEAg
LTMwMiw4ICszMDIsOCBAQA0KICNpZiBkZWZpbmVkKEFGU19MSU5VWDIyX0VO
VikNCiAjZGVmaW5lIEFGU19MV1BfTUlOU1RBQ0tTSVpFCSgxOTIgKiAxMDI0
KQ0KICNlbHNlDQotI2lmIGRlZmluZWQoQUZTX0FJWDUyX0VOVikNCi0jZGVm
aW5lIEFGU19MV1BfTUlOU1RBQ0tTSVpFCSgxMjggKiAxMDI0KQ0KKyNpZiBk
ZWZpbmVkKEFGU19BSVg1MV9FTlYpIHx8IGRlZmluZWQoQUZTX0FJWDUyX0VO
VikNCisjZGVmaW5lIEFGU19MV1BfTUlOU1RBQ0tTSVpFCSg1MTIgKiAxMDI0
KQ0KICNlbHNlDQogI2RlZmluZSBBRlNfTFdQX01JTlNUQUNLU0laRQkoNDgg
KiAxMDI0KQ0KICNlbmRpZg0KZGlmZiAtd3J1IC4uL29wZW5hZnMtMS4zLjc4
Lm9yaWcvc3JjL3J4a2FkL3J4a2FkLnAuaCAuL3NyYy9yeGthZC9yeGthZC5w
LmgNCi0tLSAuLi9vcGVuYWZzLTEuMy43OC5vcmlnL3NyYy9yeGthZC9yeGth
ZC5wLmgJV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