Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
08-16-2005, 07:04 AM
|
#1
|
|
LQ Newbie
Registered: Jul 2005
Location: Chicago Suburbs, USA
Distribution: Slackware 11
Posts: 7
Rep:
|
Is there a record width limit in Linux
Hi Everyone,
I was wondering, is there a maximum record width for a file in Linux? I have plans for a very large file that is a little over 200,000 bytes wide and over 43,000 bytes long. Could Linux store a file such as this? I'm not worried about the lenght since I know that is a non-issue, I'm only worried about the width.
Thanks
|
|
|
|
08-16-2005, 07:36 AM
|
#2
|
|
Member
Registered: Jul 2004
Location: Santiago, Chile
Distribution: Ubuntu
Posts: 410
Rep:
|
I've just created a file with 100 records of size 200000 (just asked Python to write 100 times the same string and got a file of 20Mb). Nothing went wrong. The only thing I can imagine is that 200,000 x 43,000 is about 8 Gb, so you have to be sure that your kernel and filesystem can manage files of that size (which, I think, is the case for kernels from 2.4)
HTH
|
|
|
|
08-16-2005, 07:55 AM
|
#3
|
|
LQ Newbie
Registered: Jul 2005
Location: Chicago Suburbs, USA
Distribution: Slackware 11
Posts: 7
Original Poster
Rep:
|
Thanks for the information. I will check the kernal out.
|
|
|
|
08-16-2005, 09:18 AM
|
#4
|
|
Senior Member
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 4,579
|
A file that is really that large and that wide, and not "sparse?" A file where you are not storing "a bunch of zeroes?" Rare, but possible.
Could the file not simply be stored as multiple, numbered files, in one directory? Upon reaching the end of one file, the application could search for the next one, switch to it, and return the "next record" from that file.
|
|
|
|
08-17-2005, 02:22 AM
|
#5
|
|
Member
Registered: Jul 2004
Location: Santiago, Chile
Distribution: Ubuntu
Posts: 410
Rep:
|
Well, for instance, some radiotelescopes generate a LOT of information (actually, so fast, that you need an army of harddisks to save it, even after a filter)
|
|
|
|
08-17-2005, 02:16 PM
|
#6
|
|
Senior Member
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 4,579
|
Okay... it still might be more manageable if the process wrote a certain amount of data to one file, then switched to the next file, periodically. A single file that is of exceptionally large size is rather ponderous to handle.
|
|
|
|
08-17-2005, 02:33 PM
|
#7
|
|
Senior Member
Registered: Apr 2004
Location: Baton Rouge, Louisiana, USA
Distribution: Debian 4.0 Etch
Posts: 1,346
Rep:
|
There's no such thing as a "record" in Linux, per se. Like Unix which inspired it, all files in Linux are made up of bytes, not records. As far as the OS and the file system is concerned, any file is just a string of bytes.
That's why everyone here is talking only in terms of file size limitations (in bytes).
It's entirely up to the software application to organize this string of bytes in terms of records within the file. Depending on what specific applications you're using to manipulate the file, there may be record width limitations.
|
|
|
|
08-17-2005, 05:43 PM
|
#8
|
|
Senior Member
Registered: Dec 2004
Location: Bawstun area
Distribution: Suse (10.2, 10.3), CentOS, and Ubuntu
Posts: 1,794
Rep:
|
If you use either Reiser or XFS, file size limitations will be pretty much limited by the size of your hard disk. EXT used to have a 2GB limit but I don't know what the limitation is.
Now, for "record size" I presume you're referring to a database, not flat files - which would depend on whether you want to run posgresql, MySQL, or other. Did you have a particular DBMS in mind?
|
|
|
|
| Thread Tools |
Search 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
HTML code is Off
|
|
|
All times are GMT -5. The time now is 06:08 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|