LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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


Reply
  Search this Thread
Old 01-16-2006, 01:20 PM   #1
copland
LQ Newbie
 
Registered: Jan 2006
Posts: 6

Rep: Reputation: 0
Question File System Limitations


Are there any?

I've been writing my own software for my site, it monitors all incoming/outgoing traffic, downloads and bandwidth, blocks traded passwords, does the toplist, affiliates, and handles the news, galleries, comments, and forum. All within the one user account...

It 'stopped working' early this morning in the sense that it stopped creating new directories (which the traffic/toplist script does for every ip number), and stopped writing information to the text files it uses for user registration, and for the comments/forum. It was still creating directories/files, but the text files were empty.

I've since deleted many tens of thousands of directories/files from last years traffic logs, and it started working again!

Did I hit some kind of a ceiling?
 
Old 01-16-2006, 01:34 PM   #2
exvor
Senior Member
 
Registered: Jul 2004
Location: Phoenix, Arizona
Distribution: Gentoo, LFS, Debian,Ubuntu
Posts: 1,537

Rep: Reputation: 87
All file systems have a directory or file amount limitation.


as for what they are im pretty sure modern file or root directory limitations are very large.

but then again you mentioned very large amounts of directory's

tell us what file system your using
 
Old 01-16-2006, 01:46 PM   #3
copland
LQ Newbie
 
Registered: Jan 2006
Posts: 6

Original Poster
Rep: Reputation: 0
I'm not sure, I'm on a virtual account with directadmin. I think it's a redhat distro. It's probably the default setting.

Is there a way of finding out for sure or do I have to ask my host?
 
Old 01-16-2006, 03:28 PM   #4
exvor
Senior Member
 
Registered: Jul 2004
Location: Phoenix, Arizona
Distribution: Gentoo, LFS, Debian,Ubuntu
Posts: 1,537

Rep: Reputation: 87
if you are in a consol and type mount it will give you the current mounted file system information.
 
Old 01-16-2006, 03:38 PM   #5
copland
LQ Newbie
 
Registered: Jan 2006
Posts: 6

Original Poster
Rep: Reputation: 0
I haven't got telnet/ssh access. Is there a perl command, or simple perl script that will tell me?
 
Old 01-16-2006, 03:41 PM   #6
exvor
Senior Member
 
Registered: Jul 2004
Location: Phoenix, Arizona
Distribution: Gentoo, LFS, Debian,Ubuntu
Posts: 1,537

Rep: Reputation: 87
hmmmm

possibly if it can extract information from the proc file system.


sorry i know nothing of perl.
 
Old 01-16-2006, 04:28 PM   #7
copland
LQ Newbie
 
Registered: Jan 2006
Posts: 6

Original Poster
Rep: Reputation: 0
I'll ask my host. I also lost all email on that domain for the period in question, although directadmin reports I've still got about 1.5GB space left on the account, which made me think about the directories, especially since it all started working again once I started deleting the old stuff.

In the meantime, does anyone have any figures for how many directories/files the various file systems can handle, and would less than a million directories (with a few small files in each) be a problem for any of them?
 
Old 01-16-2006, 04:53 PM   #8
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,119

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Sounds like an inode problem - ask your host provider to supply some numbers for your filesystems if you can't get to a console.
 
Old 01-16-2006, 05:40 PM   #9
exvor
Senior Member
 
Registered: Jul 2004
Location: Phoenix, Arizona
Distribution: Gentoo, LFS, Debian,Ubuntu
Posts: 1,537

Rep: Reputation: 87
here you go

http://en.wikipedia.org/wiki/Comparison_of_file_systems


good list but doesnt show the root directory limits im still looking and will update this post when i find the info.

Last edited by exvor; 01-16-2006 at 05:45 PM.
 
Old 01-16-2006, 05:54 PM   #10
copland
LQ Newbie
 
Registered: Jan 2006
Posts: 6

Original Poster
Rep: Reputation: 0
Thanks for the link!

It doesn't say how many directories or files you can have though. It does say there's 'no limits' on the pathname though (except ods-5 and udf), so I'm assuming that means the number of directories within directories (and therefore the number of directories as a whole) is limited only by the size of the disk?
 
Old 01-16-2006, 06:08 PM   #11
copland
LQ Newbie
 
Registered: Jan 2006
Posts: 6

Original Poster
Rep: Reputation: 0
Oh, and if the number of directories/files wasn't the problem, could it be hackers?

I've seen lots of germans from deutsche telekom popping up in the traffic logs sniffing around for password scripts!
 
Old 01-17-2006, 12:24 PM   #12
exvor
Senior Member
 
Registered: Jul 2004
Location: Phoenix, Arizona
Distribution: Gentoo, LFS, Debian,Ubuntu
Posts: 1,537

Rep: Reputation: 87
Yea thats what im finding too that the number of directories is limited by disk space. hmmm I dunno about hackers tho.
 
Old 01-17-2006, 05:32 PM   #13
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,119

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Might be space, might be inodes - you need to get data from your provider as I said.
As an experiment, I had a look at a partition of mine - just under a Gig total size.
Space was 30% used, inodes were 16% used.
Created 10,000 directories (no files, just directories), and the numbers became;
Space 34% used, inodes 34% used.

Doesn't take much imagination to conceive of a situation where inodes are completely used but actual disk space remains.
 
Old 01-17-2006, 06:09 PM   #14
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Quote:
All file systems have a directory or file amount limitation.
I don't think Solaris zfs has any of these.
 
Old 01-17-2006, 07:16 PM   #15
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,355

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
So you've got a backup for the internet then?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
File size limitations nifflerX Linux - General 2 08-15-2005 09:32 AM
File limitations of riserfs thllgo Linux - General 2 04-21-2005 10:55 AM
fat32 file size limitations dannyk1 Linux - General 6 11-16-2004 03:48 AM
File Handler Limitations in Linux? m3kgt Linux - General 2 01-09-2004 01:08 PM
Samba/NT 4.0 file size limitations? digitalnet Linux - Networking 0 12-20-2001 08:19 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 02:54 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration