LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-16-2008, 09:38 AM   #1
georgewr3
LQ Newbie
 
Registered: Oct 2007
Posts: 7

Rep: Reputation: 0
time acceleration


Is there a way to accelerate time on a linux system? (Suse 10.2)

Our system often has problems that occur only in real time. I would like to run a test that takes a day and accelerate it to say, 5 minutes.

Thanks!
 
Old 05-16-2008, 10:17 AM   #2
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
"accelerate time"--that would be a real breakthrough--right up there with cold fusion....

Seriously, if any given process is running with reasonable efficiency, the only way to accelerate it would be to increase the clock frequency and/or add more processors. (The latter would normally require modifying the code to use them efficiently.)

To give a substantive answer, we would need to see the details of what you are doing.
 
Old 05-16-2008, 10:27 AM   #3
georgewr3
LQ Newbie
 
Registered: Oct 2007
Posts: 7

Original Poster
Rep: Reputation: 0
Our product is a time monitoring system. Based on events from some external machinery, our code makes decisions and then records subsequent data (to a database but that's unimportant)

As an example, a idle event is received, then when a certain amount of time has elapsed, a record is recorded into the database. Often the elapsed time is in hours. Writing a manual process to run this in batch fashion without time elapsing behaves differently in some cases than it does in real time. This is a trivial example of a much more complex process but the concept is the same. It would be ideal to be able to 'speed up real time' on our system. Since it's scripting language it's not processor dependent but ideally I would like to just speed up the box. How does one speed up the clock?
 
Old 05-16-2008, 10:45 AM   #4
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
"speed up the clock" on a PC is typically called "overclocking". Depending on the type of cooling, this might get you an increase of 10-50% (more with really extreme cooling methods).......nothing remotely approaching what you are looking for. To change the operation time from a day to 5 minutes, you need a whole new design.
 
Old 05-16-2008, 11:44 AM   #5
salasi
Senior Member
 
Registered: Jul 2007
Location: Directly above centre of the earth, UK
Distribution: SuSE, plus some hopping
Posts: 4,053

Rep: Reputation: 881Reputation: 881Reputation: 881Reputation: 881Reputation: 881Reputation: 881Reputation: 881
Quote:
Originally Posted by georgewr3 View Post
Our system often has problems that occur only in real time.

One of the problems, apart from the detail of running the processor with a faster clock (which is probably easy if you want 5%, somewhat difficult if you want 10 - 15%, and extrapolate yourself from there) is that if you don't want to introduce new bugs, you have to speed everything up.

That probably includes odd things that you haven't thought about like interrupts and timer/counters and the hard disk. And, of course, the external machinery.

Now if you do find a way of speeding up the hard disk, do please let me know, but I think you'll run into real difficulty when it comes to speeding up the rest of the universe (simplification: you may be able to get away with only speeding up the bit of the universe to which the system directly interfaces).

In general, this is one of the problems with real time. It is real and it is time and that makes it harder to debug stuff.

There are things that make the system faster (i.e., have greater throughput) but it is unclear whether these are likely to make the existing errors happen after shorter time intervals or introduce completely new errors or make the old errors go away. If you are really lucky, you make the old errors go away and introduce new errors, so that you now spend all of your time debugging stuff that has absolutely nothing to do with the original problem.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
time on our RH linux FTP server is four hours ahead, but desktop time is correct?? dgr Linux - Newbie 10 10-09-2007 06:42 AM
System time vs Hardware time and Daylight Savings Time Toadman Linux - General 6 03-17-2007 09:12 AM
System time vs Hardware time and Daylight Savings Time Toadman Linux - Networking 6 03-16-2007 08:14 PM
3D acceleration same time with tty jaakkop Linux - Hardware 2 10-17-2004 08:20 AM


All times are GMT -5. The time now is 04:12 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration