{"action":"created","issue":{"url":"https://api.github.com/repos/bluebore/dfs/issues/47","labels_url":"https://api.github.com/repos/bluebore/dfs/issues/47/labels{/name}","comments_url":"https://api.github.com/repos/bluebore/dfs/issues/47/comments","events_url":"https://api.github.com/repos/bluebore/dfs/issues/47/events","html_url":"https://github.com/bluebore/dfs/issues/47","id":90593843,"number":47,"title":"文件描述符关闭","user":{"login":"linyvxiang","id":1382038,"avatar_url":"https://avatars.githubusercontent.com/u/1382038?v=3","gravatar_id":"","url":"https://api.github.com/users/linyvxiang","html_url":"https://github.com/linyvxiang","followers_url":"https://api.github.com/users/linyvxiang/followers","following_url":"https://api.github.com/users/linyvxiang/following{/other_user}","gists_url":"https://api.github.com/users/linyvxiang/gists{/gist_id}","starred_url":"https://api.github.com/users/linyvxiang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/linyvxiang/subscriptions","organizations_url":"https://api.github.com/users/linyvxiang/orgs","repos_url":"https://api.github.com/users/linyvxiang/repos","events_url":"https://api.github.com/users/linyvxiang/events{/privacy}","received_events_url":"https://api.github.com/users/linyvxiang/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-06-24T07:30:25Z","updated_at":"2015-06-24T10:47:32Z","closed_at":null,"body":"目前chunkserver中唯一关闭文件描述符的地方是Block的析构函数。而当前内核对于每个用户进程的最大打开文件数是有限制的。即使修改了限制，也会造成系统资源的浪费。是否有必要去关闭一些文件呢？"},"comment":{"url":"https://api.github.com/repos/bluebore/dfs/issues/comments/114822080","html_url":"https://github.com/bluebore/dfs/issues/47#issuecomment-114822080","issue_url":"https://api.github.com/repos/bluebore/dfs/issues/47","id":114822080,"user":{"login":"linyvxiang","id":1382038,"avatar_url":"https://avatars.githubusercontent.com/u/1382038?v=3","gravatar_id":"","url":"https://api.github.com/users/linyvxiang","html_url":"https://github.com/linyvxiang","followers_url":"https://api.github.com/users/linyvxiang/followers","following_url":"https://api.github.com/users/linyvxiang/following{/other_user}","gists_url":"https://api.github.com/users/linyvxiang/gists{/gist_id}","starred_url":"https://api.github.com/users/linyvxiang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/linyvxiang/subscriptions","organizations_url":"https://api.github.com/users/linyvxiang/orgs","repos_url":"https://api.github.com/users/linyvxiang/repos","events_url":"https://api.github.com/users/linyvxiang/events{/privacy}","received_events_url":"https://api.github.com/users/linyvxiang/received_events","type":"User","site_admin":false},"created_at":"2015-06-24T10:47:32Z","updated_at":"2015-06-24T10:47:32Z","body":"但是block被放到_block_map中时，会增加一次引用计数，这将导致只要在chunkserver运行时，block便不会被析构，即使这个block被close。"}}