Operating System - HP-UX
1833152 Members
3312 Online
110051 Solutions
New Discussion

cannot " vi or view" entire file if over 100m

 
SOLVED
Go to solution
Jerry L. Sims
Frequent Advisor

cannot " vi or view" entire file if over 100m

Hello All,

Does anyone know if there is a restriction
for viewing ( vi or view ) a file over 100m
in size? I can view most of the file, but not all. I can extcute a "tail -f" on the file or
"cat" the file. Is there a buffer limit? Maybe
a kernel parm setting ? I have listed the files
I cannot view completly.

***************************
HP-UX B.11.11 U 9000/800 9000/800/rp7410
# find /applogs -size +100000000c -xdev -exec ll {} \;
-rw-r--r-- 1 portprd app 624092134 Mar 26 17:02 /applogs/portal/webserv/apache/old/wlplugin.log
-rw-r--r-- 1 portprd app 234260025 Mar 30 17:42 /applogs/portal/webserv/apache/wlplugin.log
-rw-r--r-- 1 portprd app 117031282 Mar 30 17:18 /applogs/portal/webserv/apache/wlplugin.log.bak
-rw-r--r-- 1 portprd app 243718837 Mar 26 17:02 /applogs/portal/webserv/siteminder/old/smwa.log
---------- 1 portprd app 526874624 Mar 29 09:25 /applogs/portal/webserv/weblogic/paulo/wlproxy.log
-rw-r--r-- 1 portprd app 526874624 Mar 27 22:00 /applogs/tmp/wlproxy.log
******************************



6 REPLIES 6
A. Clay Stephenson
Acclaimed Contributor
Solution

Re: cannot " vi or view" entire file if over 100m

Check to see if you are hitting maxdsiz. It is also possible that you are running out of virtual memory because more swap space is needed but I would bet on maxdsiz. vi is a 32-bit process so maxdsiz as opposed to its 64-bit cousin should be the limiting tunable; however, if you have maxdsiz_64bit smaller than maxdsiz then it can "win" in this case and be the constraint so check them both.

Worst-case, use the split command to break this monster into bite-size chunks. Man split for details.
If it ain't broke, I can fix that.
Shaikh Imran
Honored Contributor

Re: cannot " vi or view" entire file if over 100m

Hi,

Try This :
set TMPDIR to /tmp in .exrc
.exrc file is the initialization file for vi

Regards
I'll sleep when i am dead.
KapilRaj
Honored Contributor

Re: cannot " vi or view" entire file if over 100m

Do you have enough space in /var/tmp ? vi uses this dir as a temp

Kaps
Nothing is impossible
Bruno Ganino
Honored Contributor

Re: cannot " vi or view" entire file if over 100m

Check parameters
maxswapchunks
- If it is necessary to increase the limit of the space of configurabile exchange beyond the default, to increase the value of the parameter of the operating system maxswapchunks using SAM (that it has greater information on the settabili parameters) or to reshape the kernel using the HP-UX commandos.

See Also
swchunk
maxdsiz

*** Note: changes of parameter will take effect at next boot.

HTH
Bruno
Torino (Turin) +2H
SANTOSH S. MHASKAR
Trusted Contributor

Re: cannot " vi or view" entire file if over 100m

Use more command if u only want to view the contents.-Santosh
Graham Cameron_1
Honored Contributor

Re: cannot " vi or view" entire file if over 100m

Have you tried vim (enhanced vi)?
It has many advantages over the standard, including support for massive files.

The US site for this is
http://hpux.cs.utah.edu/hppd/hpux/Editors/vim-6.2/

-- Graham
Computers make it easier to do a lot of things, but most of the things they make it easier to do don't need to be done.