Previous Entry Share Next Entry
Gearman
Church Square
tobyaw
Spent some time this week getting Gearman working across four Solaris servers, in order to spread the load of thumbnail generation. Quite straightforward to set up, and about as simple as it could be to write the client and worker scripts.

Only real pain was getting the Perl modules installed via CPAN; the OpenSolaris servers (running snv_134b) appear to have a mishmash of Sun and GNU developer tools installed, and I had to edit /usr/perl5/5.8.4/lib/i86pc-solaris-64int/Config.pm to change the compiler options from:
cccdlflags=’-KPIC’
optimize=’-xO3 -xspace -xildoff’
to
cccdlflags=’’
optimize=’’
before CPAN would install all of the modules. Perhaps there are better options to use here, but blanking them worked.

  • 1

CPAN v native packaging

There are often little conflicts between the native packages and CPAN. Back on Solaris 2.5.1 I remember building Perl 5 and the modules I needed from source - packaging free software wasn't as prevalent as it is now, of course.

You almost certainly want at least the -x03 or similar, otherwise you get fully unoptimised compilation, with truly dire results. (Microsoft spent a while debugging a new build of SQL Server which was more than an order of magnitude too slow, eventually realising it was the lack of optimisation to blame: the non-optimised code had an inner loop too big to fit in the instruction cache, choking the CPU up.)

See what "perl -V" says Perl itself was built with; mixing code from Sun cc with code from gcc is a bit risky. Did you configure CPAN.pm yourself, or was it preinstalled?

  • 1
?

Log in

No account? Create an account