From mboxrd@z Thu Jan 1 00:00:00 1970 From: Frantisek Hanzlik Subject: Re: Dosemu Slower than CMD Date: Fri, 30 May 2008 05:53:56 +0200 Message-ID: <483F7A54.5050403@hanzlici.cz> References: <34cfb2e90803150947l4bf52c93g73289365331ebec1@mail.gmail.com> <47DCF93F.10404@hanzlici.cz> <34cfb2e90805291019r1f2db5dew81fac5e6f6184f76@mail.gmail.com> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <34cfb2e90805291019r1f2db5dew81fac5e6f6184f76@mail.gmail.com> Sender: linux-msdos-owner@vger.kernel.org List-ID: Content-Type: text/plain; charset="us-ascii"; format="flowed" To: Eddy Setyawan Cc: linux-msdos@vger.kernel.org Hello, I download Your app (mitra.tar.bz2: sl.exe etc) and configure and run it as You reccomended in mail from 16-Mar-2008, with config.sys param "buffers=10" (leaved at dosemu default value - as I/O is cached at Linux side, I not see any benefit from increasing number of buffers. And available DOS memory was 630kB for "buffers=1", and only 578 kB for "buffers=100". Difference in app speed wasn't perceivable. At PC with 5 years old P4 2.4GHz (Northwood) CPU/1GB RAM/320GB SATA HDD and dosemu 1.4.0-svn_1844 it take about 6 sec. At PC with E8200 Core2 Duo 2.66 GHz (Wolfdale) CPU/8GB RAM/750GB SATA HDD and dosemu 1.4.0.1-4.svn1858 it take about 3 sec. On both PCs run Fedora 9. Then I run it with some dosemu debug options (+9#DTEMx - note: this produce ~ 200MB log file and dosemu must be patched for it, as it log circular log with limited size - see "src/include/dosemu_debug.h" and "src/base/misc/utilities.c"). After some logfile analysis I got these results about called functions: How many times called What ======= ========= 196624 : int16_0x11-kbd-Check_Enhanced_Keystroke 623 : int21_2ac0-GetDate 623 : int21_2cc0-GetTime 70707 : int21_3f00-ReadFromFile 20035 bx=0x000a (20027x read 12.Byte, 8x read 1024.Byte) 5577 bx=0x000c read 339. bytes 5726 bx=0x000d (5577x read 12.Byte, 149x read 1024.Byte) 36252 bx=0x0009 read 180. Byte 1870 bx=0x0015 read 144. Byte 1247 bx=0x0016 read 12. Byte 70707 : int21_4200-SeekFromStartFile 26850 : int21_5c00-RecordLock 26851 : int21_5c01-RecordUnlock 53701 : int2f_110a-network_lock/unlock 70707 : int2f_1108-network_read-from-file Maybe this program section is slow because it has many read attempts, each of them also do seek in file and lock/unlock functions. And because it is on Linux native partition, these I/O go over INT2F network redirector too. Tried You run this app under Windows from remote share? Eddy Setyawan wrote: > hello Frantisek Hanzlik, > > On Sun, Mar 16, 2008 at 3:41 AM, Frantisek Hanzlik wrote: >> - When is section of Your program slow, it does any CPU-intensive task, >> or rather I/O intensive? > > it run CPU to 100% task, i've ask the programmer who code it, and he > say that process is do so many task but in CMD it run fast even i look > at task manager CPU usage jump to 100% but only less than 1sec using > dosemu it takes more than 10secs > >> - Your DOS files are on native DOS partition, or on Linux filesystem? > > it is Linux filesystem... i need run on it for sharing each user run it > >> - application is slow always, or only sometimes? > > only sometimes Only sometimes? It's possible somehow simulate this? > >> - Is slow only when there runs multiple those clipper apps, or is > > I try run only 1 apps it run slow > >> slow when run only one too? >> - You run DOSEMU under console or X Window? > > run in console bcause my plan is run it remotely with ssh > >> - Did You run any diagnostic tools, e.g. "top", "sar",...? > > i don't know what is sar, but using "top" show that dosemu process eat > CPU to 100% At these short interval it maybe OK. > >> Franta Hanzlik >> >> Eddy Setyawan wrote: >>> Hello DosEmu Mailing list, >>> >>> I am new here... i have a problem i hope guys here can assist me solve it >>> >>> i try to run application made using clipper when run in w*nd*ws cmd >>> command, and do some process it is a little bit slower user can feel >>> it have a delay but not more that 1 secs, but when i run it in dosemu, >>> it take more than 5 secs i don't know where this problem cause, >>> because the application is made by other person >>> any suggestion? or perhaps do i need to attach the application so you >>> guys can try on ? >>> >>> thanks >>> >>> NB: >>> w*nd*ws is run on Pentium 3 733 machine >>> dosemu (v. 1.4.0) is run on Linux Fedora 8 on AMD 64 3000+ machine >>> >>> regards, >>> Eddy Setyawan >>> -- Franta Hanzlik