UNIX Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOperating SystemsUNIX Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old May 8th, 2008, 03:46 AM
aidanpeiser's Avatar
aidanpeiser aidanpeiser is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2001
Location: south pole
Posts: 48 aidanpeiser User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 h 43 m 39 sec
Reputation Power: 8
Send a message via Google Talk to aidanpeiser
Lightbulb How do i Simulate System Time and fast forward it?

I have a application that runs based on real time and it's function is to run multiple scheduled tasks on suse linux from a variety of different applications that look at the OS system time.

I want to simulate what will happen in 1 day within 1 hour.

So i would like to get some ideas on what i should look out for or how i should go about this.
I was thinking i could setup my own NTP server and run a ntpdate command to update the time to fast forward to my simulated time. But i think i will run into many issues with cronjobs not getting run and other systems not running tasks because the time skipped the exact time required to run that task.
OR i could run hwclock --set --date=11:30 every 5 seconds but i still might get the same problems.

How can i control the system time directly and simulate Time for every second just faster?

Thanks
__________________
..,.,.,,.
C 'C' C
> * <

Reply With Quote
  #2  
Old May 8th, 2008, 04:43 AM
SimonJM SimonJM is offline
Contributing User
Dev Shed Novice (500 - 999 posts) Click here for more information
 
Join Date: Mar 2006
Posts: 762 SimonJM User rank is Major (30000 - 40000 Reputation Level)SimonJM User rank is Major (30000 - 40000 Reputation Level)SimonJM User rank is Major (30000 - 40000 Reputation Level)SimonJM User rank is Major (30000 - 40000 Reputation Level)SimonJM User rank is Major (30000 - 40000 Reputation Level)SimonJM User rank is Major (30000 - 40000 Reputation Level)SimonJM User rank is Major (30000 - 40000 Reputation Level)SimonJM User rank is Major (30000 - 40000 Reputation Level)SimonJM User rank is Major (30000 - 40000 Reputation Level)SimonJM User rank is Major (30000 - 40000 Reputation Level) 
Time spent in forums: 2 Weeks 1 Day 22 h 8 m 4 sec
Reputation Power: 336
At the risk of sounding really silly, just what is the time pressure involved whereby you cannot afford to just let them run normally?
__________________
"I feel so miserable without you; it's almost like having you here" - Stephen Bishop

Reply With Quote
  #3  
Old May 8th, 2008, 07:48 AM
aidanpeiser's Avatar
aidanpeiser aidanpeiser is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2001
Location: south pole
Posts: 48 aidanpeiser User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 h 43 m 39 sec
Reputation Power: 8
Send a message via Google Talk to aidanpeiser
Quote:
Originally Posted by SimonJM
At the risk of sounding really silly, just what is the time pressure involved whereby you cannot afford to just let them run normally?


The time pressure is in place because we would like to simulate the system of events for a week or month withing a working days time frame, this will be used for training users to use the system.

i was thinking of using something like NIST and modify it not to loop at a NTP but rather my settings that feed the time increment. but will the tasks still run ?

Reply With Quote
  #4  
Old May 9th, 2008, 03:08 AM
SimonJM SimonJM is offline
Contributing User
Dev Shed Novice (500 - 999 posts) Click here for more information
 
Join Date: Mar 2006
Posts: 762 SimonJM User rank is Major (30000 - 40000 Reputation Level)SimonJM User rank is Major (30000 - 40000 Reputation Level)SimonJM User rank is Major (30000 - 40000 Reputation Level)SimonJM User rank is Major (30000 - 40000 Reputation Level)SimonJM User rank is Major (30000 - 40000 Reputation Level)SimonJM User rank is Major (30000 - 40000 Reputation Level)SimonJM User rank is Major (30000 - 40000 Reputation Level)SimonJM User rank is Major (30000 - 40000 Reputation Level)SimonJM User rank is Major (30000 - 40000 Reputation Level)SimonJM User rank is Major (30000 - 40000 Reputation Level) 
Time spent in forums: 2 Weeks 1 Day 22 h 8 m 4 sec
Reputation Power: 336
Your major issue with ntp would be if the server and time server times diverge by too much the ntp client will pack it's bags up and go home. I'm not sure just at what point that would be, plus ntp generally uses gentle increments to adjust time, it sounds like you want to compress stuff down to a marked degree.
If this is just running on a single server it sound like you may want to 'just' have something to, every now and again jump the time forward - say every 10 minutes skip ahead 30 mins?

Reply With Quote
Reply

Viewing: Dev Shed ForumsOperating SystemsUNIX Help > How do i Simulate System Time and fast forward it?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway
Stay green...Green IT