Daft Linux Question - 32 or 64 bit - which is it?
Daft Linux Question - 32 or 64 bit - which is it?
Author
Discussion

mystomachehurts

Original Poster:

11,669 posts

282 months

Saturday 3rd November 2007
quotequote all
How do I tell if a Centos 4.5 installation is 32 or 64 bit?

Timsta

2,779 posts

278 months

Saturday 3rd November 2007
quotequote all
"uname -m" will tell you if the machine is 64bit, but you probably already know that. As to the Installation? no idea. maybe "uname - a" may give you more clues.

mystomachehurts

Original Poster:

11,669 posts

282 months

Saturday 3rd November 2007
quotequote all
Thanks Tim

  1. uname -m gives
i686


  1. uname -a gives
2.6.9-55.0.2.plus.c4smp #1 SMP Fri Jul 6 05:25:07 EDT 2007 i686 i686 i386 GNU/Linux

I guess the i386 in that output is a give away that it is 32 bit.

Oh lordy.... and I was just going to buy 16Gig of RAM for it frown

I wonder if there is an easy upgrade path to get to a 64bit OS that doesn't involve me flying to Italy to do it on site.

Timsta

2,779 posts

278 months

Saturday 3rd November 2007
quotequote all
Get them to plug in a KVMoIP into it so you can access it remotely and send them the CD. Then you can do it all remotely. I've moved a server from windows to Linux like this. All done from home on a server in London. Cost to me: £30 for them putting in the CD.

JamieBeeston

9,294 posts

297 months

Saturday 3rd November 2007
quotequote all
You can still have > 4Gb ram on a 32bit OS.

You juse need the PAE kernel.

J

mystomachehurts

Original Poster:

11,669 posts

282 months

Saturday 3rd November 2007
quotequote all
JamieBeeston said:
You can still have > 4Gb ram on a 32bit OS.

You juse need the PAE kernel.

J
Hi Jamie! wavey

Sure we can do that, I think PAE is enabled, but, surely 32bit MySQL is not going to be able to address more than a few Gig of RAM for it's InnoDB_buffer_pool, and this is where the problem is.

This trace was from just running over last night - 10 hours and the 2GB buffer pool got exhausted...



Now, I've changed the DB a little to reduce the load on the InnoDB_buffer_pool but it's still going to build up, and once it get's full that's where we see the performance drop right off.

I don't know why MySQL grinds to a halt once this gets full. The majority of activity is inserts, and the only selects that are running are hitting the last few hundred inserts, however, with several 10s of million records in the table, my guess is that it struggles to keep the indexes in the buffer_pool and this is where it's having to hit the disk.

A 16GB buffer_pool would surely allow us to keep at least a weeks worth of records in RAM?

best
Ade

JamieBeeston

9,294 posts

297 months

Saturday 3rd November 2007
quotequote all
smile As always the devil is in the details..

64bit will always give you the best options, I just wanted to offer an alternative which may have saved you a reinstall wink

I don't see why you shouldn't be able to yum update to the 64bit version, but I haven't ever tried..

GL

J

TheLearner

6,962 posts

267 months

Saturday 3rd November 2007
quotequote all
mystomachehurts said:
Thanks Tim

  1. uname -m gives
i686


  1. uname -a gives
2.6.9-55.0.2.plus.c4smp #1 SMP Fri Jul 6 05:25:07 EDT 2007 i686 i686 i386 GNU/Linux

I guess the i386 in that output is a give away that it is 32 bit.

Oh lordy.... and I was just going to buy 16Gig of RAM for it frown

I wonder if there is an easy upgrade path to get to a 64bit OS that doesn't involve me flying to Italy to do it on site.
i686 = 32bit kernel.
x86_64 = 64bit kernel.

No, you can't realistically migrate the whole OS from 32bit to 64bit, even with a RPM based distro it'd go utterly nuts and end up shit fitting somewhere along the lines. It would, require, the CD's to be used.

cyberface

12,214 posts

289 months

Saturday 3rd November 2007
quotequote all
Ade - if this is that database you told me about then it sounds like the irregular SELECTs are forcing the DBMS to keep the entire index for the big table in memory, once that's exhausted then it'll hit the disk (which will destroy performance since you're doing loads of INSERTs all the time, and unless you've implemented a randomised key inserter then you'll be hot-spotting at the end of the b-tree, causing leaf splits all the time....)

If you know the SELECTs are only hitting the end of the table.... does MySQL do horizontal partitioning? That'd help massively since only the index for the last partition would be needed if you size it right.

This really sounds more like a DB optimisation problem than throwing hardware at it... periodic archive / dump off to separate table would help the SELECT issue - as it is, the DB *needs* that index to do the SELECT, and it'll be constantly changing due to the INSERTs. Unless you can guarantee an upper size and fit it all in RAM, it sounds like upping the RAM to 16 GB will only delay the problem (and performance will be hit even bigger when the DBMS needs to go to disk with >16 GB of constantly-inserting table to select from)...

mystomachehurts

Original Poster:

11,669 posts

282 months

Saturday 3rd November 2007
quotequote all
TheLearner said:
i686 = 32bit kernel.
x86_64 = 64bit kernel.

No, you can't realistically migrate the whole OS from 32bit to 64bit, even with a RPM based distro it'd go utterly nuts and end up shit fitting somewhere along the lines. It would, require, the CD's to be used.
Thanks Sarah, as I'd expected!

mystomachehurts

Original Poster:

11,669 posts

282 months

Saturday 3rd November 2007
quotequote all
cyberface said:
Ade - if this is that database you told me about then it sounds like the irregular SELECTs are forcing the DBMS to keep the entire index for the big table in memory, once that's exhausted then it'll hit the disk (which will destroy performance since you're doing loads of INSERTs all the time, and unless you've implemented a randomised key inserter then you'll be hot-spotting at the end of the b-tree, causing leaf splits all the time....)

If you know the SELECTs are only hitting the end of the table.... does MySQL do horizontal partitioning? That'd help massively since only the index for the last partition would be needed if you size it right.

This really sounds more like a DB optimisation problem than throwing hardware at it... periodic archive / dump off to separate table would help the SELECT issue - as it is, the DB *needs* that index to do the SELECT, and it'll be constantly changing due to the INSERTs. Unless you can guarantee an upper size and fit it all in RAM, it sounds like upping the RAM to 16 GB will only delay the problem (and performance will be hit even bigger when the DBMS needs to go to disk with >16 GB of constantly-inserting table to select from)...
Agreed!

I'm looking at partitioning, however I was distraught to see we only got 10hours worth of data before the buffer was full. I've changed the architecture a little so that one of the tables that was storing rarely looked-up BLOBS is out of the InnoDB table space - now and we are getting a heap more data through without filling up the buffers so much.


(you can see where I purged all the tables this morning at around 10:00)

If I can get us to keeping 5-7 days worth of live data in the buffer_pool then the customer will be happy and if we just need to bung a bit more RAM at it to get this then that's fine.

I'll also look at compound indexing a little more, I've already changed the table structure to drop a couple of columns, and if I can compound index the remaining two key columns and keep performance then that might be a way forward.

Otherwise as you said, I'll start archiving data off into different table spaces, putting it into MyISAM tables - I don't care if they have to wait a few minutes to query stuff that is this old.

Many thanks for all the suggestions
Ade


Edited by mystomachehurts on Saturday 3rd November 19:05