Slashdot Mirror


Large File Problems in Modern Unices

david-currie writes "Freshmeat is running an article that talks about the problems with the support for large files under some operating systems, and possible ways of dealing with these problems. It's an interesting look into some of the kinds of less obvious problems that distro-compilers have to face."

60 of 290 comments (clear)

  1. Re:Why large files by mr.henry · · Score: 3, Funny

    Who needs more than 512k of RAM??

  2. Not really that groundbreaking... by CoolVibe · · Score: 4, Interesting

    The problem is nonexistant in the BSD's, which use the large file (64 bit) versions anyway. And that you have to use a certain -D flag if your OS (like Linux) doesn't use the 64 bit versions. Whoopdiedoo. Not so hard. Recompile and be happy.

    1. Re:Not really that groundbreaking... by statusbar · · Score: 2, Funny

      2^64 = 17,179,869,184 gigabytes!

      17,179,869,184 gigabytes ought to be enough for ANYBODY!

      --jeff++

      --
      ipv6 is my vpn
  3. video, mp3's, even dvds are beyond 2gb by xintegerx · · Score: 2, Informative

    Question answered, move along, nothing to see here :)

    1. Re:video, mp3's, even dvds are beyond 2gb by bns_robson · · Score: 2, Funny

      Your link doesn't work. I get a DNS failure loking up host 578.291.762.662

  4. Re:Why large files by voodoopriestess · · Score: 3, Informative

    Databases, Movie files, Backup files (think dumps to tapes). Animations, 3D modelling.... Lots of things need a > 2GB file size. Iain

    --
    ---- "I would be careful in separating your weirdness, a good quirky quantum weirdness, from the disturbed weirdnes
  5. Re:Why large files by Big+Mark · · Score: 5, Insightful

    Video. Raw, uncompressed, high-quality video with a sound channel is fucking HUGE. Look how big DivX files are, and they're compressed many, many times over.

    And compressing video on-the-fly isn't feasible if you're going to be tweaking with it, so that's why people use raw video.

    -Mark

  6. Re:Why large files by Ogion · · Score: 2, Insightful

    Ever heard of something like movie-editing? You can get huge files really fast.

    --
    -- we're dressed in green, and we're feeling mean
  7. Re:Why large files by Anonymous Coward · · Score: 5, Interesting

    Real analytical work can easily produce files this large. Output for analyses of structures with more than half a million elements and several million degrees of freedom can EASILY produce output of over two gigs. Yes, these results can and should be split, but sometimes it makes sense to keep them together as a matter of convenience. Plus, there IS a small performance hit when dealing with multiple files on most of the major FEA packages.

  8. Re:Why large files by hbackert · · Score: 4, Informative

    vmware uses files as virtual disks. 2GB would be a really, really small disk. UML does the same, using the loop device feature of Linux. Again, a filesystem in a file. Again, 2GB is not much. Simulating 20GB would need 10 files.

    Feels like 64kbyte segments somehow...and I really don't want to have those back.

  9. Re:Why large files by Big+Mark · · Score: 2, Funny

    Come on. Even Bill Gates admitted that half a meg ain't enough.

    640K, on the other hand, should be enough for anyone...

    -Mark

  10. data warehouse, and any database for that matter by CrudPuppy · · Score: 5, Insightful

    my data warehouse at work is 600GB and grows at a rate of 4GB per day.

    the production database that drives the sites is like 100GB

    welcome to last week. 2GB is tiny.

    --
    A year spent in artificial intelligence is enough to make one believe in God.
  11. Its funny how some lamers dont listen... by cheekyboy · · Score: 3, Insightful

    I said this to some unix 'so called experts' in 95, and they said, oh why why do you need >2gig

    I can just laugh at them now...

    --
    Liberty freedom are no1, not dicks in suits.
  12. Re:data warehouse, and any database for that matte by hector13 · · Score: 2, Insightful
    my data warehouse at work is 600GB and grows at a rate of 4GB per day. the production database that drives the sites is like 100GB welcome to last week. 2GB is tiny.
    And you store this "production database" as one file? didn't think so (or atleast I hope you don't).

    I am not agreeing (or disagreeing) with the original post, but having a database > 2 GB has nothing to do with having a single file over 2 GB. A db != a file system (except for MySQL perhaps).

  13. Re:Why large files by Idaho · · Score: 2, Insightful
    Can anyone give a good reason for needing files larger than 2gb?

    I can think of some:

    • A/V streaming/timeshifting
    • Backups of large filesystems (since there exist 320 GB harddisks now, I don't think I should create 160 .tgz files just to back it up, do I?)
    • Large databases. E.g. the slashdot posts table will be easily >2 GB, or so I'd guess. Should the DB cut it in two (or more) files, just...because the OS doesn't understand files >2 GB? I don't think so...

    And that's just without thinking twice...there are probably many more reasons why people would want files >2 GB.

    --
    Every expression is true, for a given value of 'true'
  14. 640 K ought to be enough for anybody by cyber_rigger · · Score: 3, Funny

    --Bill Gates

  15. It will happen with time_t, too by wowbagger · · Score: 5, Informative

    We are seeing problems with off_t growing from 32 to 64 bits. We are also going to see this when we start going to a 64 bit time_t, as well (albeit not as badly - off_t is probably used more than time_t is.)

    However, the pain is coming - remember we have only about 35 years before a 64 bit time_t is a MUST.

    I'd like to see the major distro venders just "suck it up" and say "off_t and time_t are 64 bits. Get over it."

    Sure, it will cause a great deal of disruption. So did the move from aout to elf, the move from libc to glibc, etc.

    Let's just get it over with.

  16. A woman's perspective . . . by pariahdecss · · Score: 5, Funny

    So my wife says to me, "Honey, do I look fat in this filesystem ?"
    I replied, "Sweetie, I married you for your trust fund not your cluster size."

  17. Re:Why large files by CoolVibe · · Score: 5, Interesting
    raw video can easily exceed 2 GB in size. Why raw video? Because (like others said) it's easier to edit. Then you encode to MPEG2, which will shrink the size somewhat (usually still bigger than 2 GB, ever dumped a DVD to disk?), so it'll be "small" enough to burn onto a DVD or somesuch. Oh, editing 3 hours of raw wave data also chews away at the disk size. Also, since you need to READ the data from the media to see if it looks nice, you need to have support for those big files as well. Right, now why don't we need files bigger than 2 GB again? Well?

    Oh, you're still not convinced, well see it this way: when in the future will you ever need to burn a DVD?

    Well? A typical one sided DVD-R holds around 4 GB of data (somewhat more), if you use both sides, you can get more than 8 GB of data on it. That's way bigger than 2 GB, no? Now, how big must your image be before you burn it on there? well?

    Right...

  18. Re:Unices? by moonbender · · Score: 2, Informative

    Yes. Just like "matrices" is the plural of "matrix". Not that the words have a similar etymology - according to dictionary.com it's, in the authors' words, "A weak pun on Multics".

    --
    Switch back to Slashdot's D1 system.
  19. Re:Wrong point of view. by KDan · · Score: 4, Insightful

    Two words:

    Video Editing

    Daniel

    --
    Carpe Diem
  20. Q: Why large files? A: Disk images too by Anonymous Coward · · Score: 2, Interesting
    While almost all the examples given are good, I don't think anyone has mentioned complete disk images. I have recently had to do this in order to recover from a hardware issue (drive cable failure resulted loss of MBR, nasty) and on a TiVo unit that had a bad drive.

    I have most all of my older system images available to inspect. The loopback devices under Linux are tailor made for this type of thing.


    I am puzzled as to why you mention the seek times. Surely you would agree that the seek time should be only inversely geometrically related to size, the particular factors depending on the filesystem. Any deviation from the theoretical ideal is the fault of a particular OS's implementation. My experience is that this is not significant.

    (user dmanny on wife's machine, ergo posting as AC)

  21. Funny...in AIX... by cshuttle · · Score: 4, Informative

    We don't have this problem-- 4 petabyte maximum file size 1 terabyte tested at present http://www-1.ibm.com/servers/aix/os/51spec.html

    1. Re:Funny...in AIX... by n3m6 · · Score: 2, Insightful

      whenever something like this comes up. somebody just has to say "we dont' have a problem, we use X"

      that's just so lame. we have XFS and JFS. you can keep your AIX and your expensive hardware with you.

      thanks.

  22. Have you ever seen some people's email? by alen · · Score: 4, Insightful

    On the Windows side many people like to save every message they send or receive to cover their ass just in case. This is very popular among US Government employees. Some people who get a lot of email can have their personal folders file grow to 2GB in a year or less. At this level MS recommends breaking it up since corruption can occur.

    1. Re:Have you ever seen some people's email? by nentwined · · Score: 5, Funny

      I agree with MS on this one. government employees shouldn't be allowed to hold their positions for longer than a year. DOWN WITH GOVERNMENTAL CORRUPTION! ... :)

      --
      heaven
    2. Re:Have you ever seen some people's email? by sqrlbait5 · · Score: 2, Informative

      Yeah, but if you're using NTFS, where there doesn't appear to be a max file size, you still get the 2GB limit on Outlook files. Every damn version of Outlook has had this 2GB limit, but OutlookXP doesn't actually fix the problem, just warns the user at 1.87GB. We have people hitting their limit all the time at work, but that's because they like to send artwork and whatnot and not clear out their folders.

      --
      LDAA #$80 BITA 0x40 BNE END
    3. Re:Have you ever seen some people's email? by kasperd · · Score: 2, Insightful

      2GB in a year or less.

      They probably don't write emails but instead write Word documents and attach them to empty emails.

      --

      Do you care about the security of your wireless mouse?
    4. Re:Have you ever seen some people's email? by kasperd · · Score: 2, Funny

      Do not make jokes about that - it's actually quite true.

      Guess what..... I wasn't joking.

      I just reply and request the information in an open format.

      So do I. Sometimes I send the reply in a .dvi file. I got a surprise the day a friend of mine managed to read the .dvi file I had attached.

      --

      Do you care about the security of your wireless mouse?
  23. Re:Why large files by bourne · · Score: 2, Interesting

    Can anyone give a good reason for needing files larger than 2gb?

    Forensic analysis of disk images. And yes, from experience I can tell you that half the file tools on RedHat (like, say, Perl) aren't compiled to support >2GB files.

  24. Re:huh? by JanneM · · Score: 2, Informative

    Because the sentences mean different things.

    "It is an interesting problem that some distro-compilers have to face."

    talks about the problem facing distro compilers, whereas

    "It's an interesting look into some of the kinds of less obvious problems that distro-compilers have to face."

    Talks about the article adressing these problems. /Janne

    --
    Trust the Computer. The Computer is your friend.
  25. Switch to gnu/hurd by Anonymous Coward · · Score: 3, Funny

    It has a nice small 1gb filesystem limit. I have partitioned my hard disk in to 64 little chunks and it runs very slowly, and unstabilly, but its completley open source and im happy.

  26. Re:Wrong point of view. by heby · · Score: 5, Funny

    "oh yes, those were the days." - misty eyed smile - "when i was young and filesizes were small. you should have seen it. today's youth is so spoiled that they don't even learn assembly language any more. i tell you, you're all going to die because of your large files, yes, die!" - madly waves his cane in the air - "2gb, that's more than anybody will ever need and you are greedy for even more! the holy bit will punish you for this, it will!" - dies of a heart attack.

  27. Re:Wrong point of view. by cvande · · Score: 5, Insightful

    In a world everything is small and manageable. Unfortunately, some databases need tables BIGGER than 2gb. Even splitting that table into multiple files still finds you with files larger than two gb. Try adding more tables? OK. Now they've grown to over 2gb and the more tables the more complicated everthing gets. I still need to back these suckers up and a backup vendor that I won't name can't help me because their software wasn't large file (for Linux) ready. So let's get into the game with this and make it the default so we don't need to worry about these problems in the future. Linux IS an enterprise solution.....(my $.02)

  28. Re:Why large files by benevold · · Score: 2, Insightful

    We use a Unidata database here for an ERP system, each database is more than 2gb a piece (more like 20 gb) of relatively small files, when the directories are tarred for backup reasons they are usually over 2gb which means that gzip won't compress them. Unless I'm missing something I don't see an alternative for files large than 2gb in this case. Sure on the personal computing level the closest thing you probably get is ripping DVD's but there are other things out there, and I realize this is tiny in comparison to some places.

  29. Re:Why large files by kasperd · · Score: 3, Insightful

    The seek times alone withinr these files must be huge

    Who moded that as Insightful? Sure, if you are using a filesystem designed for floppy disks, it might not work well with 2GB files. In the old days where the metadata could fit in 5KB a linked list of diskblocks could be acceptable. But any modern filesystem uses tree structures which makes a seek faster than it would be to open another file. Such a tree isn't complicated, even the minix filesystem has it.

    If you are still using FAT... bad luck for you. AFAIK Microsoft was stupid enough to keep using linked lists in FAT32, which certainly did not improve the seek time.

    --

    Do you care about the security of your wireless mouse?
  30. Why not to learn from past? by Libor+Vanek · · Score: 2

    I just wonder why we don't learn from past (limits) and remove this limits "forever". E.g. 1 month ago I recieved question of possibility building 10 TB Linux cluster (physics are crazy ;-)).

    There surely MUST be some way how to do this - I just imagine some file (e.g. defined in LSB) which would define this limits for COMPLETE system (from kernel, filesystems, utils to network daemons). I know there are efforts to things like this but if we'd say (for example) thay that distribution in 2004 won't be marked "LSB compatible" if ANY of programs will use any other limits I think it will create enough preasure on Linux vendors.

    Just a crazy idea ;-)

  31. The O/S should do it and do it well. by tjstork · · Score: 3, Interesting

    1) Splitting up a big file turns an elegant solution into a an inelegant nightmare.

    2) Instead of 10 different applications writing code to support splitting up an otherwise sound model, why not have 1 operating system have provisions for dealing with large files.

    3) You are going to need the bigger files with all those 32 bit wchar_t and 64 time_ts you got!

    --
    This is my sig.
  32. Re:Wrong point of view. by costas · · Score: 4, Insightful

    Maybe in your problem domain that's true. I work with retailer data mines and we've hit the 2GB file limit, oh, 4-5 yrs ago? We've been forced to partition databases causing maintainance issues, scalability issues, and the like, just because of the size of a B-tree index.

    True, it looks like the optimal solution is lower-level partitioning, rather than expanding the index to 64bits (tests showed that the latter is slower), but that still means that the practical limit of 1.5-1.7 GB per file (because you have to have some safety margin) is far too constraining. I know installations who could have 200GB files tomorrow if the tech was there (which it isn't, even with large file support).

    I am also guessing that numerical simulations and bioinformatics apps can probably produce output files (which would then need to be crunched down to something more meaningful to mere humans) in the TB range.

    Computing power will never be enough: there will always be problems that will be just feasible with today's tech that will only improve with better, faster technology.

  33. Re:data warehouse, and any database for that matte by CrudPuppy · · Score: 2, Informative

    the datafile size averages 8GB in the warehouse.

    --
    A year spent in artificial intelligence is enough to make one believe in God.
  34. Re:huh? by RumpRoast · · Score: 2, Interesting
    Actually you changed the meaning of that sentence. I think really we object to:
    "It's an interesting look into some of the kinds of less obvious problems that distro-compilers have to face."

    "of the kinds" really adds nothing to the meaning here, nor does "have to"

    Thus we have:

    "It's an interesting look into some of the less obvious problems that distro-compilers face."

    The same sentence, but much cleaner!

    Thanks! I'll be here all week.

    --

    My Ass hurts.
  35. Re:Why large files by bunratty · · Score: 2, Interesting

    Over Christmas and New Years, I helped my wife run a simulation of 1000 different patients for an acedemic pharmacokinetics paper. The run took ten days and had an input file of about 1.5 GB. If her computer was faster, or she had access to more computers, she would have wanted to simulate more patients and would easily have needed support for files larger than 4 GB. As CPUs get faster and hard disks get larger, there will be much more demand for these large files as well as more than 4 GB per process.

    --
    What a fool believes, he sees, no wise man has the power to reason away.
  36. BeOS Filesystem by SixArmedJesus · · Score: 2

    I remember reading in the BeOS Bible that the BeOS filesystem could contain files as large as 18 petabytes. Makes you wonder two things: What's the biggest filesystem that you could use with a BeOS machine? and Why don't other OSs have filesystem like this. Espcecially with those awesome extended attributes. I weep for the loss of the BeOS filesystem...

    --

    *slight crashing sound*
    1. Re:BeOS Filesystem by Yokaze · · Score: 4, Informative

      Mine is bigger than yours :)

      Linux XFS: 9 exabytes

      Also supports extended attributes.

      --
      "Between strong and weak, between rich and poor [...], it is freedom which oppresses and the law which sets free"
  37. Re:Wrong point of view. by Yokaze · · Score: 4, Interesting

    I'm not a specialist on this matter, so maybe you can enlighten me, where I am wrong or misunderstood you.

    > fragmentation: large files increase to fracmentation of most file systems
    What kind of fragmentation?

    Small files lead to more internal fragmentation.
    Large files are more likely to consist of more fragments, but when splitting this data into small files, those files are fragments of the same data.

    >entropy pollution
    What kind of entropy? Are you speaking of compression algorithms?

    Compression ratios are actually better with large files than small files, because similarities between files across file-boundaries can be found. Therefor, gzip(bzip2) compresses a single large tar-file. (Simple test, try zip on many files and then zip without compression and subsequent compression on the resulting file).

    >data pollution
    How should limiting file size improve that situation? Then, people tend to store data in lot of small files. What a success. People will waste space, whether there is a file size limit or not.

    >These limits are there for very good reasons and in my opinion they are even much to big.

    Actually, they are there for historical reasons.
    And should a DB spread all its tables over thousands of files instead of having only one table in one file and mmapping this single file into memory? Should a raw video stream be fragmented into several files to circumvent a file limit?

    >[...] original K&R Unix [...] was much faster than modern systems

    Faster? In what respect?

    --
    "Between strong and weak, between rich and poor [...], it is freedom which oppresses and the law which sets free"
  38. Re:Why large files by Zathrus · · Score: 2, Interesting

    In my previous job we regularly processed credit data files >2 GB. All the data is processed serially (as someone else mentioned), so seek time is not an issue (nor is it an issue in a binary data file - seek to 1.4GB. Done. Next.).

    The real issue we ran up against was compression... we wanted to have the original and interm data files available on-disk for awhile in case of reprocessing. The processing would generally take up 10x as much space as the original data file, so you compressed everything. Except that gzip can't handle files >2GB (at the time an alpha could, but we didn't want to touch it). Nor can zip. So we had to use compress. Yay. (bzip could handle it, but was decided against by the powers that be).

    Compression of large files is still an issue, unless you want to split them up. Unless you download a beta version gzip still can't handle it. As I understand it zip won't ever be able to do it. There are some fringe compressors that can handle large files, but, well, they're fringe.

  39. Somewhat cumbersome, even on Linux by topologist · · Score: 2, Informative
    To enable LFS (Large File Support) in glibc (which not all filesystems support), you need to recompile your application with
    -D_FILE_OFFSET_BITS=64 and -D_LARGEFILE_SOURCE

    This forces all file access calls to their 64-bit variants, and you'll explicitly need to use structs like off64_t instead of off_t where needed. And I believe most large file support is really available only past glibc 2.2

    Additionally you need to use O_LARGEFILE with open etc. So legacy applications that use glibc fs calls have to be recompiled to take advantage of this, and may need source level changes. Won't work on older kernels either.

  40. Re:Wrong point of view. by kasperd · · Score: 2, Interesting

    I sure hope that was a joke. Because otherwise it would be one of the most clueless comments I have seen.

    Sure spliting data into a lot of smaller files is going to reduce the fragmentation slightly, but it is not going to improve your performance. Because the price of accessing different files is going to be higher than the price of the fragmentation.

    In the next two arguments you managed to make two opposite statements both incorrect. That is actually quite impressive.

    First you say large files increase the entropy of the data stored on the disk. Which is wrong as long as you compare to the same data stored in diffeerent files. Of course if the number of files on the disk is constant smaller files will lead to less entropy, but most people actually want to store some data on their disks.

    Then you say large files are highly redundant, which is the opposite of having a large entropy as claimed in your previous argument. And in reality the redundancy does not tend to increase with filesize, but might of course depend on the format of the file.

    All in all you are saying that people shouldn't store many data on their disks, and the little data they do store should be as compact as possible, while still allowing it to be compressed even further when doing backups. You might as well have said people shouldn't use their disks at all.

    Finally claiming older Unix versions were faster is ridiculous, first of all they ran on different hardware. And surely on that hardware they were slower than todays systems. And even if you managed to port an ancient Unix version to modern hardware, I'm sure it wouldn't beat modern systems in todays tasks. Which DVD player would you suggest for K&R Unix?

    --

    Do you care about the security of your wireless mouse?
  41. Yep... by Kjella · · Score: 2, Informative

    Some numbers for *uncompressed* video:

    NTSC/YUV2/stereo: ~111gb for a cinema movie (1hr 45min)
    PAL/YUV2/stereo: ~125gb for same

    HTDV/surround: ~908gb for same

    With huffyuv (very low CPU usage, lossless) you should be able to cut that by a factor of 2-3. But it's still *huge*

    Kjella

    --
    Live today, because you never know what tomorrow brings
  42. Error Prevention by Veteran · · Score: 2, Interesting

    One of the ways to keep errors from creeping into programs is to put limits on things so high that you can never reach them in the practical world.

    The 31 bit limit on time_t overflows in this century - 63 bits outlasts the probable life of the Universe so it is unlikely to run into trouble.

    That is the best argument I know for a 64 bit file size; in the long run it is one less thing to worry about.

    1. Re:Error Prevention by Thing+1 · · Score: 2, Interesting
      One of the ways to keep errors from creeping into programs is to put limits on things so high that you can never reach them in the practical world.
      Anyone ever thought of a variable-bit filesystem?

      Start with 64-bit, but make it 63-bit. If the 64th bit is on, then there's another 64-bit value following which is prepended to the value (making it a 126-bit address -- again, reserve one bit for another 64-bit descriptor).

      Chances are it won't ever need the additional descriptors since 64-bits is a lot, but it would solve the problem once-and-for-all.

      --
      I feel fantastic, and I'm still alive.
  43. It's all about efficiency. by OS24Ever · · Score: 2, Insightful

    There is something innate in the education, learning, and daily working of a programmer that makes them not want to use 'too big' of a number for a certain task.

    it either

    A) Wastes Memory Space
    B) Wastes Code Space
    C) Wastes Pointer Space
    D) Or Violates some other tenant the programmer believes

    So, When they go out and create a file structure, or something similar, they don't feel like exceeding some 'built-in' restriction to their way of thinking.

    And usually, at the time, it's such a big number that the programmer can't think of an application to exceed it.

    Then, one comes along and blows right through it.

    I've been amused by all the people jumping on the 'it don't need to be that big' bandwagon. I can think of many applications that ext3 or whatever would need to use to make big files. they include:

    A) Database Servers
    B) Video Streaming Servers
    C) Video Editing Workstations
    D) Photo Editing Workstations
    E) Next Big Thing (tm) that hasn't come out yet.

    --

    As a rock-in-roll Physicist once said, No matter where you go, there you are.

    1. Re:It's all about efficiency. by dvdeug · · Score: 2, Insightful

      There is something innate in the education, learning, and daily working of a programmer that makes them not want to use 'too big' of a number for a certain task.

      We have code for infinite precision integers. The problem is, if it were used for filesystem code, you still couldn't do real-time video or DVD burning, because the computer would be spending too long handling infinite precision integers.

      As long as you're careful with it, setting a "really huge" number, and fixing it when you reach that limit is usually good enough.

  44. I can't believe this...superSynchronicity??? by haggar · · Score: 2, Interesting

    I had a problem with HP-UX apparently not wanting to transfer via NFS (when the NFS server is on HP-UX 11.0) files larger than 2GB. I had to backup a Solaris computer's hard disk using DD across NFS. This usually worked when the NFS server is Solaris. However, last friday it failed, when the server was setup on HP-UX. I had to resort to my little Blade 100 as the NFS server, and I had no problems with it.

    I have noticed that on the SAME DAY some folks have asked question about the 2 GB filesize limit in HP-UX on comp.sys.hp.hpux !! Apparently, HP-UX default tar and cpio don't support files over 2 GB, either. Not even in HP-UX 11i. I never thought HP-UX stinked this bad...

    How does Linux on x86 stack up? I decided not to use it for this backup, since I had my Blade 100, but would it have worked? Oh, btw, is there finally implemented on Linux a command like "share" (exsts in Solaris) to share directories via NFS, or do I still need to edit /etc/exports and then restart NFS daemon (or send SIGHUP)?

    --
    Sigged!
  45. PAL & NTSC by Kjella · · Score: 2, Informative

    PAL: Max 720x576x25fps interlaced (50 Hz)
    NTSC: Max 640x480x29.97fps interlaced (60 Hz)

    No, the don't have same frequency, nor scanlines. Some european TVs will take PAL-60, like PAL only at 60Hz though. Also I don't think the color space works in the same way, but not sure about that one. That was why I used YUV2 (16bit) for both.

    Kjella

    --
    Live today, because you never know what tomorrow brings
  46. Re:Only 35 years... by Dan+Ost · · Score: 3, Informative

    For most programs, it would require little more
    than to change the typedef that defines __time_t
    in bits/types.h.

    For stupidly written programs that assume the
    size of __time_t or that use __time_t in unions,
    each will need to be addressed individually to
    make sure things still work correctly.

    --

    *sigh* back to work...
  47. Large filesystem lack more of a problem by mauriceh · · Score: 3, Interesting

    A much bigger problem is that Linux filesystems have a capacity limit of 2TB.
    Many servers now have the physical capacity of over 2TB on a filesystem storage device.
    Unfortunately this is still a very significant limitation.
    This problem is much more commonly encountered than file size limitations.

    --
    Maurice W. Hilarius Voice: (778) 347-9907
    1. Re:Large filesystem lack more of a problem by mauriceh · · Score: 2, Informative

      Roughly 50% of of the servers we build at present have over 1TB of storage.
      Roughly 30% have over 2TB.

      With a 3Ware 7500-12 IDE RAID card and 11x200GB disks we hit 2.1TB.

      This costs about $6,000 in a server, so is a fairly popular option.

      Next month Maxtor ships their 300GB drives (MAYBE, Maxtor have been lying about their release schedules lately). Once that happens, it will be a very common problem.

      --
      Maurice W. Hilarius Voice: (778) 347-9907
  48. The "l" in lseek() by edhall · · Score: 3, Informative

    Once upon a time (prior to 1978) there was no lseek() call in Unix. The value for the offset was 16 bits . Larger seeks were handled by using the different value for "whence" (the third argument to seek()) which causes seeks to occur in 512-byte increments. This resulted in a maximum seek of 16,777,216 bytes, with an arbitrary seek() often requiring two calls, one to get to the right 512-byte block and a second to get to the right byte within the block. (Thank goodness they haven't done any such silliness to break the 2GB barrier.)

    When Research Edition 7 Unix came out, it introduced lseek() with a 32-bit offset. 2,147,483,648 bytes should be enough for anyone, hmmm? :-).

    -Ed
  49. Re:Needs to be signed... by Ben+Hutchings · · Score: 2, Informative
    No, the type of time_t - time_t must be signed. That doesn't imply that time_t must be signed. For example, (unsigned int) - (unsigned int) is int, not unsigned int.

    Wrong. The C99 standard says in section 6.3.1.8 paragraph 1:

    Many operators that expect operands of arithmetic type cause conversions and yield result types in a similar way. The purpose is to determine a common real type for the operands and result. For the specified operands, each operand is converted, without change of type domain, to a type whose corresponding real type is the common real type. Unless explicitly stated otherwise, the common real type is also the corresponding real type of the result, whose type domain is the type domain of the operands if they are the same, and complex otherwise.

    Here, the common real type is unsigned int, and the description of the addition and subtraction operators (section 6.5.6) does not specify a different type for the result when both operands have arithmetic type.

    If you disagree, please cite relevant parts of the standard to support your case.