caodc1
15th January 2003, 07:57
I used the functions seq.open(),seq.puts(),seq.close() to write a ASCII file.But each time when the FILE size was up to 40M, a message "Lost connection with bshell" occured and the program was terminated. And in the path $TEMP I found following message:
sbrk errno: 12 size 16384 first_time 0 brk_ret 0xffffffff
What's the cause and how to solve it?
Thanks.
NPRao
15th January 2003, 20:09
I think 40Mb is quite a big file. I think you have exceeded either the BaaN limits of file handling or Unix soft/hard quota limits. Why are you creating such a big file ? :confused:
I see that you are on Unix, you might have file allocation quota size set by your systems adminstrator.
You can check your own quota size by the $ quota command.
$ man quota
quota(1) quota(1)
NAME
quota - display disk usage and limits
SYNOPSIS
quota [-v] [user ... ]
DESCRIPTION
The quota command displays the disk usage and limits for one or more
users. Without the -v option, it displays information only when the
usage exceeds the limits.
user is a user name or a numeric UID. The default is the login user
name.
Only users with appropriate privileges can view the limits of other
users.
Options
The quota command recognizes the following option:
-v Display the statistics whether they exceed limits
or not. Note that no usage statistics exist if no
quota is set.
EXTERNAL INFLUENCES
Environment Variables
LC_MESSAGES determines the language in which messages are displayed.
If LC_MESSAGES is not specified in the environment or is set to the
empty string, the value of LANG is used as a default for each
unspecified or empty variable. If LANG is not specified or is set to
the empty string, a default of "C" (see lang(5)) is used instead of
LANG.
If any internationalization variable contains an invalid setting,
quota behaves as if all internationalization variables are set to "C".
See environ(5).
International Code Set Support
Single- and multi-byte character code sets are supported.
AUTHOR
Disk Quotas were developed by the University of California, Berkeley,
Sun Microsystems, Inc., and HP.
FILES
directory/quotas Quota statistics static storage for a file system,
where directory is the root of the file system as
specified to the mount command (see mount(1M)).
/etc/mnttab List of currently mounted file systems
Hewlett-Packard Company - 1 - HP-UX Release 11.00: October 1997
quota(1) quota(1)
SEE ALSO
quota(5).
Hewlett-Packard Company - 2 - HP-UX Release 11.00: October 1997
caodc1
16th January 2003, 01:21
Dear NPRao,
Thanks!
We are running a data condense project to decrease the load of the system.We use ASCII files to back up the data to be deleted.
We have another program, and the file written by it can reach 60M.
My OS is SCO unix,how to get my file allocation quota size?
patvdv
16th January 2003, 10:30
sbrk errno 12 is 'ENOMEM' and thus not related to disk space but rather memory space. The job you are running is either running out of stack segment space or data segment space. You should have a look at some of your kernel parameters more in particular: MAXDSIZ, MAXTSIZ, MAXSSIZ (or similar parameters) and check your swap usage during the job run.