>> . . . . Edit /etc/conf/cf.d/stune and
>> add the lines:
>> SFSZLIM 0x7FFFFFFF
>> HFSZLIM 0x7FFFFFFF
>> then rebuild your kernel. "0x7FFFFFFF" means "infinity" for a resource
>> limit.
>Good guess. Unfortunately, editing /etc/conf/cf.d/* is asking for trouble.
>That's why there is a command called idtune.
There's no need to get snotty, Mr. Pinkas. "Idtune" is nothing but a
shell script for editing /etc/conf/cf.d/stune. If you want the extra
hand-holding, it's fine. But you aren't going to grow hair on your
palms if you edit stune. That's what it's there for, to allow for
parameter changes without modification of the mtune file.
Look in your System Administrator's Guide if you don't believe me:
on page B-30 it says in part: "The stune file can be edited to change
a value already placed there or to add an additional parameter that
you wish to set at a value other than its mtune default."
However, I'd agree that editing mtune directly is a Bad Idea.
Quote:> . . . .
>> Next, edit /etc/default/login and add (or change) the ULIMIT line:
>> ULIMIT=999999
>> or some other suitably large value (in blocks).
>I recommend against that. It is too easy to create super large files. If
>you want larger files, ulimit <#blks> will bump the limit after the above
>is done will do the trick.
This is just plain wrong. The "ULIMIT=nnn" line sets the hard as well
as soft limit. A "ulimit" command of a larger size will simply return
"ulimit: bad ulimit". That is, unless you're root, in which case this
whole exercise is unnecessary.
Perhaps setting a soft limit in /etc/profile (and the equivalent places
for other shells) is likely to be the best solution. That way a naive
user isn't going to fill the entire disk with a "cat * >foo" command,
but other users aren't inconvenienced when they have to work with large
files.
Of course, all advice here is worth just what you paid for it. Systems
differ in their users, usage, and requirements. A filesize limit that is
appropriate for document preparation won't be appropriate for image
or audio processing, large databases, and so on. I suppose we should
have suggested that, if large file handling is an uncommon occurance,
do it as root with "ulimit unlimited" and leave the system alone...
-Ed Hall