Operating System - HP-UX
1830233 Members
2298 Online
109999 Solutions
New Discussion

Re: Problem editing a file

 
SOLVED
Go to solution
Kevin Lamb_2
Frequent Advisor

Problem editing a file

Hi,
I have a NASTRAN output file which is 210Mb in size, this contains 3505011 lines and 220468195 characters, I am running HP-UX11.00 on an HP C3700 with 4Gb RAM and 5.5Gb of swap.

If I use dtpad in either server or standalone mode I cannot save the file once additions have been made, I get the TT_ERROR_PROCID error.

If I use vi I get the out of memory error and it suggest using ed

If I use ex I get the same error as I got using vi.

I have not tried to use ed as I do not fully understand the use of ed, and the file will be being edited by one of our engineers who would require training even to use vi.

Is there any chance that dtpad has some variable that could be set to handle large files or is there any other X editors that could be used.

Hope some one can help

Kev
"I'd rather be flying"
I'd Rather be Flying!!!
9 REPLIES 9
John Poff
Honored Contributor

Re: Problem editing a file

Hi,

The vi editor might be choking because of a lack of space in either /tmp or /var/tmp. If your /tmp is only 200MB it might complain.

You could try using the 'split' command to split the large file into several smaller files, edit those files, and then combine them back into one file again.

JP
Erkki Myllynen
New Member

Re: Problem editing a file

seems your are hiting a data size seiling,
depending on what shell you are using
look at the man page (sh tcsh bash ...)
for limit or ulimit and adjust your user limits to unlimited

kernel limits ?
maxdsize, check/set with SAM, needs root/reboot

maxdsize is for 32bit apps
maxdsiz_64bit is for 64bit apps
Leif Halvarsson_2
Honored Contributor

Re: Problem editing a file

Hi,

If you really need to edit a such file I think the easiest solution is to use split (see man pages for split) and then concatenate the pices again with cat.
Kevin Lamb_2
Frequent Advisor

Re: Problem editing a file

Thanks all for the responses so far.

The /tmp area on the machine in question has over 1Gb available.

The current shell is csh, just checked the man page and this does not mention the exact figure for ulimit.

I was trying to avoid the use of split/cat etc as the user is not technical, I was looking for a simplistic way of doing things.

Cheers,

Kev

"I'd rather be flying"
I'd Rather be Flying!!!
Alex Glennie
Honored Contributor
Solution

Re: Problem editing a file

PHSS_18428 introduced the following:

4. dtpad fails to open large (>~30Mb) files.

As I understand things dtpad now doesn't have an upper limit it's dependant upon swap and physical memory .... if this were a problem I'd expect it would fail with warning "insufficient memory" and as you say you can open the file ... just not save the changes.

Qu if you start dtpad normally (no standAlone) and prior to saving the file you kill the associated dtpad -server process does this make a difference ?


Other than than I'm unsure what could be causing this ..... CDE patch level ?
Kevin Lamb_2
Frequent Advisor

Re: Problem editing a file

Hi Alex,

Just tried to do the save after killing the dtpad -server process and I get the following:
Error: Cannot perform realloc

I am now in the process of downloading the patch along with all the dependencies, I will let you know what happens

Kev

"I'd rather be flying"
I'd Rather be Flying!!!
Kevin Lamb_2
Frequent Advisor

Re: Problem editing a file

Hi,

Thanks for all the responses, tried them all but to no avail.

Just spoken to one of our Engineers who used to use NASTRAN and they used nedit, I have just installed nedit from the portal and this works a treat.

Thanks again for the support.

Kev
"I'd rather be flying"
I'd Rather be Flying!!!
Tim Sanko
Trusted Contributor

Re: Problem editing a file

Single,Twin,Fixed,or Rotor?
Kevin Lamb_2
Frequent Advisor

Re: Problem editing a file

Single, Fixed.
Still saving for PPL course, I will do it one day, may even take a trip statesside to do it as it is cheaper than in the UK

Kev
"I'd rather be flying"
I'd Rather be Flying!!!