Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8831285
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T08:16:33+00:00 2026-06-14T08:16:33+00:00

I’m about to replace an old server with completely new hardware, but something strange

  • 0

I’m about to replace an old server with completely new hardware, but something strange happens.

  • The old machine is an AMD Athlon 64 X2 5600+ @ 1GHz with 2 GB RAM running Debian 4.0 32bit and 2×380 GB (or so) HDD in RAID1
  • The new machine is an Intel i7-3770 @ 3.4GHz with 32 GB RAM running Debian 6.0 64 bit with 2x3TB HDD in RAID1 (6Gbps SATA, 7200rpm)

When loading a SQL dump (see below) the new server is busy for about 32 minutes! Being freshly installed, the server has nothing else to do. On the other hand, the old server takes 32% less time even though it is busy with other things. How can that be?

Both machines have been installed using Debian minimal images and then packages have been installed as needed.

The my.cnf settings of the old server and the new server both use innodb_file_per_table and innodb_buffer_pool_sizeis much larger (16 GB vs 0.5 GB) on the new server.

Data about the SQL dump:

  • loading a completely new database (CREATE DATABASE)
  • 16 tables
  • a single large table (about 1,2M rows / 240MB SQL data) that is slow
  • InnoDB with foreign keys
  • dump uses LOCK TABLES "xxx" WRITE; ALTER TABLE "xxx" DISABLE KEYS; (generated by mysqldump)

Any ideas how to speed up that thing?

Update

I noticed that the old machine uses a dedicated 50GB ext3 partition on /var while the new one has a 1TB ext4 root partition (including /var) and a 2TB ext4 on /home. MySQL data is at /var/lib/mysql/ in both cases.

Update 2

Apparently it’s the HDD that is handling small blocks slowly:

# dd if=/dev/zero of=test bs=1024 count=100 oflag=direct,sync
102400 bytes (102 kB) copied, 2.49824 s, 41.0 kB/s

The old server hits 1.1 MB/s with the same test.

Larger blocks can be handled find by the new server:

# dd if=/dev/zero of=test bs=1024k count=100 oflag=direct,sync
104857600 bytes (105 MB) copied, 7.11175 s, 14.7 MB/s

hdparm says that the write cache is on on both drives. A partition table alignment problem? See my partition table.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T08:16:34+00:00Added an answer on June 14, 2026 at 8:16 am

    Ok, I found the reason for this and hopefully this will help others.

    ext4 had “barriers” enabled on that system causing small writes to become very slow. Such writes are normal for database files.

    Disabling barriers boosts performance and the same SQL dump is loaded in ~8 minutes (that’s 4 times faster).

    mount -o remount,barrier=0 /
    

    Disabling barriers comes with fs integrity downsides, so think about that first…

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am reading a book about Javascript and jQuery and using one of the
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I want to count how many characters a certain string has in PHP, but
I've got a string that has curly quotes in it. I'd like to replace
I have a French site that I want to parse, but am running into
I want use html5's new tag to play a wav file (currently only supported
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
This could be a duplicate question, but I have no idea what search terms
I don't have much knowledge about the IPv6 protocol, so sorry if the question

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.