Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Solaris : writing into file stops abruptly 1

Status
Not open for further replies.

nphani

Technical User
Feb 10, 2002
104
US
Hello all,

I use a SUN Solaris machine. I am using a simulator which traces all the instructions run by a simulator and generates a file of all those instructions. I run about 400 million instructions to generate the trace. But the trace stops abruptly at around 12 million instructions. Even if I change the number 400 to 50, the problem is the same whereas, if I run about 5000 instructions (not 5000 million, just 5000), the trace obtained is perfect. I checked the ulimit -a and get:
time(seconds) unlimited
file(blocks) unlimited
data(kbytes) unlimited
stack(kbytes) 8192
coredump(blocks) 0
nofiles(descriptors) 256
vmemory(kbytes) unlimited
(The file size can be infinite).
Can anybody give me some tips of how to solve this problem?
 
How large is the file you do get? What version of Sun?
 
It is Solaris 8 as "uname -a" returns:

SunOS 5.8 Generic_108528-16 sun4u sparc SUNW,Sun-Blade-100

and all the files that are generated are of 2 GB size, though "ulimit" says "unlimited".
 
Yes, but if the filesystem you are writing to isn't large file enabled (or large file aware, I think, on Sun), you will not be able to write a file larger than 2 GB, even if your ulimit is unlimited.
 
Or maybe the application that is writing the trace file isn't large file aware?
 
how do i check the file system and the maximum file size possible in it? how do i change those settings, if possible?
 
There is a command, which I have seen recently on Tek-Tips, that will tell you, I think. I've been searching for it since my last posting. I can't find it in the Solaris forum.
 
Found it. Check this thread: thread80-560946

mount -v

You should see largefiles on the line for the filesystem you are writing to.
 
Thanx a lot Bi,
I think the system admin has not given me permissions to run the mount command. Though man mount shows the manual page, mount says command not found. I will let my system admin know about this.
thanx again,
Phani

 
It might not be in your path. Type /etc/mount. I'm able to do it as a regular user on Solaris 7 and Solaris 9 (we don't have an 8 box).
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top