The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
.
google unix.com



UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
how to set the ulimit on AIX 5.2 version? Shilpi AIX 3 11-15-2007 06:36 AM
ulimit melanie_pfefer SUN Solaris 1 04-19-2007 07:31 AM
ulimit Student37 UNIX for Dummies Questions & Answers 3 07-20-2005 05:04 AM
ulimit -d adadevil UNIX for Dummies Questions & Answers 1 03-05-2004 10:42 AM
ulimit on sco release 3.2v5.0.4 Shanker UNIX for Dummies Questions & Answers 3 12-22-2000 07:58 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish
 
LinkBack Thread Tools Search this Thread Rating: Thread Rating: 2 votes, 4.00 average. Display Modes
  #1 (permalink)  
Old 07-21-2008
JamesByars JamesByars is offline
Registered User
  
 

Join Date: Dec 2007
Posts: 124
ulimit

hi

what is the difference between file and data? if file is unlimited, does that mean we can have a file as big as we like?

thanks.

file(blocks) unlimited
data(kbytes) 1048576
  #2 (permalink)  
Old 07-21-2008
Perderabo's Avatar
Perderabo Perderabo is offline Forum Staff  
Unix Daemon
  
 

Join Date: Aug 2001
Location: Ashburn, Virginia
Posts: 9,100
data is the size of the data segment of a process. This is similiar to stack which is a limit on the stack segment of a process. file is the limit of a data file on disk (or more generally, a file in a filesystem).

unlimited means that the ulimit facility imposes no artificial limit of its own. But everything in a computer is finite. Eventually you will bump into some other limit.
  #3 (permalink)  
Old 07-22-2008
JamesByars JamesByars is offline
Registered User
  
 

Join Date: Dec 2007
Posts: 124
thanks a lot
  #4 (permalink)  
Old 07-23-2008
jim mcnamara jim mcnamara is offline Forum Staff  
...@...
  
 

Join Date: Feb 2004
Location: NM
Posts: 5,643
There are two limits on files - the total number of files you can have open at one time, and the max size of a file. The number of open files depends on things like kernel settings and your OS. The max size of a file usually depends on whether your system can support files larger than 2GB. Of course you have to have free disk space.....
  #5 (permalink)  
Old 07-23-2008
JamesByars JamesByars is offline
Registered User
  
 

Join Date: Dec 2007
Posts: 124
thanks jim,

i jabe heard this before, of a file not being able to be bigger than 2G. Is this because this is the default? If my ulimit for file is set to say 10G, then can I create a file bigger than 2G? Or are there some other programs that also have limits set to 2G, so even if I created it for 5G on my unix box, it might still give me some problems?

thanks
  #6 (permalink)  
Old 07-31-2008
HBNA HBNA is offline
Registered User
  
 

Join Date: Apr 2008
Posts: 1
There are various file system types that have inherent limits. cdrfs jfs jfs2 etc. So as you build a unix system you need to be aware of the limitations of the various filesystem types. Each of them will have upper limits on inode numbers file sizes etc.
  #7 (permalink)  
Old 07-31-2008
jim mcnamara jim mcnamara is offline Forum Staff  
...@...
  
 

Join Date: Feb 2004
Location: NM
Posts: 5,643
Files bigger than the number of bytes that a 32 bit integer can reference are usually called largefiles. Most modern UNIX-es have support for it with either oddly-named non-standard calls like fopen64() or some kind of more modern filesystem.

If you have LARGEFILE support and no disk quota enabled, you can essentially create a file that has size equal to the free space available on the disk. This is a BAD idea in general. sysadmins love to hate giant files, especially small files with giant holes in them....
Sponsored Links
Closed Thread

Bookmarks

Tags
ulimit

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 05:00 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language translation by Google.
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0