From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Alain M." Subject: Re: High network usage over network filesystem Date: Thu, 29 Jan 2009 11:52:07 -0200 Message-ID: <4981B487.9040803@pobox.com> References: <497ED038.5020709@adbosch.es> <20090127105454.834fff73.theatre@sasktel.net> <497F4C3A.6090605@adbosch.es> <20090128003417.895ec01d.theatre@sasktel.net> <498192D5.8010608@adbosch.es> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <498192D5.8010608@adbosch.es> Sender: linux-msdos-owner@vger.kernel.org List-ID: Content-Type: text/plain; charset="us-ascii"; format="flowed" To: dosEmu-list Javier Tarifa escreveu: >> > Nevermind, I've got it. > When you try to execute something, scan_dir scans all the files on your > path and on your current directory searching for it. > Even more, it scans multiple times searching for different name > combinations (exe/com/bat and with different capitalization), and that's > what causing > huge bandwidth consumption and stalls when you're on a big directory. > Luckily for me, as I said in another mail I'm mounting the remote novell > partition with ncpmount that makes all acceses to the mounted device > case-insensitive, so I just made scan_dir return true always, and now I > think it determines > if a file it's there or not by stating it in find_file. I have > encountered no problems with this yet. Could you explain this a little more... It seems that you have found the reason why FreeDOS is slow sometimes. Maybe that scan_dir could be re-written so as to scan only once ant test all name combinations for each file in turn. Alain > > > Another thing, I don't know if this is the proper place to ask for it, > but I've found that dosemu doesn't work right with dtach. > When you reattach you simply get a black screen and all the text, > windows, pictures, etc are gone. I can't use screen because for some > reason some programs just hang when they're executed in dosemu inside a > screen, but they work flawlessly in dtach. It would be > great if you could do something about this. To get around it I added > this at the end of sigwinch: > > SLsmg_touch_lines(0,vga.text_height); > SLsmg_refresh(); > > It does work now, but I know nothing of slang and the docs say you > should not use SLsmg_touch_lines, so it has to be a better way. > It would be great if in the next version dosemu and dtach could get along. > --