[SERVER-594] Unnecessary allocation of disk space Created: 02/Feb/10 Updated: 12/Jul/16 Resolved: 08/Feb/10 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | 1.3.1 |
| Fix Version/s: | 1.3.2 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Yun Huang Yong | Assignee: | Aaron Staple |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
db version v1.3.1, pdfile version 4.5 |
||
| Attachments: |
|
| Participants: |
| Description |
|
Running the attached script results in:
The script is inserting roughly 20MB worth of 5000* byte strings in each run. *actually 4990 to 5000 bytes, this appears to be significant as using fixed strings of 5000 bytes didn't cause this issue. The rename appears to be significant - when I took it out I couldn't re-create this issue. Attached the output of this script during my run as well as mongod.log. |
| Comments |
| Comment by auto [ 08/Feb/10 ] |
|
Author: {'login': 'astaple', 'name': 'Aaron', 'email': 'aaron@10gen.com'}Message: |
| Comment by Eliot Horowitz (Inactive) [ 07/Feb/10 ] |
|
decision was that we can change behavior and take first extent off free list. |
| Comment by Aaron Staple [ 02/Feb/10 ] |
|
It looks like the first extent for a new collection is allocated from new space in the file, rather than from the free list: NamespaceDetails *d = nsdetails(ns); I ran Yun's test with some extra debugging and saw that the new extents were being created in the above createExtent() call. Dwight, do we want to change this behavior? |