How to increase the NFSD Maximum blocksize for kernel 2.4.22-1.2188.nptl

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi!
I would like to optimize the NFS performance, so I tried to change the
include/linux/nfsd/const.h in the kernel SRPM kernel-2.4.22-1.2188.nptl.src.rpm.
Set NFSSVC_MAXBLKSIZ to be 32K like this:
#define NFSSVC_MAXBLKSIZ       (32*1024)

I inserted a script in the kernel-2.4.spec, just after the %prep like
this:
--------------------------------------------------------
%prep

%setup -q -n %{name}-%{version} -c
cd linux-%{version}

# increase the NFS maximum block size, added by Steven Shiau.
perl -p -i -e "s/^#define NFSSVC_MAXBLKSIZ.*/#define NFSSVC_MAXBLKSIZ (32*
1024)/" include/linux/nfsd/const.h
...
--------------------------------------------------------

But when I tried to compile it using
rpmbuild -ba --target i386 --target i586 --target i686 --target athlon --sign kernel-2.4.spec
The compilation failed, the message is:
--------------------------------------------------------
...SKIP...
/home/steven/rpmbuild/BUILD/kernel-2.4.22/linux-2.4.22/include/linux/interrupt.h:19:1: warning: this is the location of the previous definition
ac97_plugin_ad1980.c:92: warning: initialization from incompatible pointer type
cardwi.c: In function `emu10k1_wavein_open':
cardwi.c:173: warning: implicit declaration of function `emu10k1_reset_record'
timer.c: In function `emu10k1_timer_install':
timer.c:88: warning: implicit declaration of function `emu10k1_timer_set'
timer.c: In function `emu10k1_timer_uninstall':
timer.c:111: warning: large integer implicitly truncated to unsigned type
cs4281_wrapper.h:32: warning: `cs4281_null_suspend' defined but not used
cs4281_wrapper.h:33: warning: `cs4281_null_resume' defined but not used
main.c:236:2: warning: #warning "Initialisation order race. Must register after usable"
sddr09.c:448: warning: `sddr09_request_sense' defined but not used
pm3fb.c: In function `cleanup_module':
pm3fb.c:3836: warning: passing arg 2 of `__release_region_Rd49501d4' makes integer from pointer without a cast
pm3fb.c:3839: warning: passing arg 2 of `__release_region_Rd49501d4' makes integer from pointer without a cast
aty128fb.c: In function `aty128fb_ioctl':
aty128fb.c:2478: warning: unused variable `fb'
aty128fb.c:2479: warning: unused variable `value'
aty128fb.c:2480: warning: unused variable `rc'
aty128fb.c: At top level:
aty128fb.c:1066: warning: `aty128_set_crt_enable' defined but not used
aty128fb.c:1076: warning: `aty128_set_lcd_enable' defined but not used
sstfb.c: In function `sstfb_ioctl':
sstfb.c:971: warning: unused variable `i'
atyfb_base.c: In function `aty_init':
atyfb_base.c:1777: warning: unused variable `pm'
atyfb_base.c:1777: warning: unused variable `hs'
fbdev.c: In function `rivafb_init_one':
fbdev.c:2224: warning: label `err_out_kfree' defined but not used
matroxfb_g450.c: In function `g450_compute_bwlevel':
matroxfb_g450.c:134: warning: duplicate `const'
matroxfb_g450.c:135: warning: duplicate `const'
matroxfb_g450.c: In function `matroxfb_g450_verify_mode':
matroxfb_g450.c:561: warning: unused variable `minfo'
matroxfb_maven.c: In function `maven_compute_bwlevel':
matroxfb_maven.c:359: warning: duplicate `const'
matroxfb_maven.c:360: warning: duplicate `const'
+ exit 1
error: Bad exit status from /home/steven/rpmbuild/tmp/rpm-tmp.37001 (%build)


RPM build errors:
Bad exit status from /home/steven/rpmbuild/tmp/rpm-tmp.37001 (%build)
--------------------------------------------------------

Where am I wrong ?
How can I increase the NFSD maximum blocksize for kernel ?

Thanks.
-- 
Please AVOID distributing documents in WORD, EXCEL or POWERPOINT format.
[Chinese Big5] 請避免散佈WORD, EXCEL 或是 POWERPOINT格式的檔案.
See http://www.fsf.org/philosophy/no-word-attachments.html
and http://www.cyut.edu.tw/~ckhung/published/997nodoc.shtml
----------------------------------
Steven Shiau
E-mail: steven _at_ nchc.org.tw; steven _at_ stick.idv.tw



[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux