Re: KNOPPIX 4.0.2 2005-09-12 mysql-server: old_password = 1
On Sun, Sep 25, 2005 at 01:52:11PM +0100, Sebastian Rahtz wrote:
> Klaus Knopper wrote:
>
> >
> >unionfs with a bunch of bugfixed seems somewhat slower than the old
> >version (I have not run any benchmarks, though). But the mkisofs
> >sortlist has been created with a new file sorting scheme based on an
> >open() strace, which seems to improve seek times a lot. :-)
> >
> >
> can you give some clues on how to replicate this effect in
> a remaster? my remastered 4.01 (which I am just about to
> redo with 4.02) seems quite slower than our previous 3.6
> remaster.
Attached a script for evaluating an open() strace log and generating the
mkisofs sort list. I usually do an strace on /etc/init.d/xsession to get
the X and KDE-relevant files in the right sort search order (which
speeds up KDE startup, but it's not perfect yet). This script is more
reliable than the older find-based script, beause multiple open()s are
ignored.
> >I wonder how you discovered it, I haven't even officially announced it
> >yet to give mirrors some time to download it. ;-)
> >
> >
> it's all over the forum on knoppix.net
I see. There must be people lurking on the mirrors constantly... ;-)
Regards
-Klaus Knopper
#!/bin/sh
# Monitor kernel patch is obsolete
# cat /KNOPPIX.build/accesslist.log | sed 's|/KNOPPIX||g; s|/ramdisk||g' | tr '\t' '|' | sort -t'|' -s | sort -t'|' -s -n +3 | sort -s -t'|' -n +2 | sort -u -t '|' -k2,2 | sort -t'|' -n +3 | sort -s -t'|' -n +2 | tac | awk -F'|' '/Open:/{ print $2 "\t" ++i}' | egrep -v "^/proc|^/sys" > /KNOPPIX.build/mkisofs.sort
read -p "Name of 'strace -e trace=open -f command' file: " log
[ -f "$log" ] || { echo "File does not exist, exiting."; exit 1; }
echo "/etc/* 2000009" > /KNOPPIX.build/mkisofs.sort
echo "/dev/* 2000008" >> /KNOPPIX.build/mkisofs.sort
echo "/bin/mkdir 2000007" >> /KNOPPIX.build/mkisofs.sort
echo "/bin/chown 2000006" >> /KNOPPIX.build/mkisofs.sort
echo "/bin/cp 2000005" >> /KNOPPIX.build/mkisofs.sort
echo "/bin/ln 2000004" >> /KNOPPIX.build/mkisofs.sort
echo "/bin/rm 2000003" >> /KNOPPIX.build/mkisofs.sort
echo "/lib/* 2000001" >> /KNOPPIX.build/mkisofs.sort
# Sort files starting with priority 2000000 (max is 2G)
perl -p -e 'BEGIN{$prio=2000000;}if($_ =~ /\"([^\"]+)\"/g && -e $1) { $f="$1"; $e=quotemeta($f); print "$f\t",$prio--,"\n" if (! grep (/^$e$/,@seen)); push (@seen,$f);} ; $_=""; exit if($prio<=0);' "$log" >>/KNOPPIX.build/mkisofs.sort
Reply to: