Email me to avalon_at_friendofpooh_dot_company
HDD benchmark using hdparm to change drive options.
I read http://www.linuxdevcenter.com/pub/a/linux/2000/06/29/hdparm.html and
I made my own tests, which show that important are DMA and write cache.
First I see the info from HDDs. I set some features and run test which is
#dd if=/dev/zero of=/dev/hdx.
See the scripts in the end of the file.
See my test:
Test Setup and Result File
Updated 31.10.2006
I have connected few Proxima Tsunami MP.11 wireless units and
The config script is written on php.
Monitoring scripts use only snmpget, dc and bash, so you must care
which version of snmp-utils you are using.
Also check the PATH variable at the beginning of the scripts.
See README for more instructions.
These scripts work only if you have single Tsunami Base Station and single Sattelite Station for each link, because for each device I use OriWORPIfStatTableEntry table (view mib file) for the 3th interface of the device (the wireless interface). If you have more sattelite stations, you have to use the same script for them, but for the base station you must use entries in the OriWORPIfSatStatTableEntry table. Every link is indexed, so to monitor noise use for example oriWORPIfSatStatTableAverageLocalNoise.2 for the second link. The other way is to monitor each link by querying only sattelite devices and reverse oriWORPIfStatTableAverageLocalNoise.3 with oriWORPIfStatTableAverageRemoteNoise.3 for the base station.
With this updated version you could easily implement the latter workaround.
Config and monitoring scripts, orinoco.mib and README
(($uns1>=0)) || (($uns2<0)) && signed=$(( $uns1-$uns2 )) || \
signed=$(( 1+(2147483647-$uns2)+(2147483647+$uns1)+1 ))
This is perfectly useful if you are braindead.
function strcmp() {
local i=$1
local j=$2
(( ${#i} < ${#j} )) && return 2;
(( ${#i} > ${#j} )) && return 1;
[[ "$i" == "$j" ]] && return 0;
[[ $i<$j ]] && return 2;
[[ $i>$j ]] && return 1;
}
Use the function for example this way:
strcmp $int1 $int2; (( $? == 1 )) && dosomething;
function getresult() {
shift;
rez=$*
}
getrez $string;
Be smart and write code to suit your needs.
./boinc_self_extractor cd BOINC useradd boinc chown -R boinc . mkdir -p /var/boinc/etc mv * /var/boinc mkdir /var/boinc/dev mkdir /var/boinc/proc mkdir /var/boinc/lib cp -a /dev/null /dev/random /dev/urandom /dev/zero /var/boinc/dev cd /etc cp group host.conf hosts localtime nsswitch.conf passwd resolv.conf /var/boinc/etc cd /var/boinc/etc mcedit passwd mcedit group mcedit what_you_need cd /lib cp ld-linux.so.2 libnsl.so.1 libnss_dns.so.2 libnss_hesiod.so.2 libnss_nisplus.so.2 /var/boinc/lib cp libc.so.6 libnss_compat.so.2 libpthread.so.0 libdl.so.2 libresolv.so.2 libm.so.6 /var/boinc/lib cp any_other_libs_shown_with_ldd /var/boinc/lib
You can now create scripts to run the applications.
Note that you may need the compartment utility or use a similar one.
The first one is to run the client:
#!/bin/bash dir="/var/boinc" cat /proc/cpuinfo > $dir/proc/cpuinfo cat /proc/meminfo > $dir/proc/meminfo exec compartment --user boinc --chroot $dir boinc $*
The second script is for the boinc_cmd. If you need the manager I guess it is easier to copy the file with the password to a location known to the manager and not chroot it or connect to the client from another host...
#!/bin/bash exec compartment --user boinc --chroot /var/boinc boinc_cmd $*
HARDWARE: WAP54G v1.0
SOFTWARE: White RUSSIAN RC4
REQUIRED PACKAGEs: nas (Yes, the official! ipkg install nas)
Here are my wl0 variables. They are all the same for both devices and only wl0_wds must differ. Relevant are:
wl0_wds_wpa_psk
wl0_wpa_psk
wl0_wds_akm
wl0_akm
wl0_wds_crypto
wl0_crypto
NOTE that to have wpa working, you need only these WITHOUT "wds". To have wpa working on the wds link you MUST specify all "wds" containing variables even if they are tha same as the other. Here I post all other variables I have. wds-wpa-aes.cfg
Tip 1: To have wds working at all, you may need to NOT use lazy_wds!
Tip 2: May need to set wl0_auth_mode to radius or psk to be able to use
psk2 or wpa2 (see openwrt wiki for many answers).
Tip 3: To generate 60 digit hex keys you can use php file as this:
<?php
for ($i=1; $i<=60; $i++) {
$a=rand(0,15);
echo dechex($a);
}
echo "\n";
?>
So I wrote a php script which basically "flush tables with read lock", echoes
it's PID and goes to background waiting to be killed to unlock tables. It is
intended to be used within a shell script in place of rc.mysql stop and start.
Please read instructions into the script itself, because it requires pcntl
and posix modules in php cli or cgi sapi. There is also usage information
depending on php version/bug.
Download from here.