[mythtv-users] mysqlcheck buffers output?

Hika van den Hoven hikavdh at gmail.com
Thu Oct 22 00:39:03 UTC 2015


Hoi Tom,

Thursday, October 22, 2015, 2:16:39 AM, you wrote:

> I apologize because this a bit off topic...more related to mysql
> itself as apposed to my MythTV system, but I figured there might be
> someone here that's run into this or knows something about it:

> I've noticed for years now that the mysqlcheck program inexplicably
> buffers it's output in a way where you can *never* truly know what
> table it's on without going into mysql separately and doing a show
> processlist.

> For example, I've seen cases were one of the first tables in alpha
> order was a massive table that takes a long time to check, where it
> will output *nothing* at all, until it's several tables past that
> table.  It appears to be buffering the output, possibly in 1K blocks
> or the like.  If you were sending the output to a file for example,
> and the server happened to go down, you might not even have *any* way
> to know how far it got.

> This is an *insane* manner for something that important to behave, and
> searching the web I see no mention of this.  I can't possibly be the
> only one whose ever noticed this.

> Does anyone know if there's any way to prevent that buffering?  I sure
> can't find one.

> Thanks in advance!
> Tom
> _______________________________________________

This is standard Linux behavior. In order to save on writes the
diskdriver by default only actually writes to disk if the file is
closed or if the size of a disk unit is reached. If you do not like
this behavior in this program you have to go upstream and ask the
developer(s) to incorporate more regular disk commits.


Tot mails,
  Hika                            mailto:hikavdh at gmail.com

"Zonder hoop kun je niet leven
Zonder leven is er geen hoop
Het eeuwige dilemma
Zeker als je hoop moet vernietigen om te kunnen overleven!"

De lerende Mens



More information about the mythtv-users mailing list