Unix Technical Forum

InnoDB fixed file size, how much is left?

This is a discussion on InnoDB fixed file size, how much is left? within the MySQL General forum forums, part of the MySQL category; --> I'm working on migrating an bunch of MyISAM tables over to InnoDB. For development we want to use a ...


Go Back   Unix Technical Forum > Database Server Software > MySQL > MySQL General forum

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-28-2008, 05:48 AM
Gary W. Smith
 
Posts: n/a
Default InnoDB fixed file size, how much is left?

I'm working on migrating an bunch of MyISAM tables over to InnoDB. For
development we want to use a fixed amount of space. So I have specified
10 100MB files in my.cnf. I started replicating data over but what I
can't tell is how much space I have left. Running show innodb status\G
shows a lot of stuff but I can't find anything that clearly says "X"
bytes stored or how much space might be left.

Is there anything in particular I'm missing? Actually better question,
where should I be looking?

Gary
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-28-2008, 05:48 AM
Gary W. Smith
 
Posts: n/a
Default RE: InnoDB fixed file size, how much is left?

> -----Original Message-----
> From: Gary W. Smith [mailto:gary@primeexalia.com]
> Sent: Wednesday, February 14, 2007 8:01 PM
> To: mysql@lists.mysql.com
> Subject: InnoDB fixed file size, how much is left?
>
> I'm working on migrating an bunch of MyISAM tables over to InnoDB.

For
> development we want to use a fixed amount of space. So I have
> specified
> 10 100MB files in my.cnf. I started replicating data over but what I
> can't tell is how much space I have left. Running show innodb

status\G
> shows a lot of stuff but I can't find anything that clearly says "X"
> bytes stored or how much space might be left.
>
> Is there anything in particular I'm missing? Actually better

question,
> where should I be looking?
>
> Gary


Maybe I should think a little less harder on the problem. I put
innodb_file_per_table in the config so the 10 100mb files are currently
ununsed.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-28-2008, 05:48 AM
Gabriel PREDA
 
Posts: n/a
Default Re: InnoDB fixed file size, how much is left?

For what you described... you will not get a fixed size...

If you have set file_per_table flag in my.cnf you might want to know
that the .ibd files in the database directory are by default
auto-extending... so those files WILL grow... along with your data...

The shared tablespaces that you talked about (10 * 100MB) are still
used by InnoDB for transactions and foreign keys reference (at least
these two things)...
Although I don't get why would you use 10 files of 100MB... why not 20
of 50MB... unless they are on different disks and partitions... I
don't understand...

I would personally go with at most 2 files arround 500MB... keeping in
mind that you have file_per_table on !!!

How big transactions are you expecting... how many clients are you expecting ?
Answers to these questions can help you tweak the server...

-- -- -- -- -- -- -- -- -- -- -- -- -- --
Gabriel PREDA
Senior Web Developer
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 12:16 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com