Guest User!

You are not Sophos Staff.

This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

many hdd read/write cycles slow down the system

i just got our new home-user astaro working and i'm very happy. but one thing:
i installed the astaro onto usb-stick (tmp / log mounted to tmpfs, syncing on boot/shutdown). 

why? less power consumption and smaller case for the hardware.

when surfing the internet, i get many write accesses to the stick (seems to be the /var/storage partition) slowing the system down dramatically (80% cpu cycles waiting for the usb stick). 

When shutting down the http-anti-virus, everything gets ultra-fast. Am i right, that before scanning for viruses, the website's content is stored to disk? if so, is there any way to scan the files in ram to unburden the usb stick? mounting /var/storage to ram seems exaggerated (currently 500 mb)

i don't want to change to internal hdd, if possible [;)]

thx for help [:)]


This thread was automatically locked due to age.
  • Hi, most USB sticks are terribly slow (and not especially reliable)... maybe you can use a faster one, or get a real SSD (Solid State Disk)... several users have posted that they are using SSDs for home builds.

    Yes, the A/V probably writes a copy to disk.

    Barry
  • i thought i bought a fast one [[[;)]]] but unfortunately it's only fast when reading, not when writing. currently i'm using a usb-hdd and surfing now is much faster than it has been with the stick.

    the problem is, i made the case for the firewall myself and it's so small, that it will be very hard to fit even a 2,5" hdd in there [[[;)]]]
    (im-945gse mainboard)

    is there any reason behind scaning the files on hdd? ram would be so much faster. this issue really bugs me [[[;)]]] ok, ram is much more expensive than hdd space is, but 100-200 mb would be enough for virus scans, i guess, and the data-throughput would increase.
  • Fully agree on scanning AV and also SNORT on a kind of ramdisk. Most systems are capable to 4 GB so 1 just for the scann engines would be great.

    SSD on USB Stick that maybe helps. There are usb stick around USB3 doing up to 280 MB read i guess 240 write.
    maybe a CF card to sata connector could also help.

    right now i use a ssd there i cannot feel any throttle down by scanning. OCZ 60 GB 285/275 mb
    good luck!

    Santa Claus Request: RamDisk for AV + IDS scanning :-)
    ho ho ho
  • i just investigated the whole thing a bit..
    seems like most write accesses go to "var/storage/chroot-http/tmp" so i decided to mount this folder into tmpfs. my impression is, that it's much faster now.

    monitoring /proc/diskstats shows:

    • no more writes to storage-partition only a few reads
    • few writes / reads to/from root partition


    is there any benchmark (like internet-speed-test) for connections per second?
    if not, i could run something like the apache ab benchmark on a fast website and compare the results (with / without ramdrive) to share them here
  • Arminf, Snort doesn't write to disk (except for logging)

    Kazu, perhaps running a SATA and power cable to an external SSD would work for you.

    Keep in mind with your change to use tmpfs, if you download a very large file via HTTP, you will fill up all ram and crash the system.

    There's lots of http test scripts, but most are not as well documented as AB.
    perhaps look at some of these search results:
    http://www.google.com/search?q=squid+benchmark
    (astaro doesn't use squid anymore but the benchmarks should be standard http)

    Barry