Operating System - HP-UX
1753875 Members
7686 Online
108809 Solutions
New Discussion

HP UX 커널 파라미터 질문

 
파로스
Visitor

HP UX 커널 파라미터 질문

HP 장비에서 특정 파일 크기가 커지면 map failed error가 발생하는데

HP 커널 파라미터 설정 값중에  map 크기 관련 설정하는 부분이 있는지 궁금합니다.

리눅스 같은경우는 max_map_count 값으로 프로로세스가 사용할 수 있는 메모리 맵 영역의

최대 수를 지정할수 있는 옵션이 존재하던데 HP에도 비슷한게 있으면 알려주세요

 

5 REPLIES 5
ranganath ramachandra
Esteemed Contributor

Re: HP UX 커널 파라미터 질문

(Google says you said this):

hp ux kernel parameters Question
A larger file size specified in the hp devices to map failed error occurs,
During hp kernel parameter settings wondering if there's any map size -related settings.
If you like the Linux memory map areas that can be used as a professional process value max_map_count
This option specifies the maximum number that can exist Please let me know if I heard something similar to hp

What is the value of errno when mmap fails?

 
--
ranga
[i work for hpe]

Accept or Kudo

파로스
Visitor

Re: HP UX 커널 파라미터 질문

error log

FSReadError in /Data/cassandra_data/cass_oth/data/ks_java_operation_v2/OPERATION/ks_java_operation_v2-OPERATION-ic-21-Data.db
	at org.apache.cassandra.io.util.MmappedSegmentedFile$Builder.createSegments(MmappedSegmentedFile.java:200)
	at org.apache.cassandra.io.util.MmappedSegmentedFile$Builder.complete(MmappedSegmentedFile.java:168)
	at org.apache.cassandra.io.sstable.SSTableReader.load(SSTableReader.java:418)
	at org.apache.cassandra.io.sstable.SSTableReader.open(SSTableReader.java:209)
	at org.apache.cassandra.io.sstable.SSTableReader.open(SSTableReader.java:157)
	at org.apache.cassandra.io.sstable.SSTableReader$1.run(SSTableReader.java:273)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
	at java.util.concurrent.FutureTask.run(FutureTask.java:262)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
	at java.lang.Thread.run(Thread.java:745)
Caused by: java.io.IOException: Map failed
	at sun.nio.ch.FileChannelImpl.map(FileChannelImpl.java:922)
	at org.apache.cassandra.io.util.MmappedSegmentedFile$Builder.createSegments(MmappedSegmentedFile.java:192)
	... 10 more
Caused by: java.lang.OutOfMemoryError: Map failed
	at sun.nio.ch.FileChannelImpl.map0(Native Method)
	at sun.nio.ch.FileChannelImpl.map(FileChannelImpl.java:919)
	... 11 more

 파일크기가 2GB 이상이면 발생하는 에러이며 해당 에러는 hp 장비에서만 발생 합니다.

Dennis Handly
Acclaimed Contributor

Re: HP-UX kernel parameters question

> Caused by: java.lang.OutOfMemoryError: Map failed

 

Not much info, especially since they don't mention mmap(2).

Is this 32 or 64 bit?  What is the value of maxdsiz and maxdsiz_64bit?

How about shmmax(5)?

파로스
Visitor

Re: HP-UX kernel parameters question

장비는 64bit 장비이며 커널 설정값은 다음과 같습니다.

Tunable                        Value                    Expression         Changes

maxdsiz                       2147483648        2147483648        Immed

maxdsiz_64bit             4294967296         Default              Immed

shmmax                       2147483648        2147483648       Immed

Dennis Handly
Acclaimed Contributor

Re: HP-UX kernel parameters question

You probably need to increase both maxdsiz_64bit & shmmax.