LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 09-24-2017, 09:53 PM   #1
RedRqesling
LQ Newbie
 
Registered: Mar 2015
Posts: 4

Rep: Reputation: Disabled
MSSQL on Centos is slow


I have MSSQL 2017 installed on Centos 7 server. The stored procedures run very slowly. Comparing to the same hardware settings Windows 2012R2 sever, Centos SQL query speed is only one percent. Could anybody please give me a hand to resolve this issue? Thanks.
 
Old 09-25-2017, 01:02 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,809

Rep: Reputation: 8003Reputation: 8003Reputation: 8003Reputation: 8003Reputation: 8003Reputation: 8003Reputation: 8003Reputation: 8003Reputation: 8003Reputation: 8003Reputation: 8003
Quote:
Originally Posted by RedRqesling View Post
I have MSSQL 2017 installed on Centos 7 server. The stored procedures run very slowly. Comparing to the same hardware settings Windows 2012R2 sever, Centos SQL query speed is only one percent. Could anybody please give me a hand to resolve this issue? Thanks.
We'd be happy to try, but you haven't given us ANY details to work with. Server statistics? DB Size? The stored procedure in question? Times? Anything???

Since you're using MSSQL...have you contacted Microsoft for assistance? It would not be very surprising if a Microsoft product was engineered to run better on Windows than Linux to start with.
 
Old 09-25-2017, 05:27 PM   #3
RedRqesling
LQ Newbie
 
Registered: Mar 2015
Posts: 4

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by TB0ne View Post
We'd be happy to try, but you haven't given us ANY details to work with. Server statistics? DB Size? The stored procedure in question? Times? Anything???

Since you're using MSSQL...have you contacted Microsoft for assistance? It would not be very surprising if a Microsoft product was engineered to run better on Windows than Linux to start with.
The server is a VM of Centos 7(3.10.0-514.26.2.el7.x86_64) with 50GB RAM and 500GB HD, and DB is of size 6.7GB. This DB is originally developed on MSSQL 2012 on Windows 2012R2, and all SPs are running smoothly on Windows. As business progressing, there is need for a new SQL server to share the workload. Monitoring the stored procedure with SQL Server profiler, the SP:StmtCompleted event, with duration filter 100ms, shows more events counts Linux/Windows 14/6, longer duration 2600/300, longer CPU time 32000/200.
 
Old 09-25-2017, 05:37 PM   #4
RedRqesling
LQ Newbie
 
Registered: Mar 2015
Posts: 4

Original Poster
Rep: Reputation: Disabled
The server is a VM of Centos 7(3.10.0-514.26.2.el7.x86_64) with 50GB RAM and 500GB HD, and DB is of size 6.7GB. This DB is originally developed on MSSQL 2012 on Windows 2012R2, and all SPs are running smoothly on Windows. As business progressing, there is need for a new SQL server to share the workload. Monitoring the stored procedure with SQL Server profiler, the SP:StmtCompleted event, with duration filter 100ms, shows more events counts Linux/Windows 14/6, longer duration 2600/300, longer CPU time 32000/200.
 
Old 09-26-2017, 11:47 AM   #5
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,809

Rep: Reputation: 8003Reputation: 8003Reputation: 8003Reputation: 8003Reputation: 8003Reputation: 8003Reputation: 8003Reputation: 8003Reputation: 8003Reputation: 8003Reputation: 8003
Quote:
Originally Posted by RedRqesling View Post
The server is a VM of Centos 7(3.10.0-514.26.2.el7.x86_64) with 50GB RAM and 500GB HD, and DB is of size 6.7GB. This DB is originally developed on MSSQL 2012 on Windows 2012R2, and all SPs are running smoothly on Windows. As business progressing, there is need for a new SQL server to share the workload. Monitoring the stored procedure with SQL Server profiler, the SP:StmtCompleted event, with duration filter 100ms, shows more events counts Linux/Windows 14/6, longer duration 2600/300, longer CPU time 32000/200.
Ok, so is the Windows server also running in a VM, or on a physical server? And what kind of VM? How is the storage attached? And 50GB of RAM...with 500GB hard drive? 6.7GB database size? Is that all on one spindle?

Still lots of variables unknown here. If the MS server has the OS one one drive and the DB on another, it's going to be faster than a single-spindle system. Virtual Box vs VMWare ESXi is different. Again, using a Microsoft product on Linux will probably not get you the best results, but it may also be in how you deployed it too. Have you contacted Microsoft for help with this? They may be able to assist in tweaking things.
 
Old 09-26-2017, 03:37 PM   #6
RedRqesling
LQ Newbie
 
Registered: Mar 2015
Posts: 4

Original Poster
Rep: Reputation: Disabled
Both servers are VM on Hyper-V. Linux is on one spindle, but Windows is not. I wonder if there is a way to configure Linux drive for MSSQL as Windows.
 
Old 09-26-2017, 05:13 PM   #7
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,809

Rep: Reputation: 8003Reputation: 8003Reputation: 8003Reputation: 8003Reputation: 8003Reputation: 8003Reputation: 8003Reputation: 8003Reputation: 8003Reputation: 8003Reputation: 8003
Quote:
Originally Posted by RedRqesling View Post
Both servers are VM on Hyper-V. Linux is on one spindle, but Windows is not. I wonder if there is a way to configure Linux drive for MSSQL as Windows.
(bold added for emphasis)....ANY database running on multiple spindles will be faster than single, regardless of OS. And you configure the Linux server same as you would for Windows (generally speaking). Format the disk, mount it, and put your application/database on it. Most of the entire Internet, all of the worlds fastest supercomputers and largest databases are all running either Linux or Unix.
 
  


Reply



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
trouble trying to access mssql server from centos using freetds, unixodbc and php wasamzy Linux - Server 2 07-27-2021 08:54 AM
[SOLVED] Centos is got slow windstory Linux - Newbie 8 03-02-2011 03:15 AM
Question trouble trying to access mssql server from centos using freetds, unixodbc wasamzy Linux - General 0 01-12-2010 05:31 AM
Performance of CentOS 5.1 is slow...very slow! 90% mem used!! Why? Jazzmaster777 Linux - Server 5 04-13-2008 05:48 AM
LXer: Installing The PHP-MSSQL Module On CentOS 5.0 LXer Syndicated Linux News 0 06-11-2007 10:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 01:09 PM.

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