sun's longitude:243 37 17.88 
· 자유게시판 · 묻고답하기 · 알파문서 · RPMS list
· 사용자문서 · 팁/FAQ모음 · 리눅스Links · 자료실
· 서버정보 · 운영자 · Books/FAQ · FreeBSD
/board/delete.php:소스보기  
알파문서
자주 잊어먹거나, 메모해 둘 필요성이 있는 팁이나 문서, 기타 등등
[*** 쓰기 금지단어 패턴 ***]
글 본문 중간에 업로드할 이미지를 추가하는 방법 : @@이미지이름@@
ex) @@foo.gif@@
 ★ 글 지우기 항목입니다. 한번 더 생각하시고 결정하십시오.!!!
제목 172 : [Linux] Linux 커널 2.4 FD 패치
 이름  산이 [홈]http://linuxchannel.net/
[Linux] Linux 커널 2.4 FD 패치

----------------------------------------------------
#!/bin/sh
#
# -- Linux kernel 2.4 FD patch
# -- san2@2005.10.20
#
# -- http://vce.ce-lab.net/doc/vce/en/linuxtune.html
#

[ -s linux/include/linux/fs.h ] &&
{
cp -f linux/include/linux/fs.h linux/include/linux/fs.h.orig
sed -e "s/^#define INR_OPEN[[:space:]]\+[0-9]\+/#define INR_OPEN 8192/" \
-e "s/^#define NR_FILE[[:space:]]\+[0-9]\+/#define NR_FILE 16384/" \
< linux/include/linux/fs.h linux/include/linux/fs.h.orig \
> linux/include/linux/fs.h

echo
echo linux/include/linux/fs.h
grep "^#define INR_OPEN\|^#define NR_FILE" < linux/include/linux/fs.h
}

[ -s linux/include/linux/limits.h ] &&
{
cp -f linux/include/linux/limits.h linux/include/linux/limits.h.orig
sed -e "s/^#define NR_OPEN[[:space:]]\+[0-9]\+/#define NR_OPEN 16384/" \
-e "s/^#define OPEN_MAX[[:space:]]\+[0-9]\+/#define OPEN_MAX 8192/" \
< linux/include/linux/limits.h.orig \
> linux/include/linux/limits.h

echo
echo linux/include/linux/limits.h
grep "^#define NR_OPEN\|^#define OPEN_MAX" < linux/include/linux/limits.h
}

[ -s linux/include/linux/posix_types.h ] &&
{
cp -f linux/include/linux/posix_types.h linux/include/linux/posix_types.h.orig
sed -e "s/^#define __FD_SETSIZE[[:space:]]\+[0-9]\+/#define __FD_SETSIZE 8192/" \
-e "s/^#define OPEN_MAX[[:space:]]\+[0-9]\+/#define OPEN_MAX 8192/" \
< linux/include/linux/posix_types.h.orig \
> linux/include/linux/posix_types.h

echo
echo linux/include/linux/posix_types.h
grep "^#define __FD_SETSIZE\|^#define OPEN_MAX" < linux/include/linux/posix_types.h
}

[ -s /usr/include/bits/types.h ] &&
{
cp -f /usr/include/bits/types.h /usr/include/bits/types.h.orig
sed -e "s/^#define[[:space:]]\+__FD_SETSIZE[[:space:]]\+[0-9]\+/#define __FD_SETSIZE 8192/" \
< /usr/include/bits/types.h.orig \
> /usr/include/bits/types.h

echo
echo /usr/include/bits/types.h
grep "__FD_SETSIZE" < /usr/include/bits/types.h
}

[ -s /usr/include/bits/typesizes.h ] &&
{
cp -f /usr/include/bits/typesizes.h /usr/include/bits/typesizes.h.orig
sed -e "s/^#define[[:space:]]\+__FD_SETSIZE[[:space:]]\+[0-9]\+/#define __FD_SETSIZE 8192/" \
< /usr/include/bits/typesizes.h.orig \
> /usr/include/bits/typesizes.h

echo
echo /usr/include/bits/typesizes.h
grep "__FD_SETSIZE" < /usr/include/bits/typesizes.h
}

exit $?
----------------------------------------------------
2007년 05월 09일 06:13:45 수(오전)  from 211.212.249.68
File ☆ 자료(파일:kernel-2.4-fd.patch.sh.txt)가 있는 글입니다. !!!
0
암호: 공용 보안 SSL 서버가 준비되기 전까지는 off 합니다

apache lighttpd linuxchannel.net 
Copyright 1997-2024. linuxchannel.net. All rights reserved.

Page loading: 0.01(server) + (network) + (browser) seconds