Welcome, Guest. Please login or register.

Author Topic: Windows timing  (Read 3627 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline ElPolloDiablTopic starter

  • Hero Member
  • *****
  • Join Date: May 2009
  • Posts: 1702
    • Show only replies by ElPolloDiabl
Windows timing
« on: January 22, 2010, 08:07:34 PM »
Open up the task manager in Windows and watch how windows jumps from process to process apparently at random. Can someone explain to me why it can't operate in an orderly fashion.

It suggests windows is just stitched together from various pieces rahter than being design wholistically.
Go Go Gadget Signature!
 

Offline tone007

Re: Windows timing
« Reply #1 on: January 22, 2010, 08:10:43 PM »
Windows is a collection of processes, correct.

If you sort by name instead of CPU usage, the list will be easier to follow.

Try "top" on a unix-based OS, exactly the same thing.
3 Commodore file cabinets, 2 Commodore USB turntables, 1 AmigaWorld beer mug
Alienware M14x i7 laptop running AmigaForever
 

Offline tone007

Re: Windows timing
« Reply #2 on: January 22, 2010, 08:20:10 PM »
Windows is a collection of processes, correct, and not all processes use the processor simultaneously! (gasp)

If you sort by name instead of CPU usage, the list will be easier to follow.

Try "top" on a unix-based OS, exactly the same thing.
3 Commodore file cabinets, 2 Commodore USB turntables, 1 AmigaWorld beer mug
Alienware M14x i7 laptop running AmigaForever
 

Offline Karlos

  • Sockologist
  • Global Moderator
  • Hero Member
  • *****
  • Join Date: Nov 2002
  • Posts: 16879
  • Country: gb
  • Thanked: 5 times
    • Show only replies by Karlos
Re: Windows timing
« Reply #3 on: January 22, 2010, 08:38:37 PM »
Quote from: Fanscale;539744
Open up the task manager in Windows and watch how windows jumps from process to process apparently at random. Can someone explain to me why it can't operate in an orderly fashion.

It suggests windows is just stitched together from various pieces rahter than being design wholistically.

The reason the task manager, top etc. appear to do this is the fact that task switching usually happens much, much faster than the monitor application is updated. It also depends on how you've chosen to order the data. In a system where one process is clobbering the CPU, it'll invariably appear at the top when organising by CPU time (which is generally the default).

AmigaOS is no different, other than the lack of dynamic priority scheduling (can be added using Executive). Exec gives processor time in turn to each ready to run process in the current list. Only sleeping processes are skipped over.
« Last Edit: January 22, 2010, 08:41:52 PM by Karlos »
int p; // A
 

Offline jorkany

  • Hero Member
  • *****
  • Join Date: Sep 2006
  • Posts: 1009
    • Show only replies by jorkany
    • http://www.amigaos4.com
Re: Windows timing
« Reply #4 on: January 22, 2010, 08:45:24 PM »
Quote from: Fanscale;539744
Open up the task manager in Windows and watch how windows jumps from process to process apparently at random. Can someone explain to me why it can't operate in an orderly fashion.

It suggests windows is just stitched together from various pieces rahter than being design wholistically.


What order would you like?
 

Offline CSixx

  • Sr. Member
  • ****
  • Join Date: Jan 2006
  • Posts: 315
    • Show only replies by CSixx
Re: Windows timing
« Reply #5 on: January 22, 2010, 11:41:13 PM »
You can see the same thing in all other modern (and not so modern) OS's.

Maybe when you are browsing the web, you can click on links in a distinctly timed interval, instead of at random? That way the OS can schedule it's response in a similar interval. Will 30 second intervals work?

If so, the mp3 you have playing in the background, will play a 5 second portion of the song, at 35 second intervals.

We can talk about where to schedule TCP sends/receives next, (and disk writes, and some other minor tasks)...

It's the nature of multitasking and priorities...
 

Offline Trev

  • Hero Member
  • *****
  • Join Date: May 2003
  • Posts: 1550
  • Country: 00
    • Show only replies by Trev
Re: Windows timing
« Reply #6 on: January 22, 2010, 11:51:35 PM »
I don't want to revive this thread (the great joystick timing debate), but there's an OK discussion on Windows scheduling starting on or around post 919 (mine).

http://www.amiga.org/forums/showpost.php?p=511871
http://www.amiga.org/forums/showpost.php?p=511871&postcount=919
 

Offline Tension

Re: Windows timing
« Reply #7 on: January 23, 2010, 02:56:39 AM »
That Windows thingy will never catch on.

Offline mikeymike

  • Hero Member
  • *****
  • Join Date: Nov 2002
  • Posts: 3420
  • Country: 00
    • Show only replies by mikeymike
Re: Windows timing
« Reply #8 on: January 23, 2010, 09:43:46 AM »
Slightly off-topic, but one thing I find infuriating about Vista is how sometimes the hard disk will be getting completely thrashed, yet nothing shows up in Task Manager suggesting that any particular process is up to much.  Yes, I realise that high disk IO = high processor usage went out when DMA came along, but still, normally I would expect to be able to pick out a process that was doing that much disk work.
 

Offline zipper

Re: Windows timing
« Reply #9 on: January 23, 2010, 10:00:52 AM »
Indexing?
 

Offline Turambar

  • Sr. Member
  • ****
  • Join Date: Jan 2003
  • Posts: 425
    • Show only replies by Turambar
    • http://gentleman-bastards.com/
Re: Windows timing
« Reply #10 on: January 23, 2010, 10:25:32 AM »
Quote from: mikeymike;539818
Slightly off-topic, but one thing I find infuriating about Vista is how sometimes the hard disk will be getting completely thrashed, yet nothing shows up in Task Manager suggesting that any particular process is up to much.  Yes, I realise that high disk IO = high processor usage went out when DMA came along, but still, normally I would expect to be able to pick out a process that was doing that much disk work.


You can. Press ctrl-alt-del, go to performance, then resource monitor and click the disk tab. As previously mentioned it's probably the indexing service doing this, the vista indexer can be a bit flaky.
 

Offline ElPolloDiablTopic starter

  • Hero Member
  • *****
  • Join Date: May 2009
  • Posts: 1702
    • Show only replies by ElPolloDiabl
Re: Windows timing
« Reply #11 on: January 23, 2010, 10:37:36 AM »
I found a site to turn off indexing on Vista:

http://www.howtogeek.com/tag/windows-vista/#vista-tips-tweaks
You can also turn off the caching and get all your memory back. Funny it seems faster with the caching off.
Go Go Gadget Signature!
 

Offline mikeymike

  • Hero Member
  • *****
  • Join Date: Nov 2002
  • Posts: 3420
  • Country: 00
    • Show only replies by mikeymike
Re: Windows timing
« Reply #12 on: January 23, 2010, 01:16:05 PM »
Nope, I tried switching off indexing, no difference.  Occasionally I've fired up procmon and found the system doing a tour of the system32 folder, so perhaps it is due to seriously agressive Windows File Protection?

SuperFetch - it really would suck if the performance advantages of SuperFetch resulted in the savings of app startup time being transferred to a longer boot time!
 

Offline Karlos

  • Sockologist
  • Global Moderator
  • Hero Member
  • *****
  • Join Date: Nov 2002
  • Posts: 16879
  • Country: gb
  • Thanked: 5 times
    • Show only replies by Karlos
Re: Windows timing
« Reply #13 on: January 23, 2010, 01:18:35 PM »
Your best bet is to switch to linux :lol:

Seriously, on my dual boot, I hear the HD grinding regularly on Vista, yet I only hear the tiniest rattle when doing some obvious file access on linux.

If it weren't for games, I wouldn't even have a windows install.
int p; // A
 

Offline tone007

Re: Windows timing
« Reply #14 on: January 23, 2010, 01:22:49 PM »
You could try disabling the swapfile and see if that makes the grinding go away.
3 Commodore file cabinets, 2 Commodore USB turntables, 1 AmigaWorld beer mug
Alienware M14x i7 laptop running AmigaForever