免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1219 | 回复: 9
打印 上一主题 下一主题

内核升级2.6.11.6的小问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2005-03-31 20:54 |只看该作者 |倒序浏览
环境:
hp proliant 380 + redhat linux 7.3(2.4.20)

准备升级到2.6.11.6,依次
tar xvfj linux-2.6.11.6.tar.bz2
cd linux-2.6.11.6
make mrproper
make config
make clean
make modules
make modules_install
make install
都很顺利完成了。然后
more /etc/grub.conf
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /boot/, eg.
#          root (hd0,0)
#          kernel /vmlinuz-version ro root=/dev/cciss/c0d0p2
#          initrd /initrd-version.img
#boot=/dev/cciss/c0d0
default=1
timeout=1
splashimage=(hd0,0)/grub/splash.xpm.gz
title Red Hat Linux (2.6.11.6)
        root (hd0,0)
        kernel /vmlinuz-2.6.11.6 ro root=/dev/cciss/c0d0p2
title Red Hat Linux (2.4.20-28.7smp)
        root (hd0,0)
        kernel /vmlinuz-2.4.20-28.7smp ro root=/dev/cciss/c0d0p2
       initrd /initrd-2.4.20-28.7smp.img

新核心怎么没有initrd /initrd-2.6.11.6.img?
然后new-kernel-pkg --mkinitrd --depmod --install 2.6.11.6也没有生成呀?

论坛徽章:
0
2 [报告]
发表于 2005-04-01 09:12 |只看该作者

内核升级2.6.11.6的小问题

img文件不是系统引导必须的。
好像是在做ramdisk时会用到的。

论坛徽章:
0
3 [报告]
发表于 2005-04-01 10:54 |只看该作者

内核升级2.6.11.6的小问题

原帖由 "jetwins" 发表:
img文件不是系统引导必须的。
好像是在做ramdisk时会用到的。


对呀。可是不能建立初始化的映像,我即便引导了,也不能加载modules\daemon

论坛徽章:
0
4 [报告]
发表于 2005-04-01 11:09 |只看该作者

内核升级2.6.11.6的小问题

我不是升级狂,无意义的升级我是不做的

升级的原因,此服务器是linux + tomcat(5.5.4) + jdk 1.5
而tomcat在访问量大的时候除了静态页面,解释.jsp就死掉了。
ps -C java,有很多死锁的进程。在设置调度监控后,它一旦死掉就shutdown&startup,然而有时由于死锁的请求过多,根本无法restart。这对于一个日访问量在7万左右的网站而言,tomcat频繁停止服务是无法忍受的……

我和同事尝试过升级或降级tomcat和微调server.xml、对jsp排错等等措施,仍无效。后来在sun公司的论坛发贴得知,这竟然是一个普遍现象!tomcat毕竟是免费的,它请求分配内存的机制与linux 2.4,存在bug,也许bsd+tomcat就没这个问题。

只好试试2.6了

论坛徽章:
0
5 [报告]
发表于 2005-04-01 11:53 |只看该作者

内核升级2.6.11.6的小问题

哦?有这方面BUG介绍的URL吗?

论坛徽章:
0
6 [报告]
发表于 2005-04-01 12:15 |只看该作者

内核升级2.6.11.6的小问题

运行# make mrproper提示:
make: gcc: Command not found
/usr/src/linux-2.6.11.6/scripts/gcc-version.sh: line 1: gcc: command not found
/usr/src/linux-2.6.11.6/scripts/gcc-version.sh: line 1: gcc: command not found
make: gcc: Command not found
HBHBmake: gcc: Command not found
HBHBmake: gcc: Command not found
.........
怎么回事亚?是不是没用安装gcc编译器?
谢谢大家指教,

论坛徽章:
0
7 [报告]
发表于 2005-04-01 13:22 |只看该作者

内核升级2.6.11.6的小问题

[quote]原帖由 "platinum"]哦?有这方面BUG介绍的URL吗?[/quote 发表:


哇!斑竹也来关心小弟的问题

url想不起来了,是在sun的develop site,然后搜索bug得到的。
家里的机子收藏了,可以晚上回家发给您

论坛徽章:
0
8 [报告]
发表于 2005-04-01 14:27 |只看该作者

内核升级2.6.11.6的小问题

原帖由 "arkue" 发表:
潞诵脑趺疵挥衖nitrd /initrd-2.6.11.6.img?
然后new-kernel-pkg --mkinitrd --depmod --install 2.6.11.6也没有生成呀?

是没有生成此文件,还是没有在/boot下生成呀?
在一些情况下,make install并不会在/boot下生成这些文件,需要你自己手动去源包目录下拷贝过来并且更名才可以的

论坛徽章:
0
9 [报告]
发表于 2005-04-01 14:54 |只看该作者

内核升级2.6.11.6的小问题

原帖由 "geminis" 发表:

是没有生成此文件,还是没有在/boot下生成呀?
在一些情况下,make install并不会在/boot下生成这些文件,需要你自己手动去源包目录下拷贝过来并且更名才可以的


对不起我没有说清楚

是(在任何位置都)没有生成此文件。但是vmlinuz-2.6.11.6确生成了

论坛徽章:
0
10 [报告]
发表于 2005-04-02 12:40 |只看该作者

内核升级2.6.11.6的小问题

[quote]原帖由 "platinum"]哦?有这方面BUG介绍的URL吗?[/quote 发表:


to 班主

>; http://w4toolkit.com/forum/read.php?f=19&i=927&t=927
>;
>;
>; sun的网址没有记录下来。下面是我抄录的一段话:
>; (参考一)
>; This is due to a defect of design of thread pool in Tomcat 4.1.x. (I have yet  read sources of 5.x)
>;
>; An instance of ControlRunnable could wait at two locations. One is in its run()  method, the another is in ThreadPool's runIt() method via TcpWorkerThread.runIt (). This causes deadlock.
>;
>; When a ControlRunnable is waiting at ThreadPool.runIt() via other classes such  as TcpWorkerThread.runIt() ->; endpoint.tp.runIt(this). The only chance it gets  notified is another ControlRunnable to end and to call  ThreadPool.returnController().
>;
>; At a moment the server is under a very heavy traffic, all ControlRunnable will  be hung at ThreadPool.runIt() ->; this.wait().
>;
>;
>; I have a solution for this is to use a queue of hreadPoolRunnable to hold all  requests. This way, a ControlRunnable no longer need to wait outside.
>;
>; ============================================================================
>; ==
>; (参考二)
>; In the tomcat mailing list there was a similar question as mine and somebody replied, that this might be due to the RedHat Linux 2.4 kernel using the (new) NPTL (Native Posix Threads Library) backported from 2.5/6 kernels and the Java JDK not being compatible with that.>;
>; By setting some env var LD_KERNEL_ASSUME/LD_ASSUME_KERNEL to 2.4 Java should
>; work with it.
>;
>; I'll have yet to see, if this does the trick
>;
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP