esl / ice

Apache License 2.0
2 stars 4 forks source link

Monitor and log Mnesia cache contention #59

Open lucafavatella opened 10 years ago

lucafavatella commented 10 years ago

Ed, I have managed to get 2 restarts so far but I am confident the implementation should be able to catch even more restarts.

Sample output running make test:

Tx restarted 1 times by pid <0.13169.0> for insert_new (i.e. find) Xi = "A", Key = [{{dim,{[],1},"t"},1}]
Tx restarted 1 times by pid <0.11505.0> for insert_new (i.e. find) Xi = "A", Key = [{{dim,{[],1},"t"},1}]
Tx restarted 1 times by pid <0.17946.0> for insert_new (i.e. find) Xi = "A", Key = [{{dim,{[],1},"t"},0}]
Tx restarted 1 times by pid <0.20234.0> for insert_new (i.e. find) Xi = "A", Key = [{{dim,{[],1},"t"},0}]
Tx restarted 1 times by pid <0.19868.0> for insert_new (i.e. find) Xi = "A", Key = [{{dim,{[],1},"t"},0}]
Tx restarted 1 times by pid <0.19349.0> for insert_new (i.e. find) Xi = "A", Key = [{{dim,{[],1},"t"},0}]
Tx restarted 1 times by pid <0.18711.0> for insert_new (i.e. find) Xi = "A", Key = [{{dim,{[],1},"t"},0}]
Tx restarted 1 times by pid <0.19185.0> for insert_new (i.e. find) Xi = "A", Key = [{{dim,{[],1},"t"},0}]
Tx restarted 1 times by pid <0.14538.0> for insert (i.e. add) Xi = "A", Key = [{{dim,{[],1},"t"},0}]
Tx restarted 1 times by pid <0.15827.0> for insert_new (i.e. find) Xi = "A", Key = [{{dim,{[],1},"t"},0}]
Tx restarted 1 times by pid <0.17391.0> for insert_new (i.e. find) Xi = "A", Key = [{{dim,{[],1},"t"},0}]
Tx restarted 1 times by pid <0.17392.0> for insert_new (i.e. find) Xi = "A", Key = [{{dim,{[],1},"t"},0}]
Tx restarted 1 times by pid <0.20635.0> for insert_new (i.e. find) Xi = "A", Key = [{{dim,{[],1},"t"},0}]
Tx restarted 1 times by pid <0.14667.0> for insert_new (i.e. find) Xi = "A", Key = [{{dim,{[],1},"t"},0}]
Tx restarted 1 times by pid <0.17217.0> for insert_new (i.e. find) Xi = "A", Key = [{{dim,{[],1},"t"},0}]
Tx restarted 2 times by pid <0.19919.0> for insert_new (i.e. find) Xi = "A", Key = [{{dim,{[],1},"t"},0}]
lucafavatella commented 10 years ago

Just for tracing.

Ed wrote:

PR 59 looks okay but it would be better to not enable this behaviour by default. If you could either log to a file or set a flag somewhere then it is mergeable.

lucafavatella commented 10 years ago

Flag added.