Welcome, Guest. Please login or register.

Author Topic: Amiga multi-tasking....Can't do anything else when copying files...  (Read 4097 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline stefcep2

  • Hero Member
  • *****
  • Join Date: Sep 2007
  • Posts: 1467
    • Show only replies by stefcep2
Re: Amiga multi-tasking....Can't do anything else when copying files...
« Reply #14 from previous page: December 24, 2008, 11:36:17 PM »
From memory you are using a compact flash card on the A1200 internal IDE bus?  Reading data from the compact flash card is VERY fast.  Writing to compact flash on your set up is VERY slow.  I think this is just the way compact flash works and also due to the IDE bus on the A1200 that locks up the CPU when writing.  I found that my original 40 meg hard drive writes faster than my compact flash!!!
 

Offline kolla

Re: Amiga multi-tasking....Can't do anything else when copying files...
« Reply #15 on: December 25, 2008, 12:31:43 AM »
Quote

alexh wrote:
As has already been said it's totally normal. File operations are blocking in AmigaOS.


That's slightly inaccurate, they are not blocking in AmigaOS, only in (old) Workbench.

Quote

I remember first seeing non blocking file I/O (on the Amiga) for WB alternative "Scalos" and thinking, way cool!


And in DirectoryOpus5 you can even copy from multiple sources to multiple destinations simultaniously.

Quote
If you do not have a DMA capable SCSI card then it probably isn't worth looking into as the CPU will be performing the File I/O?


Ofcourse it's still worth it, you can set the CPU priority used for the copy operation and do other operations in Workbench as normal.
B5D6A1D019D5D45BCC56F4782AC220D8B3E2A6CC
---
A3000/060CSPPC+CVPPC/128MB + 256MB BigRAM/Deneb USB
A4000/CS060/Mediator4000Di/Voodoo5/128MB
A1200/Blz1260/IndyAGA/192MB
A1200/Blz1260/64MB
A1200/Blz1230III/32MB
A1200/ACA1221
A600/V600v2/Subway USB
A600/Apollo630/32MB
A600/A6095
CD32/SX32/32MB/Plipbox
CD32/TF328
A500/V500v2
A500/MTec520
CDTV
MiSTer, MiST, FleaFPGAs and original Minimig
Peg1, SAM440 and Mac minis with MorphOS
 

Offline kolla

Re: Amiga multi-tasking....Can't do anything else when copying files...
« Reply #16 on: December 25, 2008, 12:40:19 AM »
Quote

ncafferkey wrote:
Quote

Piru wrote:
BTW. Is 3.9 AsyncWB really stable? I remember talk of some nasty bugs in it.


Yes, I remember having problems with it, but I can't remember the details. One quirky bug that I made a note of at the time was that if you tried to copy a hard link to another volume, it attempted to create a hard link spanning the volumes. But I think there might have been worse bugs too.


Speaking of hard links - how do I know that a file is a hard link in the first place? Neither workbench nor c:List is able to tell them apart. Not softlinks either for that matter.
B5D6A1D019D5D45BCC56F4782AC220D8B3E2A6CC
---
A3000/060CSPPC+CVPPC/128MB + 256MB BigRAM/Deneb USB
A4000/CS060/Mediator4000Di/Voodoo5/128MB
A1200/Blz1260/IndyAGA/192MB
A1200/Blz1260/64MB
A1200/Blz1230III/32MB
A1200/ACA1221
A600/V600v2/Subway USB
A600/Apollo630/32MB
A600/A6095
CD32/SX32/32MB/Plipbox
CD32/TF328
A500/V500v2
A500/MTec520
CDTV
MiSTer, MiST, FleaFPGAs and original Minimig
Peg1, SAM440 and Mac minis with MorphOS
 

Offline Piru

  • \' union select name,pwd--
  • Hero Member
  • *****
  • Join Date: Aug 2002
  • Posts: 6946
    • Show only replies by Piru
    • http://www.iki.fi/sintonen/
Re: Amiga multi-tasking....Can't do anything else when copying files...
« Reply #17 on: December 25, 2008, 01:23:50 PM »
@kolla
Quote
how do I know that a file is a hard link in the first place?

AmigaOS API is a bit screwed here.

The only dos.library level solution is to ExNext/ExAll the parent directory.

For softlinks you can also ACTION_LOCATE_OBJECT the specific name. If you get an error and Result2 is ERROR_IS_SOFT_LINK then it is a softlink. If the packet succeeds you must free the lock with ACTION_FREE_LOCK.

As for the dir and list commands, they just don't support links.
 

Offline kolla

Re: Amiga multi-tasking....Can't do anything else when copying files...
« Reply #18 on: December 25, 2008, 01:44:36 PM »
Quote

Piru wrote:
@kolla
Quote
how do I know that a file is a hard link in the first place?

AmigaOS API is a bit screwed here.

The only dos.library level solution is to ExNext/ExAll the parent directory.

For softlinks you can also ACTION_LOCATE_OBJECT the specific name. If you get an error and Result2 is ERROR_IS_SOFT_LINK then it is a softlink. If the packet succeeds you must free the lock with ACTION_FREE_LOCK.

As for the dir and list commands, they just don't support links.


Exactly, it seems very "half done".

The only thing I ever use linking for is a "makelink ram:Disk.info envarc:ram_disk.info soft" in s:user-startup, so that I can snapshot icon etc. as normal :-)
B5D6A1D019D5D45BCC56F4782AC220D8B3E2A6CC
---
A3000/060CSPPC+CVPPC/128MB + 256MB BigRAM/Deneb USB
A4000/CS060/Mediator4000Di/Voodoo5/128MB
A1200/Blz1260/IndyAGA/192MB
A1200/Blz1260/64MB
A1200/Blz1230III/32MB
A1200/ACA1221
A600/V600v2/Subway USB
A600/Apollo630/32MB
A600/A6095
CD32/SX32/32MB/Plipbox
CD32/TF328
A500/V500v2
A500/MTec520
CDTV
MiSTer, MiST, FleaFPGAs and original Minimig
Peg1, SAM440 and Mac minis with MorphOS
 

Offline platon42

  • Hero Member
  • *****
  • Join Date: Jul 2002
  • Posts: 573
    • Show only replies by platon42
    • http://www.platon42.de/
Re: Amiga multi-tasking....Can't do anything else when copying files...
« Reply #19 on: December 25, 2008, 04:21:33 PM »
Quote

kolla wrote:

The only thing I ever use linking for is a "makelink ram:Disk.info envarc:ram_disk.info soft" in s:user-startup, so that I can snapshot icon etc. as normal :-)


I sometimes use hard links for saving disk space, e.g. for Poseidon installer disks (either in flashrom or on DD-disk) if there's the same icon multiple times (drawer or installer icons), I would hardlink the .info files to one "template". This would save me a few kilobytes of diskspace :-)

Other than that, hardlinks should probably be avoided at all costs, the chances that the filesystem supports them correctly is slim and they cause all kinds of troubles for most file managers.
--
Regards, Chris Hodges )-> http://www.platon42.de <-(
hackerkey://v4sw7CJS$hw6/7ln6pr7+8AOP$ck0ma8u2LMw1/4Xm5l3i5TJCOTextPad/e7t2BDMNb7GHLen5a34s5IMr1g3/5ACM