From: Arthur Hagenvices Subject: Re: Shadow passwords through NIS? Date: 22 Mar 2000 00:00:00 GMT Message-ID: <38D95147.4F51562A@broomstick.com> Content-Transfer-Encoding: 7bit References: <38CE2883.6BC85F60@broomstick.com> <38CE3CC2.1A83F0F0@mail.dotcom.fr> <38CE4A28.720BD1E8@broomstick.com> X-Accept-Language: no, en Content-Type: text/plain; charset=us-ascii X-Complaints-To: newsabuse@supernews.com Organization: Posted via Supernews, http://www.supernews.com MIME-Version: 1.0 Newsgroups: comp.sys.sgi.admin Jan-Frode Myklebust wrote: > > On Tue, 14 Mar 2000 09:18:16 -0500, Arthur Hagen wrote: > > > >John the Ripper, version 1.6 - slightly rewritten to use 64 bits under > >N32 instead of 32 bits (for an almost 100% speed increase), > > Would you be willing to share a patch? > > I'm having some problems with john, it doesn't seem to work when I compile > with 'irix-mips64-cc' (+ -IPA -Ofast=ip27), it coredumps and the 32 bit > version is half the speed.. Sure. With n32, you have to specify that int's are still 32 bit, but long long is 64-bit. Copy one of the mips??.h entries to a new file, and make sure it includes: #define ARCH_GENERIC 1 #define ARCH_WORD long long #define ARCH_SIZE 8 #define ARCH_BITS 64 #define ARCH_BITS_STR "64" #define ARCH_LITTLE_ENDIAN 0 #define ARCH_INT_GT_32 0 #define ARCH_ALLOWS_UNALIGNED 0 #define ARCH_INDEX unsigned long long I recommend these flags for compiling (in the Makefile) for an ip27 system: CFLAGS="-c -n32 -Ofast=ip_27 -signed" LDFLAGS="-s -n32 -IPA:plimit=256" A good "rule of thumb" for plimit seems to be "cache size per CPU in kilobytes divided by four" - somewhat more if the kernel slice_size has been increased from the default 2 on a single CPU machine. Of course this varies depending on the application, but 256 seems to be a reasonable default on 1MB SC machines, and 128 seems to be much better on 512k SC machines. For non-SC machines, I usually get slowdowns with any plimit above 64, or by not setting plimit but still using IPA. YMMV. If you have /etc/compiler.defaults set up to use n32 by default, you can skip the -n32 specification. Example /etc/compiler.defaults that will let your programs run on all R5000/R10000 equipped machines with 6.5: -DEFAULT:abi=n32:isa=mips4:proc=r5k Change the isa/proc to get more/less compatibility with other systems. After adding abi=n32 to /etc/compiler.defaults, you have to specify -64 specifically when you need it - most of the time -n32 will be better, as it leads to smaller, more compact code which executes faster, and still supports 64-bit data, so this is reasonable. To compile john without the platform specific -Ofast=ip27 and to work on slower machines with less cache, you may want to try: CFLAGS="-c -n32 -mips3 -O3 -OPT:Olimit=0 -IPA" LDFLAGS="-s -n32 -mips3 -IPA:plimit=128" Regards, -- *Art