Daft Linux Question - 32 or 64 bit - which is it?
Discussion
Thanks Tim
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
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.
- uname -m gives
- uname -a gives
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

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.
JamieBeeston said:
You can still have > 4Gb ram on a 32bit OS.
You juse need the PAE kernel.
J
Hi Jamie! You juse need the PAE kernel.
J

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
mystomachehurts said:
Thanks Tim
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
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.- uname -m gives
- uname -a gives
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

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.
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.
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)...
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)...
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!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 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!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)...
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
Gassing Station | Computers, Gadgets & Stuff | Top of Page | What's New | My Stuff



As always the devil is in the details..