Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
分享:Linux2.6对HyperThreading的支持很强
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index 中文 (Chinese)
View previous topic :: View next topic  
Author Message
MACHINE
Tux's lil' helper
Tux's lil' helper


Joined: 30 Mar 2004
Posts: 141
Location: Earth

PostPosted: Mon Mar 28, 2005 7:19 am    Post subject: 分享:Linux2.6对HyperThreading的支持很强 Reply with quote

本人使用的是Pentium4 2.4G HyperThreading + 865G + 512MB DualDDR400 + Seagate SATA 80GB 7200MB w/ 8MB CACHE.
这配置应该是非常标准的Intel机器了。

最深刻的两个印象就是:
1、gDesklets的StarterBar十分流畅平滑,占用CPU低。
2、MAKEOPTS="-j5"(2 logical CPUs + 1)后,编译速度极快,虽然没有仔细算过,但比我的Barton 2500+迅速明显。特别是编译glibc,也就是吃顿快餐的时间。


还有一个有趣的现象:
在观看带有大量的flash广告的网页(比如说www.mydrivers.com)的时候,观察两个CPU占用率(gnome-system-monitor),发现两条线交替上下变换,也就是说总会有一个CPU尽量保持低占有率。这使得我在同时使用OpenOffice幻灯片和Evolution的时候没有感觉到性能下降。


另外就是865G的glxgear速度,标准1330fps,全屏260fps。不知道这在整合图形性能中算快还是慢?


附make.conf
Code:

CHOST="i686-pc-linux-gnu"
CFLAGS="-pipe -march=pentium4 -O3 -mfpmath=sse -mmmx -msse -msse2 -maccumulate-o utgoing-args -minline-all-stringops -momit-leaf-frame-pointer -fforce-addr -fomi t-frame-pointer -ffast-math -ftracer -fprefetch-loop-arrays"

CXXFLAGS=${CFLAGS}

LDFLAGS="-Wl,-O3"

USE="acpi alsa cjk curl divx4linux freetype gcj gnutls gtkhtml i8x0 ithreads jav a jikes junit mmap mmx mmxext sse sse2 moznocompose moznoirc moznomail mp3 msn n etwork no-old-linux nocardbus nojoystick nomotif nptl nptlonly oss pdf pdflib pi c pnp posix postgres real rtc sockets svg symlink threads ucs2 userlocales unico de usb xml xvid xvmc -apm -arts -cups -esd -gstreamer -ipv6 -kde -motif -qt -tcp d -xmms"

FETCHCOMMAND="axel -a -n 3 -N -o \${DISTDIR}/\${FILE} \${URI}"
RESUMECOMMAND="axel -a -n 3 -N -o \${DISTDIR}/\${FILE} \${URI}"

GENTOO_MIRRORS="http://gentoo.gg3.net/ http://ftp.gentoo.or.kr/ http://mirror.ge ntoo.gr.jp http://gentoo.kems.net"

SYNC="rsync://rsync.asia.gentoo.org/gentoo-portage"

MAKEOPTS="-j5"

CCACHE_SIZE="2G"

ALSA_CARDS="intel8x0"

_________________
Hi, Gentoo men!!
Back to top
View user's profile Send private message
EricHsu
Bodhisattva
Bodhisattva


Joined: 03 May 2004
Posts: 591
Location: Aragon Consulting Group, Beijing, China

PostPosted: Mon Mar 28, 2005 9:42 am    Post subject: Reply with quote

赞! 等我攒足工资也去买个好机器回来享受一把 HyperThreading 的快感... :D
_________________
- http://nkbit.com
- http://twitter.com/xuyihua
Back to top
View user's profile Send private message
liuspider
Apprentice
Apprentice


Joined: 03 Feb 2003
Posts: 237

PostPosted: Mon Mar 28, 2005 12:23 pm    Post subject: Reply with quote

怎么设置成 -j5 的? 2个CPU+1 = 3 啊?

我用的是 -j3,CPU和你是一样的...
_________________
BLOG: http://liucougar.scim-im.org
Back to top
View user's profile Send private message
MACHINE
Tux's lil' helper
Tux's lil' helper


Joined: 30 Mar 2004
Posts: 141
Location: Earth

PostPosted: Mon Mar 28, 2005 4:34 pm    Post subject: Reply with quote

EricHsu wrote:
赞! 等我攒足工资也去买个好机器回来享受一把 HyperThreading 的快感... :D


马上Intel就推出双内核CPU,logical CPUs将达到4个,而且有改进的总线IO机制。

不过,AMD64也要推出双内核CPU,支持全套MMX,SSE,SSE2,SSE3,和3DNOW,加上Linux的64位强力支持和AMD内置的低延迟内存控制器。

虽然没用过AMD64,但从www.anandtech.com上的测试来看,64位CPU很完美。
_________________
Hi, Gentoo men!!
Back to top
View user's profile Send private message
r0bertz
Retired Dev
Retired Dev


Joined: 13 Sep 2004
Posts: 257
Location: HKSAR,China

PostPosted: Mon Mar 28, 2005 4:49 pm    Post subject: Reply with quote

当时犯晕了,当我没说
我也有疑问,为什么是j5呢,呵呵


Last edited by r0bertz on Tue Apr 19, 2005 3:03 am; edited 1 time in total
Back to top
View user's profile Send private message
d9169037
n00b
n00b


Joined: 12 Nov 2004
Posts: 20

PostPosted: Tue Mar 29, 2005 6:09 am    Post subject: Reply with quote

https://forums.gentoo.org/viewtopic-t-274471-highlight-hyper+threading.html
好像各家說法不同, 有人說 -j3, 也有人用 -j4


edit:
修正乱码. 请看置顶贴了解如何以 utf-8 发贴 ;) - Eric
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index 中文 (Chinese) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum