* dosemu with different speed
@ 2004-04-20 8:14 kandan bala
2004-04-23 19:57 ` Ryan Underwood
0 siblings, 1 reply; 4+ messages in thread
From: kandan bala @ 2004-04-20 8:14 UTC (permalink / raw)
To: linux-msdos
hi all,
I am running multiple ( three instance) sessions of
dosemu. I want to run each dosemu with different
speeds.
How to set the speed.
Thanks
With regards,
kandan
________________________________________________________________________
Yahoo! Messenger - Communicate instantly..."Ping"
your friends today! Download Messenger Now
http://uk.messenger.yahoo.com/download/index.html
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: dosemu with different speed
2004-04-20 8:14 dosemu with different speed kandan bala
@ 2004-04-23 19:57 ` Ryan Underwood
2004-04-25 0:00 ` Ryan Underwood
0 siblings, 1 reply; 4+ messages in thread
From: Ryan Underwood @ 2004-04-23 19:57 UTC (permalink / raw)
To: linux-msdos
[-- Attachment #1: Type: text/plain, Size: 767 bytes --]
On Tue, Apr 20, 2004 at 09:14:26AM +0100, kandan bala wrote:
> hi all,
> I am running multiple ( three instance) sessions of
> dosemu. I want to run each dosemu with different
> speeds.
> How to set the speed.
What do you mean by "speed"? You want different scheduling priorities
for each one? Can just use 'nice'. If you are having problems with
input polling, try playing with $_hogthreshold. Otherwise, try
something like Mo'Slo to slow down a specific session, but this might
eat too much CPU for the other sessions too.
I have a patch that simulates a slow VGA card, which accomplishes a very
smooth slowdown for games without CPU drag. I still have to clean it up
and send it in though.
--
Ryan Underwood, <nemesis@icequake.net>
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: dosemu with different speed
2004-04-23 19:57 ` Ryan Underwood
@ 2004-04-25 0:00 ` Ryan Underwood
2004-04-28 6:44 ` kandan bala
0 siblings, 1 reply; 4+ messages in thread
From: Ryan Underwood @ 2004-04-25 0:00 UTC (permalink / raw)
To: linux-msdos
[-- Attachment #1: Type: text/plain, Size: 1423 bytes --]
On Sat, Apr 24, 2004 at 09:32:39PM +0100, Andrew Brooks wrote:
> Ryan Underwood wrote:
> > What do you mean by "speed"? You want different scheduling
> > priorities
> > for each one? Can just use 'nice'.
>
> I have a DOS application which must respond to an interrupt within a
> certain amount of time. I have tried using nice to raise the priority
> but it still misses occasionally.
Yep. DOSEMU is not DOS. If you have realtime constraints, we must look
into calling sched_setscheduler() on user's behalf to set policy to
SCHED_RR or SCHED_FIFO. But that will require root permission. It
is also possible for your machine to be completely locked-up if the DOS
task fails in any way.
> Do you think it's safe to run dosemu in the realtime scheduling class?
> (in which case I would leave hogthreshold at 1 = nicest)
I think DOSEMU itself is mostly safe. The problem is the DOS program
you are running. If it ever goes into an uncontrollable loop (i.e.
polling with interrupts disabled), you are screwed and will have to
reboot when running SCHED_FIFO. SCHED_RR should not be so bad because
the scheduler is guaranteed to seize control periodically, but only
other SCHED_RR processes are guaranteed to get any CPU time. So you
would have to have a SCHED_RR bash running too in order to be able to
gain control of the other process.
--
Ryan Underwood, <nemesis@icequake.net>
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: dosemu with different speed
2004-04-25 0:00 ` Ryan Underwood
@ 2004-04-28 6:44 ` kandan bala
0 siblings, 0 replies; 4+ messages in thread
From: kandan bala @ 2004-04-28 6:44 UTC (permalink / raw)
To: linux-msdos; +Cc: Ryan Underwood
hi,
i run three dos sessions connects to novell server.
If i run some programs in C: is running normal.
when I run application from novell (G:>) is become
slow. Is the sessions not receiving network packets.
Among three sessions, I want to run one of the session
fast.
Thanks
with regards,
-kandan
--- Ryan Underwood <nemesis-lists@icequake.net>
wrote: >
> On Sat, Apr 24, 2004 at 09:32:39PM +0100, Andrew
> Brooks wrote:
> > Ryan Underwood wrote:
> > > What do you mean by "speed"? You want different
> scheduling
> > > priorities
> > > for each one? Can just use 'nice'.
> >
> > I have a DOS application which must respond to an
> interrupt within a
> > certain amount of time. I have tried using nice
> to raise the priority
> > but it still misses occasionally.
>
> Yep. DOSEMU is not DOS. If you have realtime
> constraints, we must look
> into calling sched_setscheduler() on user's behalf
> to set policy to
> SCHED_RR or SCHED_FIFO. But that will require root
> permission. It
> is also possible for your machine to be completely
> locked-up if the DOS
> task fails in any way.
>
> > Do you think it's safe to run dosemu in the
> realtime scheduling class?
> > (in which case I would leave hogthreshold at 1 =
> nicest)
>
> I think DOSEMU itself is mostly safe. The problem
> is the DOS program
> you are running. If it ever goes into an
> uncontrollable loop (i.e.
> polling with interrupts disabled), you are screwed
> and will have to
> reboot when running SCHED_FIFO. SCHED_RR should not
> be so bad because
> the scheduler is guaranteed to seize control
> periodically, but only
> other SCHED_RR processes are guaranteed to get any
> CPU time. So you
> would have to have a SCHED_RR bash running too in
> order to be able to
> gain control of the other process.
>
> --
> Ryan Underwood, <nemesis@icequake.net>
>
> ATTACHMENT part 2 application/pgp-signature
name=signature.asc
________________________________________________________________________
Yahoo! Messenger - Communicate instantly..."Ping"
your friends today! Download Messenger Now
http://uk.messenger.yahoo.com/download/index.html
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2004-04-28 6:44 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-04-20 8:14 dosemu with different speed kandan bala
2004-04-23 19:57 ` Ryan Underwood
2004-04-25 0:00 ` Ryan Underwood
2004-04-28 6:44 ` kandan bala
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox