Re: [OpenZFS Developer] rt-rt_space is not zero. range_tree.c:153

2015-08-27 Thread George Wilson
Jorgen, Since you're unloading the pool, there should not be any new allocations or frees happening. This is actually prevented by the call to txg_sync_stop() from spa_unload(). Here it should perform the final txg_wait_synced() to clear out all the ms_freetrees and stop the sync thread. You

Re: [OpenZFS Developer] rt-rt_space is not zero. range_tree.c:153

2015-08-27 Thread Jorgen Lundman
Can you provide some details about the stack trace when you hit this failure. All of the ms_freetrees should be empty by the time you can range_tree_destroy(). So to debug this we need to understand the calling stack to determine why that isn't happening. The stack at the moment of the

Re: [OpenZFS Developer] rt-rt_space is not zero. range_tree.c:153

2015-08-26 Thread George Wilson
Jorgen, Can you provide some details about the stack trace when you hit this failure. All of the ms_freetrees should be empty by the time you can range_tree_destroy(). So to debug this we need to understand the calling stack to determine why that isn't happening. Thanks, George On Sat, Aug 22,