Welcome, Guest. Please login or register.

Author Topic: LHA 2.15 stopping at 'unable to open file'  (Read 1167 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline asrael22Topic starter

  • Jr. Member
  • **
  • Join Date: Mar 2017
  • Posts: 70
    • Show only replies by asrael22
LHA 2.15 stopping at 'unable to open file'
« on: January 17, 2018, 03:02:34 PM »
Hi.

I'm trying to archive a large folder (~200MB).
Using LHA it will always stop at some file, telling me that it cannot open it for reading. Depending on what's in the archive it is always a different file.
This is my lha cmdline: "lha -2 -a -e -r -x a ".
What could this be?

(Works fine with LZX.)


Manfred
 

Offline awol2k

  • Newbie
  • *
  • Join Date: Oct 2004
  • Posts: 29
    • Show only replies by awol2k
Re: LHA 2.15 stopping at 'unable to open file'
« Reply #1 on: January 18, 2018, 08:03:06 PM »
Are you trying this from CLI, SHELL or have tried both?
What have you got your stack set to?
Is this running under a 68060?

Also, shouldn't the command be this way around?:
"lha -2 -a -e -r -x a "
« Last Edit: January 18, 2018, 08:37:35 PM by awol2k »
 

Offline asrael22Topic starter

  • Jr. Member
  • **
  • Join Date: Mar 2017
  • Posts: 70
    • Show only replies by asrael22
Re: LHA 2.15 stopping at 'unable to open file'
« Reply #2 on: January 19, 2018, 07:57:19 AM »
Hi.

Yeah, cmd line is the other way around.

The stack was a good pointer. Because there are a _lot_ of files and it seems LHA scans them all before compressing.
So I've increased the stack of the Shell from 4k to 128k. Unfortunately it didn't help.
What's the difference between CLI and Shell?
This is a 68080 (Vampire) CPU.


Manfred
« Last Edit: January 19, 2018, 08:00:08 AM by asrael22 »
 

Offline awol2k

  • Newbie
  • *
  • Join Date: Oct 2004
  • Posts: 29
    • Show only replies by awol2k
Re: LHA 2.15 stopping at 'unable to open file'
« Reply #3 on: January 19, 2018, 06:10:20 PM »
To be honest, I forget the difference between CLI and shell, it's been a while since I knew!

EDIT:
AmigaOS.net says this:
"For historical reasons, you will still find references to the CLI in AmigaOS but this is really a shell that is used everywhere in the system. "

I did try and reproduce the problem using WinUAE with A1200 config +8MB fast, with the 68020 version of LhA, and a 231 MB directory of files last night
- it wasn't able to complete either.
I ran out of RAM disk about the time the LhA file got to 84MB
- which was about 3 or 4 hours after I started it!

If you haven't tried already I would try archiving it again but using the 68k version of LHA 2.1.5, and see if that makes a difference - as I appreciate the Vampire is not a true 060, but I have heard that some 060's were better at running 68000 code than they were at running 020, 030, or 040 versions of code.

I'm re-running the test but this time with WinUAE configured for 256MB z3 FAST....
This may take a while!
« Last Edit: January 19, 2018, 06:17:42 PM by awol2k »
 

Offline awol2k

  • Newbie
  • *
  • Join Date: Oct 2004
  • Posts: 29
    • Show only replies by awol2k
Re: LHA 2.15 stopping at 'unable to open file'
« Reply #4 on: January 19, 2018, 07:06:45 PM »
Turns out my laptop paused WinUAE when I opened VirtualBox, and wouldn't come out of it, so I had to restart WinUAE and the LhA!

I will get back to you...
 

Offline asrael22Topic starter

  • Jr. Member
  • **
  • Join Date: Mar 2017
  • Posts: 70
    • Show only replies by asrael22
Re: LHA 2.15 stopping at 'unable to open file'
« Reply #5 on: January 19, 2018, 07:33:17 PM »
Hmm, that doesn't make a lot of sense.
Why would it eat up such a lot of fast ram?
If that really is the case then it's a bug.

I don't think it has something to do with the Vampire. Although I cannot be sure.
I'll try the same thing on a 68060.



Manfred
 

Offline awol2k

  • Newbie
  • *
  • Join Date: Oct 2004
  • Posts: 29
    • Show only replies by awol2k
Re: LHA 2.15 stopping at 'unable to open file'
« Reply #6 on: January 19, 2018, 08:00:13 PM »
Amiga file systems used a bitmap (for where files are located) that is updated regularly, which I guess could cause a performance hit so I guess the developer of LhA tried to mitigate this using RAM:
- I only had 8MB of RAM: configured when i ran out btw.

LhA still going.. 51 MB so far...
« Last Edit: January 19, 2018, 08:02:56 PM by awol2k »
 

Offline Gulliver

Re: LHA 2.15 stopping at 'unable to open file'
« Reply #7 on: January 19, 2018, 08:05:04 PM »
create a file in envarc: with the name LHAOPTS
Inside it put only "-b32" but without quotes.

Test again.
 

Offline asrael22Topic starter

  • Jr. Member
  • **
  • Join Date: Mar 2017
  • Posts: 70
    • Show only replies by asrael22
Re: LHA 2.15 stopping at 'unable to open file'
« Reply #8 on: January 19, 2018, 09:20:19 PM »
Hmm, that seems to have worked.

What is that setting?



Manfred
 

Offline awol2k

  • Newbie
  • *
  • Join Date: Oct 2004
  • Posts: 29
    • Show only replies by awol2k
Re: LHA 2.15 stopping at 'unable to open file'
« Reply #9 on: January 19, 2018, 10:56:18 PM »
I'd love to know the answer to that too!

Meanwhile, my LhA is using 16,777,216 bytes of RAM:
 

Offline awol2k

  • Newbie
  • *
  • Join Date: Oct 2004
  • Posts: 29
    • Show only replies by awol2k
Re: LHA 2.15 stopping at 'unable to open file'
« Reply #10 on: January 20, 2018, 02:08:36 AM »
Well Manfred,
my LhA job just finished, 231 MB archived to 194MB in a super quick 4 hours and 59 minutes.
How long did yours take again?....
 

Offline Gulliver

Re: LHA 2.15 stopping at 'unable to open file'
« Reply #11 on: January 20, 2018, 03:15:40 AM »
That option creates a 32KB IO buffer and will not display any file progress.

It is in its documentation.
 

Offline asrael22Topic starter

  • Jr. Member
  • **
  • Join Date: Mar 2017
  • Posts: 70
    • Show only replies by asrael22
Re: LHA 2.15 stopping at 'unable to open file'
« Reply #12 on: January 20, 2018, 09:06:46 AM »
Hmm, that's interesting. Actually I've looked for some options and have seen -b option.
But I didn't try it because I thought that I/O buffer only sets the general read/write buffer for the files. The documentation does not mention that this setting helps with lots of input files to complete at all. So I'm a little surprised.

Anyway, this setting has helped.
Thanks a lot.


Manfred
 

Offline asrael22Topic starter

  • Jr. Member
  • **
  • Join Date: Mar 2017
  • Posts: 70
    • Show only replies by asrael22
Re: LHA 2.15 stopping at 'unable to open file'
« Reply #13 on: January 20, 2018, 09:12:39 AM »
Quote from: awol2k;835185
Well Manfred,
my LhA job just finished, 231 MB archived to 194MB in a super quick 4 hours and 59 minutes.
How long did yours take again?....


256MB compressed to 99MB.
Didn't take the time. Will do again. Currently in operation...
 

Offline asrael22Topic starter

  • Jr. Member
  • **
  • Join Date: Mar 2017
  • Posts: 70
    • Show only replies by asrael22
Re: LHA 2.15 stopping at 'unable to open file'
« Reply #14 on: January 20, 2018, 10:31:09 AM »
Quote from: asrael22;835195
256MB compressed to 99MB.
Didn't take the time. Will do again. Currently in operation...


I wasn't at the computer when it finished, but it was well under an hour.


Manfred