LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-21-2004, 12:38 PM   #1
OlympusHermes
LQ Newbie
 
Registered: Jan 2004
Posts: 4

Rep: Reputation: 0
Two identical computers but different OS-es


If one OS is clearly noticable faster than another OS, what are the causes?

I think it's because of the memory management but he says it's about speed; I'll just use his quotes because I actually don't understand the guy totally:

"Also, your claim above, how the speed difference in OSes is with memory management. Thats not true either. All the commands to the processor are made at Compile time. That means, its up to the Compiler how memory is managed in each program, and how each command is done within the processor."
I think that it only affects programs individually and the OS with his program slicer/process manager has the final word about it.

The initial thing was about Win XP vs Win 2k. And he thinks that 2k is faster because it's a faster OS than Win XP. (His reason for being faster is because it has more speed )

What you think of this academical computer science student?
 
Old 01-21-2004, 02:03 PM   #2
wapcaplet
LQ Guru
 
Registered: Feb 2003
Location: Colorado Springs, CO
Distribution: Gentoo
Posts: 2,018

Rep: Reputation: 48
Faster in what way, exactly? Do you mean in terms of how long it takes for a program to load? How fast it draws things on the screen? How quickly it can solve mathematical problems or finish a 3D rendering? How long it takes to open, save, copy, or delete files? How many frames per second you get in games?

There are a lot of factors that influence the "speed" of a computer. Hardware is probably one of the most important - what speed your CPU is, how big its cache is, how much RAM you have and what speed it is, how well your motherboard integrates with all your other hardware, the seek time of your hard disk, and so on. The operating system can be a factor, since it handles most of the interaction with the hardware, but a good operating system can't really make up for poor hardware. And of course, the way a program is written has a significant effect, as well; if a program does things efficiently, it will be "fast".
 
Old 01-21-2004, 02:24 PM   #3
jtshaw
Senior Member
 
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 67
Another thing...the compiler certainly has say over when and how much a program asks for as far as memory goes, but it is not the compiler but the kernel that decides what memory a program gets, and where it comes from....
 
Old 01-21-2004, 02:31 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Re: Two identical computers but different OS-es

Quote:
Originally posted by OlympusHermes
What you think of this academical computer science student?
I think he has no idea of how an operating
system works :}



Cheers,
Tink
 
Old 01-21-2004, 03:06 PM   #5
frogman
Member
 
Registered: Sep 2003
Distribution: Mandrake, Slack, Debian and PicoBSD
Posts: 181

Rep: Reputation: 31
Also depends on time since install.

Due in part to fragmentation, but mostly the bloody registry - a freshly installed (same hardware / software / tweaks) windows system will outperform an identical box that was installed "x" months ago.
 
Old 01-21-2004, 03:37 PM   #6
stickman
Senior Member
 
Registered: Sep 2002
Location: Nashville, TN
Posts: 1,552

Rep: Reputation: 53
Is it possible for two different programs written by two different authors to take different amount of time to accomplish the same task? Sure it is. One author may write very efficient code while the other may not. Now expand the concept of the operating system to just a large collection of programs, and make the same assessment. It's possible for one to be faster than the other.

Is one OS always faster than another? Maybe. One might one thing better while the other is faster at another task.
 
Old 01-22-2004, 01:41 PM   #7
OlympusHermes
LQ Newbie
 
Registered: Jan 2004
Posts: 4

Original Poster
Rep: Reputation: 0
Thanks for all the response already!

Quote:
Originally posted by wapcaplet
Faster in what way, exactly? Do you mean in terms of how long it takes for a program to load? How fast it draws things on the screen? How quickly it can solve mathematical problems or finish a 3D rendering? How long it takes to open, save, copy, or delete files? How many frames per second you get in games?

There are a lot of factors that influence the "speed" of a computer. Hardware is probably one of the most important - what speed your CPU is, how big its cache is, how much RAM you have and what speed it is, how well your motherboard integrates with all your other hardware, the seek time of your hard disk, and so on. The operating system can be a factor, since it handles most of the interaction with the hardware, but a good operating system can't really make up for poor hardware. And of course, the way a program is written has a significant effect, as well; if a program does things efficiently, it will be "fast".
Wapcaplet; I'm not talking about RAM or hardware (I'm not retarded lol); but it simply comes down to this (so forget about hardware; they are the same on both computers):

IF Windows 2k goes notably faster than Windows XP in executing an identical program on identical computers..... What can be the causes or do you think it's impossible? I think it might be possible but then only because of memory management.

What do you think about it?
A) It's impossible
B) It might be possible but if it's noticable faster than it must be memory management.
C) It might be possible because "2k is simply faster than XP".
 
Old 01-22-2004, 03:02 PM   #8
OlympusHermes
LQ Newbie
 
Registered: Jan 2004
Posts: 4

Original Poster
Rep: Reputation: 0
Re: Re: Two identical computers but different OS-es

Quote:
Originally posted by Tinkster
I think he has no idea of how an operating
system works :}



Cheers,
Tink
Tink; this guy(Tarential) read the topic and he thinks your comment is directed at me. Could you plz name the person (Hermes=me) or Tarential(him) for who the post was directed at?
 
Old 01-22-2004, 03:08 PM   #9
jtshaw
Senior Member
 
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 67
The answer, in your A), B), C) Multiple choice is D) none of the above

There is more then just memory management involved, there is process management, and other things going on that can effect it.
 
Old 01-22-2004, 03:37 PM   #10
r_jensen11
Senior Member
 
Registered: Apr 2003
Location: Minnesota, USA
Distribution: Slack 10.0 w/2.4.26
Posts: 1,032

Rep: Reputation: 45
From my understanding, and this could be totally off kilter, is that XP is simply a bloated version of Win2k. It's based off the Win2k kernel, but it also has other crap that you don't necessarily need in it. Plus, it has more background processes than Win2k. I would have to say, and this is all speculation, since I havn't worked much with Win2k, is that 2k is quicker than XP because it's more bare and efficient. XP simply has too many background processes, and stresses too much simplicity that it takes over the computer. Much like what cars are doing these days, taking away the thrill of driving....
 
Old 01-22-2004, 04:33 PM   #11
wapcaplet
LQ Guru
 
Registered: Feb 2003
Location: Colorado Springs, CO
Distribution: Gentoo
Posts: 2,018

Rep: Reputation: 48
Quote:
Originally posted by OlympusHermes
IF Windows 2k goes notably faster than Windows XP in executing an identical program on identical computers..... What can be the causes or do you think it's impossible? I think it might be possible but then only because of memory management.
Well, if it actually happens, then nobody can really claim it's impossible But if an "identical" program can run on both of the operating systems, then they can't be all that different from one another.

Memory management is just one of the factors affecting perceived speed. Again, it depends on what kind of speed you're talking about; you didn't specify what kind of program it is, or what the program is doing. If it's a program for copying files, and on Windows 2K it copies them twice as fast as it does in Windows XP, then it probably has more to do with buffering and the efficiency of the filesystem and related file I/O than with memory management. If it's a 3D application and you're talking about frame rate, it probably has more to do with how well the OS interfaces with the 3D hardware.

It is rarely as simple as "2K is faster than XP", though. Sure, I can imagine a scenario in which operating system A is written so much better than operating system B that practically everything is faster on operating system A (not naming names here, of course, ahem), but there is probably also always a pathological case in which operating system B outperforms operating system A. For example, a program that was written specifically for B, in the same inefficient way and using the same inefficient functions, might do better on B than on A.

You could also make a case like "Windows XP is faster than DOS", but if you tried to run them both on a 386 with 4MB of RAM, DOS would probably perform better
 
Old 01-22-2004, 04:42 PM   #12
jtshaw
Senior Member
 
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 67
If the things you are comparing are Windows XP and Windows 2k I am pretty sure the main difference is the fatter user interface and the other added processes that run in XP vs. 2k. It is hard to say without actually seeing the source code, but the kernel for Win2k reports as being NT5.0 Build blah blah blah and WinXP resports as being NT5.5 build blah blah blah. I am guessing how they do things like process management and memory management, while maybe not being exactly the same, is pretty darn close. People give MS a lot of grief but I don't think they would have put a worse memory management system into the WinXP kernel then the one they already had for Win2k.
 
Old 01-22-2004, 04:53 PM   #13
jtshaw
Senior Member
 
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 67
I am going to go ahead and quote a book that perhaps you and this "computers science" student should pick up and read: Applied Operating System Concepts, by Abraham Silberschatz, Peter Galvin, and Greg Gagne.

"We can view an operating system as a resource allocator. A computer system has mayn resources (hardware and software) that may be required to solved a problem: CPU time, memory space, file-storage space, I/O devices, and so on. The operating system acts as the manager of these resources and allocates them to specific programs and users as necessary for tasks".

Now that was a very general definition given on the 4th page of the introduction to the book, but the point of giving it to you is to say that an operating system is in charge of doing quite a lot of things. The methods operating systems use to do these things can very tremendously from one OS to another. This often results in some systems doing some things "Faster" and others doing other things "Faster".

If you are really interested on specific differences between different OS's the book does a case study on UNIX, Linux, and Windows NT and how they choose to do things.
 
Old 01-22-2004, 11:02 PM   #14
95se
Member
 
Registered: Apr 2002
Location: Windsor, ON, CA
Distribution: Ubuntu
Posts: 740

Rep: Reputation: 32
jtshaw is right. Speed is a lot of things combind. But I doubt that Win2k and WinXP vary very much from each other as far as i/o, memory, process, etc.. mgmt. Why would Microsoft redesign everything for XP??? It works very well in 2k, and I am sure they paid quite a lot of money to get it to the point where it is. You don't make billions of dollars without being cheap. I doubt the code for a "message box" has changed very much from win95 to xp. The main differences come in extra features for easy use. Disable pretty much every "extra" feature of XP and 2K and you'll find XP does perform at the level of 2k. I am sure that XP and 2K's memory management are nearly identical as well.

Last edited by 95se; 01-22-2004 at 11:03 PM.
 
Old 01-23-2004, 07:56 AM   #15
OlympusHermes
LQ Newbie
 
Registered: Jan 2004
Posts: 4

Original Poster
Rep: Reputation: 0
Ok; sorry; this guy changed subjects now; he's now about the compiler; he says:
"You go like this:
"int i;"
The compiler translates this into machine code. Tells the machine to set aside a certain number of bits for an int. So yes, the compiler controls memory usage, as does, in respect, the programmer.
"

I tried to explain him 10 times that a compiler doesn't do any kind of memory management; but he keeps saying it! He think I know nothing about computers and it's annoying. Can anyone say that I'm right and that compiler has nothing to say about the OS' Memory Management?

Last edited by OlympusHermes; 01-23-2004 at 07:58 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Identical removable HDDs dgermann Linux - Newbie 14 09-04-2004 07:52 PM
Sync up identical machines kenny_dilger Linux - General 1 07-09-2004 04:26 PM
2 identical nic problem darchon Linux - Networking 1 03-27-2003 07:43 PM
Smoothwall w/identical NIC's ocularbob Linux - Software 1 02-28-2003 09:34 AM
2 Identical ethernet cards vwhk Linux - Networking 2 02-08-2002 05:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:35 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration