summaryrefslogtreecommitdiffstats
path: root/initramfs/initrd-stuff/init
diff options
context:
space:
mode:
authorDirk von Suchodoletz2008-03-11 01:00:39 +0100
committerDirk von Suchodoletz2008-03-11 01:00:39 +0100
commit65ffac073065f2ef9765c907523b241041c8e88b (patch)
tree1cdbed9f4c48bc609c0883a2670ce110382997de /initramfs/initrd-stuff/init
parentinitial import of x11vnc plugin - further testing required (especially on sus... (diff)
downloadcore-65ffac073065f2ef9765c907523b241041c8e88b.tar.gz
core-65ffac073065f2ef9765c907523b241041c8e88b.tar.xz
core-65ffac073065f2ef9765c907523b241041c8e88b.zip
Optimization for dnbd2 settings ...
git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@1614 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'initramfs/initrd-stuff/init')
-rwxr-xr-xinitramfs/initrd-stuff/init10
1 files changed, 5 insertions, 5 deletions
diff --git a/initramfs/initrd-stuff/init b/initramfs/initrd-stuff/init
index 480c293c..e7256789 100755
--- a/initramfs/initrd-stuff/init
+++ b/initramfs/initrd-stuff/init
@@ -456,7 +456,6 @@ if [ -n "${bldmod}" ] ; then
sed "s,rootfs=,,;s,\",,g") "
[ "$rootfs" = " " ] && \
rootfs="$(cat /proc/cmdline|sed "s,.*rootfs=\",,;s,\".*,,") "
- usleep 5000
i=0
# assume no more than 16 different dnbd2 servers (default 4)
while [ "x$bldhost" != "x" -a $i -lt 16 ]; do
@@ -468,15 +467,16 @@ if [ -n "${bldmod}" ] ; then
bldhost=$(uri_token $bldsp server)
bldport=$(uri_token $bldsp port)
done
- # the deadline, cfq scheduler seem not a good idea here
- echo noop > /sys/block/vnbd0/queue/scheduler
+ # the cfq scheduler seem not a good idea here
+ echo deadline > /sys/block/vnbd0/queue/scheduler
# needed for some reason to settle initialization
+ sleep 1
i=0
while [ $(cat /sys/block/vnbd0/config/running) != 1 ] ; do
+ usleep 100000
echo 1 > /sys/block/vnbd0/config/running
- usleep 5000
i=$(($i + 1))
- if [ $i -ge 1000 ] ; then
+ if [ $i -ge 50 ] ; then
error "$init_dnbd2s"; break
fi
done