- install dasd udev rules provided by the s390-tools
- added patch for setting readahead value
This commit is contained in:
parent
3085ce2c4a
commit
42fa73d556
38
0011-update-readahead-value-for-better-performance.patch
Normal file
38
0011-update-readahead-value-for-better-performance.patch
Normal file
@ -0,0 +1,38 @@
|
||||
From 5707bfdf0aac985e8e82c9a5004eb458d1d79801 Mon Sep 17 00:00:00 2001
|
||||
From: =?utf-8?q?Dan=20Hor=C3=A1k?= <dan@danny.cz>
|
||||
Date: Fri, 30 Oct 2009 11:23:08 +0100
|
||||
Subject: [PATCH] update readahead value for better performance
|
||||
|
||||
Description: dasd,zfcp: Add udev rule to set increased "default max readahead"
|
||||
Symptom: Sequential read performance on disks is not as good as it could be.
|
||||
Problem: The current "default max readahead" defined by the kernel is too
|
||||
small for s390 (128 kb).
|
||||
Solution: Add udev rule to set a better default value (512 kb). This will
|
||||
increase sequential read performance up to 40%.
|
||||
---
|
||||
etc/udev/rules.d/60-readahead.rules | 13 +++++++++++++
|
||||
1 files changed, 13 insertions(+), 0 deletions(-)
|
||||
create mode 100644 etc/udev/rules.d/60-readahead.rules
|
||||
|
||||
diff --git a/etc/udev/rules.d/60-readahead.rules b/etc/udev/rules.d/60-readahead.rules
|
||||
new file mode 100644
|
||||
index 0000000..3133c66
|
||||
--- /dev/null
|
||||
+++ b/etc/udev/rules.d/60-readahead.rules
|
||||
@@ -0,0 +1,13 @@
|
||||
+#
|
||||
+# Rules to set an increased default max readahead size for s390 disk devices
|
||||
+# This file should be installed in /etc/udev/rules.d
|
||||
+#
|
||||
+
|
||||
+SUBSYSTEM!="block", GOTO="ra_end"
|
||||
+
|
||||
+ACTION!="add", GOTO="ra_end"
|
||||
+# on device add set initial readahead to 512 (instead of in kernel 128)
|
||||
+KERNEL=="sd*[!0-9]", ATTR{queue/read_ahead_kb}="512"
|
||||
+KERNEL=="dasd*[!0-9]", ATTR{queue/read_ahead_kb}="512"
|
||||
+
|
||||
+LABEL="ra_end"
|
||||
--
|
||||
1.6.3.3
|
||||
|
@ -1,2 +0,0 @@
|
||||
KERNEL=="dasd*[a-z]", SUBSYSTEM=="block", PROGRAM=="/bin/sh -c 'cd /sys/block/$kernel/device;a=$$(pwd -P);echo $${a##*/}'", SYMLINK+="dasd/%c/disc"
|
||||
KERNEL=="dasd*[0-9]", SUBSYSTEM=="block", PROGRAM=="/bin/sh -c 'cd /sys/block/$parent/device;a=$$(pwd -P);echo $${a##*/}'", SYMLINK+="dasd/%c/part%n"
|
@ -8,7 +8,7 @@ Name: s390utils
|
||||
Summary: Utilities and daemons for IBM System/z
|
||||
Group: System Environment/Base
|
||||
Version: 1.8.2
|
||||
Release: 1%{?dist}
|
||||
Release: 2%{?dist}
|
||||
Epoch: 2
|
||||
License: GPLv2 and GPLv2+ and CPL
|
||||
Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
@ -23,7 +23,6 @@ Source5: zfcpconf.sh
|
||||
# http://www.ibm.com/developerworks/linux/linux390/src_vipa-%{vipaver}.html
|
||||
Source6: http://download.boulder.ibm.com/ibmdl/pub/software/dw/linux390/ht_src/src_vipa-%{vipaver}.tar.gz
|
||||
Source7: zfcp.udev
|
||||
Source8: dasd.udev
|
||||
# http://www.ibm.com/developerworks/linux/linux390/zfcp-hbaapi-%{hbaapiver}.html
|
||||
Source9: http://download.boulder.ibm.com/ibmdl/pub/software/dw/linux390/ht_src/lib-zfcp-hbaapi-%{hbaapiver}.tar.gz
|
||||
|
||||
@ -37,6 +36,7 @@ Patch7: 0007-s390-tools-1.8.1-lszfcp-perf.patch
|
||||
Patch8: 0008-fix-string-overflow-in-vtoc_volume_label_init.patch
|
||||
Patch9: 0009-change-default-load-address-for-ramdisk.patch
|
||||
Patch10: 0010-improve-mon_statd-init-script.patch
|
||||
Patch11: 0011-update-readahead-value-for-better-performance.patch
|
||||
|
||||
Patch100: cmsfs-1.1.8-warnings.patch
|
||||
Patch101: cmsfs-1.1.8-kernel26.patch
|
||||
@ -95,6 +95,9 @@ be used together with the zSeries (s390) Linux kernel and device drivers.
|
||||
# Improve mon_statd init script
|
||||
%patch10 -p1 -b .improve-mon_statd
|
||||
|
||||
# Update readahead value for better performance
|
||||
%patch11 -p1 -b .readahead
|
||||
|
||||
#
|
||||
# cmsfs
|
||||
#
|
||||
@ -163,7 +166,7 @@ popd
|
||||
%install
|
||||
rm -rf ${RPM_BUILD_ROOT}
|
||||
|
||||
mkdir -p $RPM_BUILD_ROOT{%{_lib},%{_libdir},/sbin,/bin,/boot,%{_mandir}/man1,%{_mandir}/man8,%{_sbindir},%{_bindir},%{_sysconfdir}/{profile.d,udev/rules.d,rc.d/init.d,sysconfig}}
|
||||
mkdir -p $RPM_BUILD_ROOT{%{_lib},%{_libdir},/sbin,/bin,/boot,%{_mandir}/man1,%{_mandir}/man8,%{_sbindir},%{_bindir},%{_sysconfdir}/{profile.d,udev/rules.d,sysconfig},%{_initddir}}
|
||||
|
||||
make install \
|
||||
INSTROOT=$RPM_BUILD_ROOT \
|
||||
@ -172,17 +175,11 @@ make install \
|
||||
DISTRELEASE=%{release} \
|
||||
V=1
|
||||
|
||||
mkdir -p ${RPM_BUILD_ROOT}%{_sysconfdir}/sysconfig
|
||||
mkdir -p ${RPM_BUILD_ROOT}%{_initddir}
|
||||
mkdir -p ${RPM_BUILD_ROOT}%{_sysconfdir}/udev/rules.d
|
||||
mkdir -p ${RPM_BUILD_ROOT}/sbin
|
||||
|
||||
install -p -m 644 zipl/boot/tape0.bin $RPM_BUILD_ROOT/boot/tape0
|
||||
install -p -m 644 %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/profile.d
|
||||
install -p -m 644 %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/profile.d
|
||||
install -p -m 755 %{SOURCE5} $RPM_BUILD_ROOT/sbin
|
||||
install -p -m 644 %{SOURCE7} $RPM_BUILD_ROOT%{_sysconfdir}/udev/rules.d/56-zfcp.rules
|
||||
install -p -m 644 %{SOURCE8} $RPM_BUILD_ROOT%{_sysconfdir}/udev/rules.d/56-dasd.rules
|
||||
|
||||
install -p -m 644 etc/sysconfig/dumpconf ${RPM_BUILD_ROOT}%{_sysconfdir}/sysconfig
|
||||
install -p -m 755 etc/init.d/dumpconf ${RPM_BUILD_ROOT}%{_initddir}/dumpconf
|
||||
@ -193,7 +190,7 @@ install -p -m 755 etc/init.d/mon_statd ${RPM_BUILD_ROOT}%{_initddir}/mon_statd
|
||||
install -p -m 644 etc/sysconfig/cpuplugd ${RPM_BUILD_ROOT}%{_sysconfdir}/sysconfig
|
||||
install -p -m 755 etc/init.d/cpuplugd ${RPM_BUILD_ROOT}%{_initddir}/cpuplugd
|
||||
|
||||
install -Dp -m 644 etc/udev/rules.d/57-osasnmpd.rules ${RPM_BUILD_ROOT}%{_sysconfdir}/udev/rules.d
|
||||
install -Dp -m 644 etc/udev/rules.d/*.rules ${RPM_BUILD_ROOT}%{_sysconfdir}/udev/rules.d
|
||||
|
||||
# cmsfs tools must be available in /sbin
|
||||
install -p -m 755 cmsfs-%{cmsfsver}/cmsfscat $RPM_BUILD_ROOT/sbin
|
||||
@ -464,8 +461,9 @@ fi
|
||||
/boot/tape0
|
||||
%{_sysconfdir}/profile.d/s390.csh
|
||||
%{_sysconfdir}/profile.d/s390.sh
|
||||
%config(noreplace) %{_sysconfdir}/udev/rules.d/56-dasd.rules
|
||||
%config(noreplace) %{_sysconfdir}/udev/rules.d/56-zfcp.rules
|
||||
%config(noreplace) %{_sysconfdir}/udev/rules.d/59-dasd.rules
|
||||
%config(noreplace) %{_sysconfdir}/udev/rules.d/60-readahead.rules
|
||||
/sbin/zfcpconf.sh
|
||||
|
||||
# src_vipa
|
||||
@ -760,6 +758,10 @@ User-space development files for the s390/s390x architecture.
|
||||
|
||||
|
||||
%changelog
|
||||
* Fri Oct 30 2009 Dan Horák <dan[at]danny.cz> 2:1.8.2-2
|
||||
- install dasd udev rules provided by the s390-tools
|
||||
- added patch for setting readahead value
|
||||
|
||||
* Thu Oct 8 2009 Dan Horák <dan[at]danny.cz> 2:1.8.2-1
|
||||
- added patch for improving mon_statd behaviour
|
||||
- rebased to 1.8.2
|
||||
|
Loading…
Reference in New Issue
Block a user