Operating System - HP-UX
1833758 Members
2516 Online
110063 Solutions
New Discussion

limit file is 2 G in HPUX 11I

 
omar abdullah
Frequent Advisor

limit file is 2 G in HPUX 11I

Hi My dear

i have hp rp8400 with hpux 11i

how to increase ulimit file to 4GB in hpux
or increase it to ulimit

Regards
A. Omar
16 REPLIES 16
Deepak Kr
Respected Contributor

Re: limit file is 2 G in HPUX 11I

Omar,

Provide following:
#uname -a
#ulimit -a

and

#kmtune -q maxdsiz
or
#kctune -q maxdsiz

"There is always some scope for improvement"
Fabio Ettore
Honored Contributor

Re: limit file is 2 G in HPUX 11I

Hi,

has your filesystem largefiles enabled?

Check that by

fsadm -F vxfs /

Best regards,
Fabio
WISH? IMPROVEMENT!
Sandeep_Chaudhary
Trusted Contributor

Re: limit file is 2 G in HPUX 11I

ulimit -f 8388608

add the same entry in .profile of user . if u want to apply this to everybody add to /etc/profile
Deepak Kr
Respected Contributor

Re: limit file is 2 G in HPUX 11I

Check kernel paramters mentioned above and then hard limits set otherwise you will get error when you will try changing beyond limit

shpu12:rsh:/home/dc93650>ulimit -aH
time(seconds) unlimited
file(blocks) unlimited
data(kbytes) 4292870144
stack(kbytes) 131072
memory(kbytes) unlimited
coredump(blocks) unlimited

"There is always some scope for improvement"
V. Nyga
Honored Contributor

Re: limit file is 2 G in HPUX 11I

Hi,

'limit file is 2 G in HPUX 11i'
As Fabio said, you have to check if it's an ulimit problem or a non-largefile system problem.
Do you have problems to store more than 2 GB of files or to store one file with more than 2 GB?

Volkmar
*** Say 'Thanks' with Kudos ***
omar abdullah
Frequent Advisor

Re: limit file is 2 G in HPUX 11I

hi Volkmar

time(seconds) unlimited
file(blocks) unlimited
data(kbytes) 262144
stack(kbytes) 8192
memory(kbytes) unlimited
coredump(blocks) 15360


I have problems to store one file with more than 2 GB
and in export from oracle the dump file reach only to 2 GB

RegarsdA. Omar
Tim Nelson
Honored Contributor

Re: limit file is 2 G in HPUX 11I

Is the output filesystem set for largefiles ??? !!!!!!

omar abdullah
Frequent Advisor

Re: limit file is 2 G in HPUX 11I

HI MydEAR

I need configure ulimit in my system to large file (4 GB)
please giv me steps for that

Regards
A. Omar
Tim Nelson
Honored Contributor

Re: limit file is 2 G in HPUX 11I

Please post the output of .

mount |grep <>

omar abdullah
Frequent Advisor

Re: limit file is 2 G in HPUX 11I

Hi
I need configure ulimit in my system to large file (4 GB)
please giv me steps for that
please open attached file (kernel parameters file from my hpux 11i)

Regards
A. Omar
omar abdullah
Frequent Advisor

Re: limit file is 2 G in HPUX 11I

Hi
I need configure ulimit in my system to large file (4 GB)
please giv me steps for that
please open attached file (kernel parameters file from my hpux 11i)

Regards
A. Omar


Current Pending Associated
Name Value Value Type Module Description
NSTREVENT 50 50 Static N/A Max Number of Outstanding Streams bufcalls
NSTRPUSH 16 16 Static N/A Max Number of Streams Modules in Single Stream
NSTRSCHED 0 0 Static N/A Number of Streams Scheduler Daemons to Run
STRCTLSZ 1024 1024 Static N/A Max Size of Streams Message Control (Bytes)
STRMSGSZ 65535 65535 Static N/A Max Size of Streams Message Data (Bytes)
acctresume 4 4 Static N/A Threshold to Resume Accounting
acctsuspend 2 2 Static N/A Threshold to Suspend Accounting
aio_listio_max 256 256 Static N/A Max No. of AIO Ops That Can Be Specified in lio_list Call
aio_max_ops 2048 2048 Static N/A Maximum No. of AIO Ops That Can Be Queued At Any Time
aio_physmem_pct 10 10 Static N/A Percentage of Physical Memory Lockable for Request Call-Back Operations
aio_prio_delta_max 20 20 Static N/A Max Slowdown Factor; Greatest Delta Allowed in aiocb's aio_reqprio Field
allocate_fs_swapmap 0 0 Static N/A Allocate Swapmap Space at swapon
alwaysdump 1 1 Static N/A Bit-Mask of Kernel Memory Pages Included in Dumps
bufcache_hash_locks 10240 10240 Static N/A Buffer Cache Spinlock Pool Size
bufpages 0 0 Static N/A Number of Buffer Pages
chanq_hash_locks 256 256 Static N/A Channel Queue Spinlock Pool Size
core_addshmem_read 0 0 Dynamic N/A Boolean; If Set, Include Read-Protected Shared Memory Segments In Application Core File
core_addshmem_write 0 0 Dynamic N/A Boolean; If Set, Include Write-Protected Shared Memory Segments In Application Core File
create_fastlinks 0 0 Static N/A Create Fast Symbolic Links
dbc_max_pct 50 50 Static N/A Max Dynamic Buffer Cache Size as Percent of System RAM Size
dbc_min_pct 5 5 Static N/A Min Dynamic Buffer Cache Size as Percent of System RAM Size
default_disk_ir 0 0 Static N/A Immediate Report (Write Cache Enable) Behavior for SCSI Disks
disksort_seconds 0 0 Static N/A Maximum Wait Time For Disk Requests
dnlc_hash_locks 512 512 Static N/A Number of Locks For Directory Cache Synchronization
dontdump 0 0 Static N/A Bit-Mask of Kernel Memory Pages Excluded From Dumps
dst 1 1 Static N/A Daylight Savings Time Policy
effective_maxpid 30000 30000 Static N/A Maximum Allowed Process ID Value
enable_idds 0 0 Static N/A (Boolean) Turns Off/On Intrusion Detection Data Source (IDDS) Kernel Subsystem
eqmemsize 15 15 Static N/A Minimum Number of Equivalently Mapped Memory Pages on the Reserve List
executable_stack 1 1 Static N/A Allows or denys program execution on the stack (security feature)
fcp_large_config 0 0 Static N/A Boolean; 0 If Small (<=64 Nodes) Loop, 1 if Large (<=126 Nodes) Loop
fs_async 0 0 Static N/A Select Asynchronous Writes
ftable_hash_locks 64 64 Static N/A File Table Spinlock Pool Size
hdlpreg_hash_locks 128 128 Static N/A Number (Given As Power of Two) of Spinlocks Allocated to Pregion Hash Table Objects
hfs_max_ra_blocks 8 8 Static N/A Maximum Number of Read-Ahead Blocks Outstanding for HFS File Systems, in Blocks
hfs_max_revra_blocks 8 8 Static N/A Maximum Number of Kbytes Read With Each Read-Ahead Operation for HFS File Systems
hfs_ra_per_disk 64 64 Static N/A Amount of HFS File System Read-Ahead, in Kbytes
hfs_revra_per_disk 64 64 Static N/A Maximum Number of HFS File System Blocks Read With Each Reverse Read-Ahead Operation
hp_hfs_mtra_enabled 1 1 Static N/A Boolean; Enable/Disable HFS Multi-Threaded Read-Ahead
initmodmax 50 50 Static N/A Max No. of Kernel Modules Saved By System Crash Dump
io_ports_hash_locks 64 64 Static N/A I/O Ports Spinlock Pool Size
ksi_alloc_max 131232 131232 Static N/A System-wide Limit of Queued Signal That Can be Allocated
ksi_send_max 32 32 Static N/A Max No. of Queued Signals a Process May Send and Have Pending at Receiver(s)
max_async_ports 50 50 Static N/A Maximum Number of asyncdsk Ports That Can be Open At One Time
max_fcp_reqs 512 512 Static N/A Maximum Number of Concurrent Fiber Channel Requests Per Adapter
max_mem_window 0 0 Static N/A Maximum Number of Memory Windows Configurable By User
max_thread_proc 64 64 Static N/A Max No. of Threads Allowed in Each Process
maxdsiz 268435456 268435456 Static N/A Max Data Segment Size For 32-bit Processes (Bytes)
maxdsiz_64bit 1073741824 1073741824 Static N/A Max Data Segment Size For 64-bit Processes (Bytes)
maxfiles 15360 15360 Static N/A Soft File Limit Per Process
maxfiles_lim 1024 1024 Dynamic N/A Hard File Limit Per Process
maxssiz 8388608 8388608 Static N/A Max Stack Segment Size For 32-bit Processes (Bytes)
maxssiz_64bit 8388608 8388608 Static N/A Max Stack Segment Size For 64-bit Processes (Bytes)
maxswapchunks 12049 12049 Static N/A Max Number of Swap Chunks
maxtsiz 67108864 67108864 Dynamic N/A Max Text Segment Size For 32-bit Processes (Bytes)
maxtsiz_64bit 1073741824 1073741824 Dynamic N/A Max Text Segment Size For 64-bit Processes (Bytes)
maxuprc 150 150 Dynamic N/A Max Number of User Processes
maxusers 2048 2048 Static N/A Value of MAXUSERS Macro (Does Not Affect Max. User Logins)
maxvgs 20 20 Static N/A Max Number of Volume Groups
mesg 1 1 Static N/A Enable Sys V Messages
modstrmax 500 500 Static N/A Max Size (Bytes) of Kernel-Module Savecrash Table
msgmap 258 258 Static N/A Max Number of Message Map Entries
msgmax 32768 32768 Dynamic N/A Message Max Size (bytes)
msgmnb 32768 32768 Dynamic N/A Max Number of Bytes on Message Queue
msgmni 50 50 Static N/A Number of Message Queue Identifiers
msgseg 7168 7168 Static N/A Number of Segments Available for Messages
msgssz 8 8 Static N/A Message Segment Size
msgtql 256 256 Static N/A Number of Message Headers
nbuf 0 0 Static N/A Number of Buffer Cache Headers
ncallout 28739 28739 Static N/A Max Number of Pending Timeouts
ncdnode 150 150 Static N/A Max Number of Open CDFS Files
nclist 32868 32868 Static N/A Number of cblocks for pty and tty Data Transfers
ncsize 26032 26032 Static N/A Directory Name Lookup Cache (DNLC) Space Needed for Inodes
ndilbuffers 8192 8192 Static N/A Number of DIL Buffers
nfile 32140 32140 Static N/A Max Number of Open Files
nflocks 2000 2000 Static N/A Max Number of File Locks
ninode 20912 20912 Static N/A Max Number of Open Inodes
nkthread 28723 28723 Static N/A Max Number of Kernel Threads Supported by the System
no_lvm_disks 0 0 Static N/A Boolean; Set Only If System Has No LVM Disks
nproc 16404 16404 Static N/A Max Number of Processes
npty 256 256 Static N/A Number of ptys (Pseudo ttys)
nstrpty 256 256 Static N/A Max Number of Streams-Based PTYs
nstrtel 256 256 Static N/A Number of Telnet Session Device Files
nswapdev 10 10 Static N/A Max Devices That Can be Enabled for Swap
nswapfs 10 10 Static N/A Max File Systems That Can be Enabled for Swap
nsysmap 32808 32808 Static N/A Number of Entries in Kernel Dynamic Memory Allocation Map
nsysmap64 32808 32808 Static N/A Number of Entries in Kernel Dynamic Memory Allocation Map
o_sync_is_o_dsync 0 0 Static N/A Enable/Disable Translation of O_SYNC to O_DSYNC in open(2)/fcntl(2) Calls
pfdat_hash_locks 128 128 Static N/A Pfdat Spinlock Pool Size
public_shlibs 1 1 Static N/A Public Shared Libraries
region_hash_locks 128 128 Static N/A Region Spinlock Pool Size
remote_nfs_swap 0 0 Static N/A Enable Swapping Across NFS
rtsched_numpri 32 32 Static N/A Number of POSIX.1b Realtime Priorities to Support
scroll_lines 100 100 Static N/A Number of ITE Off Screen Lines
scsi_max_qdepth 8 8 Dynamic N/A Maximum Number of SCSI Commands Queued Up For SCSI Devices
scsi_maxphys 1048576 1048576 Static N/A Maximum Record Size For SCSI I/O Subsystem, In Bytes
sema 1 1 Static N/A Enable Sys V Semaphores
semaem 16384 16384 Static N/A Max Value for Adjust on Exit Semaphores
semmap 102 102 Static N/A Max Number of Semaphore Map Entries
semmni 100 100 Static N/A Number of Semaphore Identifiers
semmns 200 200 Static N/A Max Number of Semaphores
semmnu 40 40 Static N/A Number of Semaphore Undo Structures
semmsl 2048 2048 Dynamic N/A Maximum Number of Semaphores Per ID
semume 10 10 Static N/A Semaphore Undo Entries Per Process
semvmx 32767 32767 Static N/A Semaphore Maximum Value
sendfile_max 0 0 Static N/A Max No. of Buffer Cache Pages Usable by sendfile System Call
shmem 1 1 Static N/A Enable Sys V Shared Memory
shmmax 4294967295 4294967295 Dynamic N/A Max Shared Mem Segment (Bytes)
shmmni 200 200 Static N/A Number of Shared Memory Identifiers
shmseg 120 120 Dynamic N/A Shared Memory Segments Per Process
st_ats_enabled 0 0 Static N/A Boolean; If Set, SCSI Tape Open Will Try To Reserve The Tape Device
st_fail_overruns 0 0 Static N/A Boolean; If Set, SCSI Tape Read Resulting In Data Overrun Causes Failure
st_large_recs 0 0 Static N/A Boolean; If Set, Enables Large Record Support For SCSI Tape
st_san_safe 0 0 Static N/A Unknown
streampipes 0 0 Static N/A Force All Pipes to be Streams-Based
swapmem_on 1 1 Static N/A Allow Memory to Exceed Swap Space
swchunk 2048 2048 Static N/A Swap Chunk Size (1K Blocks)
sysv_hash_locks 128 128 Static N/A System V IPC Spinlock Pool Size
tcphashsz 0 0 Static N/A TCP Hash Table Size, in Bytes
timeslice 10 10 Static N/A Scheduling Interval (10 mS Ticks)
timezone 420 420 Static N/A Minutes West of Greenwich
unlockable_mem 0 0 Static N/A Non-Lockable Memory (4096-Byte Pages)
vas_hash_locks 128 128 Static N/A VAS Spinlock Pool Size
vnode_cd_hash_locks 128 128 Static N/A Vnode Clean/Dirty Spinlock Pool Size
vnode_hash_locks 128 128 Static N/A Vnode Spinlock Pool Size
vps_ceiling 16 16 Static N/A Maximum System-Selected Page Size (in Kbytes)
vps_chatr_ceiling 1048576 1048576 Static N/A Maximum chatr-Selected Page Size (in Kbytes)
vps_pagesize 4 4 Static N/A Default User Page Size (in Kbytes)
vx_fancyra_enable 0 0 Static N/A Boolean; If Set, Enables VXFS File System Read-Ahead
vx_ncsize 1024 1024 Static N/A Directory Name Lookup Cache (DNLC) Space Needed for VxFS Inodes
vx_ninode 0 0 Static N/A Maximum Number of Inodes In VxFS Inode Cache (0 = Tune According to Physical Memory)
vxfs_max_ra_kbytes 1024 1024 Static N/A Maximum Amount of VxFS File System Read-Ahead Outstanding, in Kbytes
vxfs_ra_per_disk 1024 1024 Static N/A Amount of VxFS File System Read-Ahead, in Kbytes

James R. Ferguson
Acclaimed Contributor

Re: limit file is 2 G in HPUX 11I

Hi :

To enable 'largefiles' (those exceeding 2GB) for an existing filesystem, do:

# fsadm -F vxfs -o largefiles /dev/vg02/rlvol1

To enable 'largefiles' when you create the filesystem:

newfs -F vxfx -o largefiles /dev/vg02/rlvol1

To see the current 'largefiles' setting, do:

# fsadm -F vxfs /dev/vg02/rlvol1

Regards!

...JRF...

Tim Nelson
Honored Contributor

Re: limit file is 2 G in HPUX 11I

Hmmm.. asked for output from mount command and got a pile of kernel params :(

Oh well...

V. Nyga
Honored Contributor

Re: limit file is 2 G in HPUX 11I

Hi again,

you said:
data(kbytes) 262144
stack(kbytes) 8192

So your data is limited to 256 MB.
If you can create files till 2 GB than is THIS not your problem.
Your problem seems to be that your file system is not configured to store files larger than 2GB.
So check our answers and test it either with JRF's or Fabio's command or:

# fstyp -v /dev/vg00/lvol3 |grep -i f_flag

! For /dev/vg00/lvol3 you have to use the device where you want to store the files!

if f_flag: 0 then max 2 GB
if f_flag: 16 then max 8 GB

Can you give us the messages of these commands?

Volkmar
*** Say 'Thanks' with Kudos ***
V. Nyga
Honored Contributor

Re: limit file is 2 G in HPUX 11I

Hi again,

to increase ulimit check the usage of ulimit:
'man ulimit'

Do you have access to the 'Technical knowledge base'?:
http://www12.itrc.hp.com/service/cki/docDisplay.do?docLocale=en&docId=emr_na-c01005257-2

http://www12.itrc.hp.com/service/cki/docDisplay.do?docLocale=en&docId=emr_na-c01513482-1

http://www12.itrc.hp.com/service/cki/docDisplay.do?docLocale=en&docId=emr_na-c00905065-10

Also:
1. Log in as root.
2. Use ulimit() to check settings:
# ulimit -a
3. Reset ulimit() to its maximum value:
# ulimit -d 65536 oracle
4. Have the Oracle user log off and back on.

Volkmar
*** Say 'Thanks' with Kudos ***
V. Nyga
Honored Contributor

Re: limit file is 2 G in HPUX 11I

Also - Shell: running ksh script in POSIX shell to exceed 2 GB ulimit:

http://www12.itrc.hp.com/service/cki/docDisplay.do?docLocale=en&docId=emr_na-c01027855-2

HTH
V.
*** Say 'Thanks' with Kudos ***