Unix file size - HP-UX


 
Thread Tools Search this Thread
Operating Systems HP-UX Unix file size - HP-UX
# 1  
Old 07-18-2003
Unix file size - HP-UX

Hi All,

Currently we are using HP-UX machine.. We are facing problems with respect to file size. The file size does not seem to be exceeding 2 GB.

Could you please let me know the following

1. Is there any difference between a 32 bit application and 64 bit application with respect to file size. If so what is the maximum file size allowed for a 32 bit application and what is the maximum size allowed for a 64 bit application?

2. What other factors affect the file size limit on a HP-UX machine?

3. Can the file size limit be changed to suit the needs? If so how?

4. Currently we are using a 32 bit application compiled using a 32 bit compiler. Can the compile environment be changed from 32-bit to a 64-bit compile environment to compile a 32 bit application. If so what are the parameters that needs to be changed for this?

Thanks in advance,
Krishna
# 2  
Old 07-18-2003
Are you mounting the filesystem with the largefiles option?
# 3  
Old 07-18-2003
Actually, a command like "fsadm /dev/vg00/rlvol1" should be used to see if largefile support is enabled. Note that the mount option will only "attempt" to allow large files.

setrlimit() and ulimit() can be used to limit the size of file that a program can create.

HP-UX supports two ways for a 32 bit program to use large files. If you define _FILE_OFFSET_BITS to be 64 at compile time, the regular system calls now handle large files. If you define _LARGEFILE64_SOURCE a bunch of routines like open64() become available. I have never used either. I just compile in 64 bit mode which is done by using +DD64 on the cc comand line. But there is a "long long" datatype which is a 64 bit integer in either 32 bit or 64 bit mode.

Also see this.

Last edited by Perderabo; 07-31-2005 at 10:54 AM..
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Get the remote server file size in UNIX

Hi All, I am trying to sftp, get a file from remote server. Post this we need to check the remote server file size or checksum value of the remote server file and compare it with the file size in the current server. But I am facing issue to get the remote server file size. Could you please... (2 Replies)
Discussion started by: abhi_123
2 Replies

2. Shell Programming and Scripting

Get size of a file using ls on all UNIX OSes

to get the most granular size of a file, you can do so with: solaris hosts: ls -l /tmp/filea | awk '{print $4}' linux hosts: ls -l /tmp/filea | awk '{print $5}' Is there a more universal command that will give the file size? i'm leery of this ls command because the fields in... (21 Replies)
Discussion started by: SkySmart
21 Replies

3. Shell Programming and Scripting

Unix file empty.. but size is greater than zero??/

Hi, I have a file by redirecting some contents in unix shell. Even when there is no content that is being redirected, the file size still shows greater than zero. but even if there is no matching pattern the file APPRES has size greater than 0bytes. awk -f AA.awk $logfile>APPRES... (3 Replies)
Discussion started by: justchill
3 Replies

4. UNIX for Advanced & Expert Users

how to find the file size in unix

Anybody can help HOW TO FIND THE FILE SIZE IN UNIX (5 Replies)
Discussion started by: lmraochodisetti
5 Replies

5. Shell Programming and Scripting

unix script to check whether particular file exists and to find its size

I want to find the size of particular file exists in a particular directory and i wnt to zip it. In the below mentioned code it should check the MQ.log in the particular directory.Please correct my code so that it will check for particular MQ.log but i could not able to check whether the... (9 Replies)
Discussion started by: Balachandar
9 Replies

6. UNIX for Dummies Questions & Answers

Maximum size of a file in unix

What's the maximum file size supported by unix. (3 Replies)
Discussion started by: nagalenoj
3 Replies

7. UNIX for Dummies Questions & Answers

file size different in unix and windows

I have a file on solaris/linux. ls -ls shows the logical size to be: 13292 However, when I transfer the file to my windows machine.. Rightclick->Properties shows the file size as: 13421 I wrote a small program on unix and windows that does a stat() on the file and reports the st_size... (6 Replies)
Discussion started by: the_learner
6 Replies

8. Filesystems, Disks and Memory

unix file size becomes zero

Hi, when can a unix library file size become zero? For example.: can mistyping this command -> /usr/ucb/ps -auxww|grep -i <process name> make the "ps" library file size to become zero or its contents to get deleted? Is there any other way that an inadvertant mistake could cause the file size to... (1 Reply)
Discussion started by: ananthmm
1 Replies

9. Shell Programming and Scripting

File size limitation of unix sort command.

hi , iam trying to sort millions of records which is delimited and i cant able to use sort command more than 60 million..if i try to do so i got an message stating that "File size limit exceeded",Is there any file size limit for using sort command.. How can i solve this problem. thanks ... (7 Replies)
Discussion started by: cskumar
7 Replies

10. UNIX for Dummies Questions & Answers

Hp Unix file size problem

We have two files /var/adm/wtmp and /var/opt/OV/tmp/OpC/guiagtdf Could you please tell me if what these files are and if I can purge them as they are very big and Vi will not let me look at them, it gives me a message 'file to long'. Help any ideas Thanks :cool: (3 Replies)
Discussion started by: A Roberts
3 Replies
Login or Register to Ask a Question