Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
difference (from Kernel view) between Pentium M and P4
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
OPelerin
Guru
Guru


Joined: 17 Jul 2004
Posts: 354
Location: Belgium

PostPosted: Fri Jul 29, 2005 10:56 am    Post subject: difference (from Kernel view) between Pentium M and P4 Reply with quote

I've recently installed Gentoo on my new laptop IBM T42.

According to Dmesg, it gets a Pentium M

Intel machine check architecture supported.
Intel machine check reporting enabled on CPU#0.
CPU: Intel(R) Pentium(R) M processor 1.70GHz stepping 06
Enabling fast FPU save and restore... done.
Enabling unmasked SIMD FPU exception support... done.

My kernel is setup as:


( ) Pentium M
(X) Pentium-4/Celeron(P4-based)/Pentium-4 M/Xeon

I did'nt choose Pentium M ( I imported my .config from my home PC) and the PC works without issues.


So my question is: What is the advantage of choosing Pentium-M versus P4 in my case?

Kind regards,
_________________
Olivier PELERIN
Back to top
View user's profile Send private message
ben-xo
n00b
n00b


Joined: 13 Dec 2004
Posts: 38

PostPosted: Fri Jul 29, 2005 10:59 am    Post subject: Reply with quote

As far as i'm aware, the Pentium M in the kernel config is a Pentium-III with SpeedStep. If your laptop is relatively new, then it will be a "Pentium 4-M", which is a Pentium-IV with speedstep. It's likely that you chose the right option if it works fine. (If you really had a Pentium-III M and had chosen options for a Pentium-IV M, then your kernel would probably crash).
_________________
Ben XO
Back to top
View user's profile Send private message
mark_alec
Bodhisattva
Bodhisattva


Joined: 11 Sep 2004
Posts: 6066
Location: Melbourne, Australia

PostPosted: Fri Jul 29, 2005 12:26 pm    Post subject: Reply with quote

ben-xo wrote:
f your laptop is relatively new, then it will be a "Pentium 4-M", which is a Pentium-IV with speedstep
Incorrect. A pentium4-m is not the same as a pentium-m. The pentium4-m was just a lower powered pentium4 used is desktop laptops. Your computer is a pentium-m.
Back to top
View user's profile Send private message
OPelerin
Guru
Guru


Joined: 17 Jul 2004
Posts: 354
Location: Belgium

PostPosted: Fri Jul 29, 2005 12:27 pm    Post subject: Reply with quote

yeah. This laptop is new ( my new company just bought it early july).

Any clue why dmesg do not show it as PIV M?
_________________
Olivier PELERIN
Back to top
View user's profile Send private message
colo
Apprentice
Apprentice


Joined: 21 Mar 2004
Posts: 160
Location: Austria

PostPosted: Fri Jul 29, 2005 12:34 pm    Post subject: Reply with quote

Becaue it is none. Understood?

Pentium III Mobile, Pentium 4 Mobile and Pentium M are THREE different types of architectures, sharing just certain parts of their design.
_________________
Free Software. Free Sociecty. Better Lives.
Back to top
View user's profile Send private message
OPelerin
Guru
Guru


Joined: 17 Jul 2004
Posts: 354
Location: Belgium

PostPosted: Fri Jul 29, 2005 12:37 pm    Post subject: Reply with quote

Mark,

Then I'm back to my original question.

What advantages of compiling the kernel in Pentium M? What is enabled, what is the performance impact? Currently everything runs well in PIV compiled kernel....
_________________
Olivier PELERIN
Back to top
View user's profile Send private message
whitesouls
Guru
Guru


Joined: 19 Nov 2004
Posts: 358
Location: In Front of My Laptop

PostPosted: Fri Jul 29, 2005 12:38 pm    Post subject: Reply with quote

:) greeting...

Code:
CPU0: Intel(R) Pentium(R) M processor 1.60GHz stepping 06


this is what i got for my IBM R51.. I think, if the clock rate >= 1.7 ghz, then it will be considered as P4-M... I'm using P3-M... No issues till now..

If I'm not mistaken P4-M supports MSSE3 which pentium 3 dont have....did you enabled that option in your make.conf?

I would suggest you to put P3-M...but i dont think that will make any big difference except enabling MSSE3..check with your /proc/cpuinfo and see what option it does support.. From there you'll knw that your using P3-M or P4-M
_________________
whitesouls

Please insert the [SOLVED] tag if your problem is solved in your respective thread.
Back to top
View user's profile Send private message
colo
Apprentice
Apprentice


Joined: 21 Mar 2004
Posts: 160
Location: Austria

PostPosted: Fri Jul 29, 2005 12:44 pm    Post subject: Reply with quote

SSE3 is supported on Pentium 4 Prescott and Athlon 64 Venice/Manchester/Toledo Cores only, as well as the Turion series of AMD mobile chips. Pentium 4 Mobile and previous series of processors from Intel lack SSE3 support; though the offer MMX, MMXEXT, SSE and SSE2 (just as the Pentium M, up to the Dothan core, does right now).

Furthermore, for f*ck's sake, it's already been clearly stated that he does not use NEITHER a "P4-M", NOR a "P3-M", BUT a "Pentium M". I hope you succeed in understanding that correctly this time.

BTT, though: I don't know for sure, but I suspect the architecture optimization directly impacts the CFLAGS being passed to gcc when running make - so if your Pentium 4 choice does not break the kernel for you, it may be possible your kernel is not optimized to the maximum possible extent.
_________________
Free Software. Free Sociecty. Better Lives.
Back to top
View user's profile Send private message
whitesouls
Guru
Guru


Joined: 19 Nov 2004
Posts: 358
Location: In Front of My Laptop

PostPosted: Fri Jul 29, 2005 12:50 pm    Post subject: Reply with quote

Quote:
http://www.intel.com/design/intarch/pentium4/pentium4.htm


aight...i'm wrong bout the msse3 thing..sorry..here you go..have look at this...some thing basic which i could get for you... then you decide what to do with your kernel..
_________________
whitesouls

Please insert the [SOLVED] tag if your problem is solved in your respective thread.
Back to top
View user's profile Send private message
OPelerin
Guru
Guru


Joined: 17 Jul 2004
Posts: 354
Location: Belgium

PostPosted: Fri Jul 29, 2005 8:47 pm    Post subject: Reply with quote

Dear colo

"Furthermore, for f*ck's sake, it's already been clearly stated that he does not use NEITHER a "P4-M", NOR a "P3-M", BUT a "Pentium M". I hope you succeed in understanding that correctly this time. "

Yes that's correct the help file inside the kernel says 'dont use it'. But there is no technical explanation that explain why.

So back to my initial question. What is the added value?
_________________
Olivier PELERIN
Back to top
View user's profile Send private message
bollucks
l33t
l33t


Joined: 27 Oct 2004
Posts: 606

PostPosted: Sat Jul 30, 2005 1:16 am    Post subject: Reply with quote

The advantage is code micro-optimisation for the architecture.
Back to top
View user's profile Send private message
nxsty
Veteran
Veteran


Joined: 23 Jun 2004
Posts: 1556
Location: .se

PostPosted: Sat Jul 30, 2005 9:46 am    Post subject: Reply with quote

When you select Pentium M from menuconfig the kernel will be compiled with -march=i686 -mtune=pentium3 and when you select Pentium4 the kernel will be compiled with -march=i686 -mtune=pentium4. So it's only a matter of compiler optimizations actually.
Back to top
View user's profile Send private message
Jerem
Apprentice
Apprentice


Joined: 11 Jun 2004
Posts: 177

PostPosted: Sat Jul 30, 2005 8:00 pm    Post subject: Reply with quote

If you select Pentium 4 in the kernel configuration, it just tells what compilation options it should use, not what processor it should detect.

I greatly advise you to choose pentium-M, so the kernel can use pentium-M specific behaviour to save battery life.
Back to top
View user's profile Send private message
OPelerin
Guru
Guru


Joined: 17 Jul 2004
Posts: 354
Location: Belgium

PostPosted: Fri Aug 05, 2005 1:58 pm    Post subject: CPU frequency do not switch back when main power replace bat Reply with quote

I've compiled my kernel as Pentium M. From perf standpoint, there is not much differences...

In both cases, if my laptop boot on battery

/proc/cpuinfo still reports 600 MHZ instead of 1700 MHZ.


Either 2 things

1) /proc/cpuinfo is static and is not updated in real time

2) CPU frequency switchover do not work when the laptop is back from battery to power and vice versa.. It's stay at the frequency the CPU got when it was booting.


Anybody experienced this?
_________________
Olivier PELERIN
Back to top
View user's profile Send private message
Jerem
Apprentice
Apprentice


Joined: 11 Jun 2004
Posts: 177

PostPosted: Fri Aug 05, 2005 6:50 pm    Post subject: Reply with quote

The /proc pseudo-filesystem is not the correct place to look for dynamically changing information. Have a look at /sys. It's updated instantly.
Back to top
View user's profile Send private message
Tsuna
Tux's lil' helper
Tux's lil' helper


Joined: 23 Jan 2005
Posts: 147

PostPosted: Fri Aug 05, 2005 7:33 pm    Post subject: Reply with quote

let's make it clear once and for all, as said above, you have a Pentium M, which is NOT a pentium3-M, nor a pentium4-M

The Pentium-M is a very optimized plateform based on Pentium3-Pro, whose cores are codenamed Banias, Dothan or Sonoma. The Pentium-M is way more efficiant and powerful than the Pentium4-M and uses much less power. If you have a Pentium-M, then choose Pentium-M in the kernel, that's all. It doesn't matter if it's also working if you choose Pentium4 or i386, don't bother and pick up the best choice for your arch.

More infos @ http://en.wikipedia.org/wiki/Pentium_M
_________________
I am not sending subliminal messages
Back to top
View user's profile Send private message
bollucks
l33t
l33t


Joined: 27 Oct 2004
Posts: 606

PostPosted: Sat Aug 06, 2005 12:58 am    Post subject: Re: CPU frequency do not switch back when main power replace Reply with quote

OPelerin wrote:
I've compiled my kernel as Pentium M. From perf standpoint, there is not much differences...

In both cases, if my laptop boot on battery

/proc/cpuinfo still reports 600 MHZ instead of 1700 MHZ.


Either 2 things

1) /proc/cpuinfo is static and is not updated in real time

2) CPU frequency switchover do not work when the laptop is back from battery to power and vice versa.. It's stay at the frequency the CPU got when it was booting.


Anybody experienced this?

Looks like you're using the powersave cpu frequency scaling governor which sets it to the lowest speed, and a 1.7 pM will throttle to 600 Mhz.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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