Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 04-16-2009, 06:51 PM   #1
Registered: Jan 2002
Location: Australia
Distribution: Gentoo
Posts: 103

Rep: Reputation: 15
mkdir freezes entire file system for 30secs

Specifically this is happening in my Music folder which does have a fairly large number (~350) of sub directories. Other directories are fine indicating its not a hardware problem.

When I mkdir a new directory it locks up for a while. 'ls' freezes up, streaming media dies and so on. Creating a 2nd directory after the first works fine though, then if I wait a while and try again its another lock up.

fsck didn't turn up any problems.

The drive doesn't have a whole lot of other usage. I know the drive isn't spinning up or anything because sometimes I am streaming music off it.

Ubuntu Jaunty (Latest updates as of now).

Linux hextor 2.6.28-11-generic #41-Ubuntu SMP Wed Apr 8 04:39:23 UTC 2009 x86_64 GNU/Linux
`--> sudo tune2fs -l /dev/sdd1
[sudo] password for hegemon: 
tune2fs 1.41.4 (27-Jan-2009)
Filesystem volume name:   storage1
Last mounted on:          <not available>
Filesystem UUID:          318458f1-1403-4bdf-88c7-f8e361d055a8
Filesystem magic number:  0xEF53
Filesystem revision #:    1 (dynamic)
Filesystem features:      has_journal resize_inode dir_index filetype needs_recovery sparse_super large_file
Filesystem flags:         signed_directory_hash 
Default mount options:    (none)
Filesystem state:         clean
Errors behavior:          Continue
Filesystem OS type:       Linux
Inode count:              122109952
Block count:              244190000
Reserved block count:     0
Free blocks:              787593
Free inodes:              122077550
First block:              0
Block size:               4096
Fragment size:            4096
Reserved GDT blocks:      965
Blocks per group:         32768
Fragments per group:      32768
Inodes per group:         16384
Inode blocks per group:   512
Filesystem created:       Thu Sep 20 15:03:07 2007
Last mount time:          Fri Apr 17 07:56:58 2009
Last write time:          Fri Apr 17 07:56:58 2009
Mount count:              6
Maximum mount count:      39
Last checked:             Tue Apr  7 16:15:57 2009
Check interval:           15552000 (6 months)
Next check after:         Sun Oct  4 17:15:57 2009
Reserved blocks uid:      0 (user root)
Reserved blocks gid:      0 (group root)
First inode:              11
Inode size:	          128
Journal inode:            8
Default directory hash:   tea
Directory Hash Seed:      a8ffa8f9-97fa-4e59-8402-de8662a6c321
Journal backup:           inode blocks
Old 04-16-2009, 09:18 PM   #2
LQ Newbie
Registered: Apr 2008
Posts: 28

Rep: Reputation: 16
There is 3 diffrent kernels the server,desktop, and preempt depending on what one u use there will be i/o bottleneck or throughput bottleneck. It sounds like ur using the server one, so the i/o will be greater but ur streaming music and other fancy stuff gets on a waiting list until the io/ looses up.
Old 04-21-2009, 09:59 PM   #3
Registered: Jan 2002
Location: Australia
Distribution: Gentoo
Posts: 103

Original Poster
Rep: Reputation: 15
I'm using the desktop kernel, I'm switching to the server one to see if that makes a difference otherwise I'll have a look at different schedulers.

With that said, this is just a home server, its not under any huge load. It is running BitTorrent (deluge) which could be using a lot of I/O but that doesn't explain why its only the music directory that seems to be having problems, the drive/filesystem used by BitTorrent is different too.

The system also used to work on basically the same setup without problems.
Old 04-29-2009, 06:03 AM   #4
Registered: Jan 2002
Location: Australia
Distribution: Gentoo
Posts: 103

Original Poster
Rep: Reputation: 15
I tried the server kernel without any difference.

Its now happening when I make a directory in any directory, not just the music one although its only on that filesystem.

Next I'll try making an ext4 partition on a different drive and putting my music on that.


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
shred entire device or partition , remove file system first? writedom Linux - Newbie 8 05-26-2008 12:32 PM
LXer: Move an entire file system on a live Unix system LXer Syndicated Linux News 0 07-08-2006 05:33 PM
mkdir: cannot create directory `test': Read-only file system punt Linux - General 2 04-16-2005 09:58 PM
Unpacking files=Cannot mkdir: Read-only file system Regenten Linux - Newbie 5 09-08-2004 03:23 AM
"mkdir: cannot create directory `foo': Read-only file system" on FAT32 maddes Linux - Hardware 1 11-26-2003 06:19 PM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:37 PM.

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