Block device fs vs normal directory


 
Thread Tools Search this Thread
Operating Systems Linux Block device fs vs normal directory
# 1  
Old 10-23-2010
Block device fs vs normal directory

I use CentOS

I talked with this guy who seems to think loop mounting a fs ext3 image on a directory, as opposed to just using the underlying filesystem, will work better as far as IO conflicts. I have no idea why this would be better? I haven't been able to contact him.

Basically we have a daemon that creates a bunch of files on a directory, and constantly reads and writes to them. This has resulted in many io conflicts such that some reads and some writes are being blocked.

Why would a block device work better than a normal directory as far as IO conflicts are concerned?
# 2  
Old 10-24-2010
What do you mean by 'io conflict'? Are you getting hangups where things are waiting for each other forever? I'm not convinced it would do anything to help locking problems like that, which may be fundamental to your application and not to the underlying FS.

A disk image like that would mean the entire filesystem wouldn't get fragmented by the very poor usage patterns you're subjecting it to, just the contents of the disk image.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. HP-UX

Failed to open tape device /dev/rmt/0mn:Device busy (errno = 16)

Hi, Unable to make tape backup, please help. /opt/ignite/bin/make_tape_recovery -a /dev/rmt/?mn -I -v -m tar -x inc_entire=vg00 * Creating local directories for configuration files and archive. ======= 04/25/16 16:28:08 IST Started /opt/ignite/bin/make_tape_recovery. (Mon... (4 Replies)
Discussion started by: anuragr
4 Replies

2. Red Hat

Unable To Activate Ethernet Network Device in RHEL 5.5 - e100 device eth0 does not seem to be presen

Hi All, Could anyone please help to resolve the below problem. I installed RHEL5.5 in my desktop.But when i try to activate the ethernet connection then it gives me the error. I spent 2 days for the above and go through with several suggestion found by googling. But no luck. ... (0 Replies)
Discussion started by: Tanmoy
0 Replies

3. Hardware

DD command using block device as input

Hi, I am trying to measure the speed of reading a given block size using the dd command. However depending on which input I use: a regular file (on the same device) or /dev/sdb1, I get some really different results. $sudo sh -c 'echo 3 > /proc/sys/vm/drop_caches'; dd if=pirate of=/dev/null... (9 Replies)
Discussion started by: nytty
9 Replies

4. Shell Programming and Scripting

Block device fs vs normal directory

I talked with this guy who seems to think loop mounting a fs ext3 image on a directory, as opposed to just using the underlying filesystem, will work better as far as IO conflicts. I have no idea why this would be better? I haven't been able to contact him. Basically we have a daemon that... (0 Replies)
Discussion started by: stevenswj
0 Replies

5. Red Hat

How to Block the USB device

Hi friends, I wanna know how to block USB devices in my RedHat flavor Operating system. regards, Prakash (3 Replies)
Discussion started by: prakashkumar41
3 Replies

6. Linux

Query about creating sysfs directory under device driver

Hi all, Currently i am involved in developing a device driver for a custom hardware. My linux stack already has the sysfs directory structure /sys/class/hwmon/ My need is that, while loading my device driver i need to create a "xyz" sysfs directory inside hwmon sysfs directory as... (0 Replies)
Discussion started by: cbalu
0 Replies

7. Linux

shrinking root partition and using free space to create a block device

We are intending to protect a set of user specified files using LVM mirroring where the protected space on which the user files are stored is mirrored on an LV on a different disk. Our problem is that for a user with a custom layout has installed linux with 2 partitons for swap and / and there is... (0 Replies)
Discussion started by: kickdgrass
0 Replies

8. Solaris

block device problem

Hi ...... I have file system problem when i try to mount get the following message : mount: /dev/rdsk/c1t4d0s7 not a block device .... I run fsck it's ok ,,,, after run newfs -N /dev/dsk/c1t4d0s7 and fsck -o b=535952 /dev/dsk/c1t4d0s7 .............it's ok ........ At the and when i try... (2 Replies)
Discussion started by: tt155
2 Replies

9. Programming

how to know if a directory is normal one or subdomain?

there are 2 directiries under public_html directory: public_html/images public_html/pictures "images" is a normal directory (uploaded by ftp) and "pictures" is a subdomain (created in cPanel). if using cpanel, I know "pictures" is subdomain because it is displayed as subdomain in cpanel.... (1 Reply)
Discussion started by: hello20009876
1 Replies

10. Solaris

Device directory

I have moved 2 fiber cards into the 2 faster PCI slots of a Sunfire v880. However , in the /devices directory there exists an entry which now points to disks that no longer exist ie for example: /devices/pci@9,700000/SUNW,qlc@2/ssd@w2100000c50548ed1,0:a This PCI controller (pci@9,700000)... (2 Replies)
Discussion started by: markdr011
2 Replies
Login or Register to Ask a Question