Or move to 64 bit, because journaling is on by default on 64 bit systems.
So how is my 5 job repository using 2GB and your 10,000 job repository using 500MB?! Were you able to open that mongo archive?
I think itâs error messages. I just logged another 50 errors and it added another 70 MB to our repo.
Thatâs so strange. I have a local repository installed that I use for testing my code. It is 64 bit, but it was installed with the repository installer, so there are no additional command line arguments to tweak settings. It has 95 jobs averaging around 75 frames per task. There are about 200 errors total. My database has yet to pre-allocate the 512 MB file.
I should note that we only store metadata for the errors and logs (ie: the date they were created, which slave created them, etc). The actual log itself is bzipped up and stored in the repository on disk.
As a test, I had my local install generate 50 additional errors, and disk space used by the database didnât go up a single byteâŠ
âŠ
Wait a second, whatâs currently growing in disk space, the mongo database or the repository file system?
Mongo.
Ok. I generated 500 error messages and it increased file size by about 300MBs.
[code]Microsoft Windows [Version 6.0.6002]
Copyright © 2006 Microsoft Corporation. All rights reserved.
C:\mongo\application\bin>mongo localhost/deadlinedb
MongoDB shell version: 2.2.0
connecting to: localhost/deadlinedb
db.stats()
{
âdbâ : âdeadlinedbâ,
âcollectionsâ : 18,
âobjectsâ : 3049,
âavgObjSizeâ : 496.04591669399804,
âdataSizeâ : 1512444,
âstorageSizeâ : 16084992,
ânumExtentsâ : 36,
âindexesâ : 28,
âindexSizeâ : 441504,
âfileSizeâ : 117440512,
ânsSizeMBâ : 16,
âokâ : 1
}
db.stats()
{
âdbâ : âdeadlinedbâ,
âcollectionsâ : 18,
âobjectsâ : 3050,
âavgObjSizeâ : 529.0609836065573,
âdataSizeâ : 1613636,
âstorageSizeâ : 26308608,
ânumExtentsâ : 37,
âindexesâ : 28,
âindexSizeâ : 441504,
âfileSizeâ : 117440512,
ânsSizeMBâ : 16,
âokâ : 1
}
db.stats()
{
âdbâ : âdeadlinedbâ,
âcollectionsâ : 18,
âobjectsâ : 3050,
âavgObjSizeâ : 561.0622950819672,
âdataSizeâ : 1711240,
âstorageSizeâ : 26308608,
ânumExtentsâ : 37,
âindexesâ : 28,
âindexSizeâ : 441504,
âfileSizeâ : 117440512,
ânsSizeMBâ : 16,
âokâ : 1
}
db.stats()
{
âdbâ : âdeadlinedbâ,
âcollectionsâ : 18,
âobjectsâ : 3050,
âavgObjSizeâ : 572.0786885245901,
âdataSizeâ : 1744840,
âstorageSizeâ : 26308608,
ânumExtentsâ : 37,
âindexesâ : 28,
âindexSizeâ : 441504,
âfileSizeâ : 117440512,
ânsSizeMBâ : 16,
âokâ : 1
}
db.stats()
{
âdbâ : âdeadlinedbâ,
âcollectionsâ : 18,
âobjectsâ : 3050,
âavgObjSizeâ : 581.752131147541,
âdataSizeâ : 1774344,
âstorageSizeâ : 26308608,
ânumExtentsâ : 37,
âindexesâ : 28,
âindexSizeâ : 441504,
âfileSizeâ : 117440512,
ânsSizeMBâ : 16,
âokâ : 1
}
db.stats()
{
âdbâ : âdeadlinedbâ,
âcollectionsâ : 18,
âobjectsâ : 3050,
âavgObjSizeâ : 610.655737704918,
âdataSizeâ : 1862500,
âstorageSizeâ : 40046592,
ânumExtentsâ : 39,
âindexesâ : 28,
âindexSizeâ : 441504,
âfileSizeâ : 117440512,
ânsSizeMBâ : 16,
âokâ : 1
}
db.stats()
{
âdbâ : âdeadlinedbâ,
âcollectionsâ : 18,
âobjectsâ : 3050,
âavgObjSizeâ : 646.5639344262295,
âdataSizeâ : 1972020,
âstorageSizeâ : 40046592,
ânumExtentsâ : 39,
âindexesâ : 28,
âindexSizeâ : 441504,
âfileSizeâ : 117440512,
ânsSizeMBâ : 16,
âokâ : 1
}
db.stats()
{
âdbâ : âdeadlinedbâ,
âcollectionsâ : 18,
âobjectsâ : 3050,
âavgObjSizeâ : 667.7468852459017,
âdataSizeâ : 2036628,
âstorageSizeâ : 40046592,
ânumExtentsâ : 39,
âindexesâ : 28,
âindexSizeâ : 441504,
âfileSizeâ : 117440512,
ânsSizeMBâ : 16,
âokâ : 1
}
db.stats()
{
âdbâ : âdeadlinedbâ,
âcollectionsâ : 18,
âobjectsâ : 3069,
âavgObjSizeâ : 752.1850765721733,
âdataSizeâ : 2308456,
âstorageSizeâ : 51515392,
ânumExtentsâ : 40,
âindexesâ : 28,
âindexSizeâ : 441504,
âfileSizeâ : 251658240,
ânsSizeMBâ : 16,
âokâ : 1
}
db.stats()
{
âdbâ : âdeadlinedbâ,
âcollectionsâ : 18,
âobjectsâ : 3069,
âavgObjSizeâ : 772.753339850114,
âdataSizeâ : 2371580,
âstorageSizeâ : 66998272,
ânumExtentsâ : 41,
âindexesâ : 28,
âindexSizeâ : 441504,
âfileSizeâ : 251658240,
ânsSizeMBâ : 16,
âokâ : 1
}
[/code]
Here is the detailed stats for comparison to the previous I posted on Friday. Same repo.
[code] Microsoft Windows [Version 6.0.6002]
Copyright © 2006 Microsoft Corporation. All rights reserved.
C:\Users\sfsadmin>cd C:\mongo\application\bin
C:\mongo\application\bin>mongo localhost/deadlinedb
MongoDB shell version: 2.2.0
connecting to: localhost/deadlinedb
db.getCollectionNames().forEach(function© {s = db[c].validate(); printjson(s)})
{
ânsâ : âdeadlinedb.DeadlineSettingsâ,
âfirstExtentâ : â0:f4000 ns:deadlinedb.DeadlineSettingsâ,
âlastExtentâ : â0:8bd000 ns:deadlinedb.DeadlineSettingsâ,
âextentCountâ : 2,
âdatasizeâ : 22808,
ânrecordsâ : 6,
âlastExtentSizeâ : 278528,
âpaddingâ : 1.0430000000000037,
âfirstExtentDetailsâ : {
âlocâ : â0:f4000â,
âxnextâ : â0:8bd000â,
âxprevâ : ânullâ,
ânsdiagâ : âdeadlinedb.DeadlineSettingsâ,
âsizeâ : 69632,
âfirstRecordâ : â0:f5100â,
âlastRecordâ : â0:ff3acâ
},
âdeletedCountâ : 59,
âdeletedSizeâ : 324904,
ânIndexesâ : 1,
âkeysPerIndexâ : {
âdeadlinedb.DeadlineSettings.$idâ : 6
},
âvalidâ : true,
âerrorsâ : [ ],
âwarningâ : âSome checks omitted for speed. use {full:true} option to do more thorough scan.â,
âokâ : 1
}
{
ânsâ : âdeadlinedb.DeletedDocumentsâ,
âfirstExtentâ : â0:8c000 ns:deadlinedb.DeletedDocumentsâ,
âlastExtentâ : â0:8c000 ns:deadlinedb.DeletedDocumentsâ,
âextentCountâ : 1,
âdatasizeâ : 1512,
ânrecordsâ : 12,
âlastExtentSizeâ : 8192,
âpaddingâ : 1,
âfirstExtentDetailsâ : {
âlocâ : â0:8c000â,
âxnextâ : ânullâ,
âxprevâ : ânullâ,
ânsdiagâ : âdeadlinedb.DeletedDocumentsâ,
âsizeâ : 8192,
âfirstRecordâ : â0:8c0b0â,
âlastRecordâ : â0:8c6c8â
},
âdeletedCountâ : 1,
âdeletedSizeâ : 6312,
ânIndexesâ : 4,
âkeysPerIndexâ : {
âdeadlinedb.DeletedDocuments.$idâ : 12,
âdeadlinedb.DeletedDocuments.$DeletedTime_1â : 12,
âdeadlinedb.DeletedDocuments.$DocID_1â : 12,
âdeadlinedb.DeletedDocuments.$OrigCollection_1â : 12
},
âvalidâ : true,
âerrorsâ : [ ],
âwarningâ : âSome checks omitted for speed. use {full:true} option to do more thorough scan.â,
âokâ : 1
}
{
ânsâ : âdeadlinedb.JobReportsâ,
âfirstExtentâ : â0:17a000 ns:deadlinedb.JobReportsâ,
âlastExtentâ : â2:af2000 ns:deadlinedb.JobReportsâ,
âextentCountâ : 8,
âdatasizeâ : 817104,
ânrecordsâ : 4,
âlastExtentSizeâ : 15482880,
âpaddingâ : 1.00300000000004,
âfirstExtentDetailsâ : {
âlocâ : â0:17a000â,
âxnextâ : â0:196000â,
âxprevâ : ânullâ,
ânsdiagâ : âdeadlinedb.JobReportsâ,
âsizeâ : 20480,
âfirstRecordâ : ânullâ,
âlastRecordâ : ânullâ
},
âdeletedCountâ : 172,
âdeletedSizeâ : 43004528,
ânIndexesâ : 1,
âkeysPerIndexâ : {
âdeadlinedb.JobReports.$idâ : 4
},
âvalidâ : true,
âerrorsâ : [ ],
âwarningâ : âSome checks omitted for speed. use {full:true} option to do more thorough scan.â,
âokâ : 1
}
{
ânsâ : âdeadlinedb.JobStatisticsâ,
âfirstExtentâ : â0:8a3000 ns:deadlinedb.JobStatisticsâ,
âlastExtentâ : â0:8a3000 ns:deadlinedb.JobStatisticsâ,
âextentCountâ : 1,
âdatasizeâ : 3380,
ânrecordsâ : 3,
âlastExtentSizeâ : 20480,
âpaddingâ : 1,
âfirstExtentDetailsâ : {
âlocâ : â0:8a3000â,
âxnextâ : ânullâ,
âxprevâ : ânullâ,
ânsdiagâ : âdeadlinedb.JobStatisticsâ,
âsizeâ : 20480,
âfirstRecordâ : â0:8a30b0â,
âlastRecordâ : â0:8a39bcâ
},
âdeletedCountâ : 1,
âdeletedSizeâ : 16876,
ânIndexesâ : 1,
âkeysPerIndexâ : {
âdeadlinedb.JobStatistics.$idâ : 3
},
âvalidâ : true,
âerrorsâ : [ ],
âwarningâ : âSome checks omitted for speed. use {full:true} option to do more thorough scan.â,
âokâ : 1
}
{
ânsâ : âdeadlinedb.Jobsâ,
âfirstExtentâ : â0:2c000 ns:deadlinedb.Jobsâ,
âlastExtentâ : â0:10e000 ns:deadlinedb.Jobsâ,
âextentCountâ : 2,
âdatasizeâ : 63952,
ânrecordsâ : 4,
âlastExtentSizeâ : 245760,
âpaddingâ : 1.0000000000000027,
âfirstExtentDetailsâ : {
âlocâ : â0:2c000â,
âxnextâ : â0:10e000â,
âxprevâ : ânullâ,
ânsdiagâ : âdeadlinedb.Jobsâ,
âsizeâ : 8192,
âfirstRecordâ : ânullâ,
âlastRecordâ : ânullâ
},
âdeletedCountâ : 10,
âdeletedSizeâ : 189584,
ânIndexesâ : 4,
âkeysPerIndexâ : {
âdeadlinedb.Jobs.$idâ : 4,
âdeadlinedb.Jobs.$LastWriteTime_1â : 4,
âdeadlinedb.Jobs.$Props.Grp_1â : 4,
âdeadlinedb.Jobs.$Props.Pool_1â : 4
},
âvalidâ : true,
âerrorsâ : [ ],
âwarningâ : âSome checks omitted for speed. use {full:true} option to do more thorough scan.â,
âokâ : 1
}
{
ânsâ : âdeadlinedb.LimitGroupsâ,
âfirstExtentâ : â0:78000 ns:deadlinedb.LimitGroupsâ,
âlastExtentâ : â0:78000 ns:deadlinedb.LimitGroupsâ,
âextentCountâ : 1,
âdatasizeâ : 1468,
ânrecordsâ : 4,
âlastExtentSizeâ : 8192,
âpaddingâ : 1.0000000000000022,
âfirstExtentDetailsâ : {
âlocâ : â0:78000â,
âxnextâ : ânullâ,
âxprevâ : ânullâ,
ânsdiagâ : âdeadlinedb.LimitGroupsâ,
âsizeâ : 8192,
âfirstRecordâ : â0:780b0â,
âlastRecordâ : â0:79bfcâ
},
âdeletedCountâ : 17,
âdeletedSizeâ : 6484,
ânIndexesâ : 2,
âkeysPerIndexâ : {
âdeadlinedb.LimitGroups.$idâ : 4,
âdeadlinedb.LimitGroups.$LastWriteTime_1â : 4
},
âvalidâ : true,
âerrorsâ : [ ],
âwarningâ : âSome checks omitted for speed. use {full:true} option to do more thorough scan.â,
âokâ : 1
}
{
ânsâ : âdeadlinedb.PermissionGroupsâ,
âfirstExtentâ : â0:496000 ns:deadlinedb.PermissionGroupsâ,
âlastExtentâ : â0:496000 ns:deadlinedb.PermissionGroupsâ,
âextentCountâ : 1,
âdatasizeâ : 8028,
ânrecordsâ : 1,
âlastExtentSizeâ : 131072,
âpaddingâ : 1,
âfirstExtentDetailsâ : {
âlocâ : â0:496000â,
âxnextâ : ânullâ,
âxprevâ : ânullâ,
ânsdiagâ : âdeadlinedb.PermissionGroupsâ,
âsizeâ : 131072,
âfirstRecordâ : â0:4960b0â,
âlastRecordâ : â0:4960b0â
},
âdeletedCountâ : 1,
âdeletedSizeâ : 122852,
ânIndexesâ : 1,
âkeysPerIndexâ : {
âdeadlinedb.PermissionGroups.$idâ : 1
},
âvalidâ : true,
âerrorsâ : [ ],
âwarningâ : âSome checks omitted for speed. use {full:true} option to do more thorough scan.â,
âokâ : 1
}
{
ânsâ : âdeadlinedb.PulseInfoâ,
âfirstExtentâ : â0:1b000 ns:deadlinedb.PulseInfoâ,
âlastExtentâ : â0:1b000 ns:deadlinedb.PulseInfoâ,
âextentCountâ : 1,
âdatasizeâ : 508,
ânrecordsâ : 1,
âlastExtentSizeâ : 32768,
âpaddingâ : 1.0000000000000004,
âfirstExtentDetailsâ : {
âlocâ : â0:1b000â,
âxnextâ : ânullâ,
âxprevâ : ânullâ,
ânsdiagâ : âdeadlinedb.PulseInfoâ,
âsizeâ : 32768,
âfirstRecordâ : â0:1b2a4â,
âlastRecordâ : â0:1b2a4â
},
âdeletedCountâ : 2,
âdeletedSizeâ : 32068,
ânIndexesâ : 2,
âkeysPerIndexâ : {
âdeadlinedb.PulseInfo.$idâ : 1,
âdeadlinedb.PulseInfo.$LastWriteTime_1â : 1
},
âvalidâ : true,
âerrorsâ : [ ],
âwarningâ : âSome checks omitted for speed. use {full:true} option to do more thorough scan.â,
âokâ : 1
}
{
ânsâ : âdeadlinedb.RepositoryStatisticsâ,
âfirstExtentâ : â0:db000 ns:deadlinedb.RepositoryStatisticsâ,
âlastExtentâ : â0:a29000 ns:deadlinedb.RepositoryStatisticsâ,
âextentCountâ : 3,
âdatasizeâ : 109208,
ânrecordsâ : 374,
âlastExtentSizeâ : 327680,
âpaddingâ : 1,
âfirstExtentDetailsâ : {
âlocâ : â0:db000â,
âxnextâ : â0:955000â,
âxprevâ : ânullâ,
ânsdiagâ : âdeadlinedb.RepositoryStatisticsâ,
âsizeâ : 20480,
âfirstRecordâ : â0:db0b0â,
âlastRecordâ : â0:dfdb0â
},
âdeletedCountâ : 3,
âdeletedSizeâ : 314360,
ânIndexesâ : 1,
âkeysPerIndexâ : {
âdeadlinedb.RepositoryStatistics.$idâ : 374
},
âvalidâ : true,
âerrorsâ : [ ],
âwarningâ : âSome checks omitted for speed. use {full:true} option to do more thorough scan.â,
âokâ : 1
}
{
ânsâ : âdeadlinedb.ScriptInfosâ,
âfirstExtentâ : â0:b2000 ns:deadlinedb.ScriptInfosâ,
âlastExtentâ : â0:b2000 ns:deadlinedb.ScriptInfosâ,
âextentCountâ : 1,
âdatasizeâ : 0,
ânrecordsâ : 0,
âlastExtentSizeâ : 8192,
âpaddingâ : 1,
âfirstExtentDetailsâ : {
âlocâ : â0:b2000â,
âxnextâ : ânullâ,
âxprevâ : ânullâ,
ânsdiagâ : âdeadlinedb.ScriptInfosâ,
âsizeâ : 8192,
âfirstRecordâ : ânullâ,
âlastRecordâ : ânullâ
},
âdeletedCountâ : 1,
âdeletedSizeâ : 8016,
ânIndexesâ : 3,
âkeysPerIndexâ : {
âdeadlinedb.ScriptInfos.$idâ : 0,
âdeadlinedb.ScriptInfos.$ScriptType_1_ScriptName_1â : 0,
âdeadlinedb.ScriptInfos.$EntryTime_1â : 0
},
âvalidâ : true,
âerrorsâ : [ ],
âwarningâ : âSome checks omitted for speed. use {full:true} option to do more thorough scan.â,
âokâ : 1
}
{
ânsâ : âdeadlinedb.SlaveInfoâ,
âfirstExtentâ : â0:2000 ns:deadlinedb.SlaveInfoâ,
âlastExtentâ : â0:4bf000 ns:deadlinedb.SlaveInfoâ,
âextentCountâ : 2,
âdatasizeâ : 19636,
ânrecordsâ : 19,
âlastExtentSizeâ : 212992,
âpaddingâ : 1.0000000000000155,
âfirstExtentDetailsâ : {
âlocâ : â0:2000â,
âxnextâ : â0:4bf000â,
âxprevâ : ânullâ,
ânsdiagâ : âdeadlinedb.SlaveInfoâ,
âsizeâ : 53248,
âfirstRecordâ : â0:aee8â,
âlastRecordâ : â0:e11câ
},
âdeletedCountâ : 64,
âdeletedSizeâ : 245948,
ânIndexesâ : 2,
âkeysPerIndexâ : {
âdeadlinedb.SlaveInfo.$idâ : 19,
âdeadlinedb.SlaveInfo.$LastWriteTime_1â : 19
},
âvalidâ : true,
âerrorsâ : [ ],
âwarningâ : âSome checks omitted for speed. use {full:true} option to do more thorough scan.â,
âokâ : 1
}
{
ânsâ : âdeadlinedb.SlaveReportsâ,
âfirstExtentâ : â0:188000 ns:deadlinedb.SlaveReportsâ,
âlastExtentâ : â1:fc2000 ns:deadlinedb.SlaveReportsâ,
âextentCountâ : 5,
âdatasizeâ : 848812,
ânrecordsâ : 18,
âlastExtentSizeâ : 5242880,
âpaddingâ : 1.0660000000000238,
âfirstExtentDetailsâ : {
âlocâ : â0:188000â,
âxnextâ : â0:1ae000â,
âxprevâ : ânullâ,
ânsdiagâ : âdeadlinedb.SlaveReportsâ,
âsizeâ : 20480,
âfirstRecordâ : â0:188d2câ,
âlastRecordâ : â0:188d2câ
},
âdeletedCountâ : 171,
âdeletedSizeâ : 6133700,
ânIndexesâ : 1,
âkeysPerIndexâ : {
âdeadlinedb.SlaveReports.$idâ : 18
},
âvalidâ : true,
âerrorsâ : [ ],
âwarningâ : âSome checks omitted for speed. use {full:true} option to do more thorough scan.â,
âokâ : 1
}
{
ânsâ : âdeadlinedb.SlaveSettingsâ,
âfirstExtentâ : â0:5b000 ns:deadlinedb.SlaveSettingsâ,
âlastExtentâ : â0:3f2000 ns:deadlinedb.SlaveSettingsâ,
âextentCountâ : 2,
âdatasizeâ : 6480,
ânrecordsâ : 19,
âlastExtentSizeâ : 32768,
âpaddingâ : 1.0450000000000017,
âfirstExtentDetailsâ : {
âlocâ : â0:5b000â,
âxnextâ : â0:3f2000â,
âxprevâ : ânullâ,
ânsdiagâ : âdeadlinedb.SlaveSettingsâ,
âsizeâ : 8192,
âfirstRecordâ : â0:5cd70â,
âlastRecordâ : â0:5cd70â
},
âdeletedCountâ : 31,
âdeletedSizeâ : 33824,
ânIndexesâ : 2,
âkeysPerIndexâ : {
âdeadlinedb.SlaveSettings.$idâ : 19,
âdeadlinedb.SlaveSettings.$LastWriteTime_1â : 19
},
âvalidâ : true,
âerrorsâ : [ ],
âwarningâ : âSome checks omitted for speed. use {full:true} option to do more thorough scan.â,
âokâ : 1
}
{
ânsâ : âdeadlinedb.SlaveStatisticsâ,
âfirstExtentâ : â0:cf000 ns:deadlinedb.SlaveStatisticsâ,
âlastExtentâ : â0:969000 ns:deadlinedb.SlaveStatisticsâ,
âextentCountâ : 4,
âdatasizeâ : 380480,
ânrecordsâ : 2524,
âlastExtentSizeâ : 786432,
âpaddingâ : 1,
âfirstExtentDetailsâ : {
âlocâ : â0:cf000â,
âxnextâ : â0:8b1000â,
âxprevâ : ânullâ,
ânsdiagâ : âdeadlinedb.SlaveStatisticsâ,
âsizeâ : 12288,
âfirstRecordâ : â0:cf0b0â,
âlastRecordâ : â0:d1ee4â
},
âdeletedCountâ : 2,
âdeletedSizeâ : 622912,
ânIndexesâ : 1,
âkeysPerIndexâ : {
âdeadlinedb.SlaveStatistics.$idâ : 2524
},
âvalidâ : true,
âerrorsâ : [ ],
âwarningâ : âSome checks omitted for speed. use {full:true} option to do more thorough scan.â,
âokâ : 1
}
{
ânsâ : âdeadlinedb.Tasksâ,
âfirstExtentâ : â0:14a000 ns:deadlinedb.Tasksâ,
âlastExtentâ : â1:602000 ns:deadlinedb.Tasksâ,
âextentCountâ : 4,
âdatasizeâ : 85228,
ânrecordsâ : 4,
âlastExtentSizeâ : 10223616,
âpaddingâ : 1.00200000000005,
âfirstExtentDetailsâ : {
âlocâ : â0:14a000â,
âxnextâ : â0:3fa000â,
âxprevâ : ânullâ,
ânsdiagâ : âdeadlinedb.Tasksâ,
âsizeâ : 159744,
âfirstRecordâ : ânullâ,
âlastRecordâ : ânullâ
},
âdeletedCountâ : 322,
âdeletedSizeâ : 13492244,
ânIndexesâ : 1,
âkeysPerIndexâ : {
âdeadlinedb.Tasks.$idâ : 4
},
âvalidâ : true,
âerrorsâ : [ ],
âwarningâ : âSome checks omitted for speed. use {full:true} option to do more thorough scan.â,
âokâ : 1
}
{
ânsâ : âdeadlinedb.UserInfoâ,
âfirstExtentâ : â0:e9000 ns:deadlinedb.UserInfoâ,
âlastExtentâ : â0:e9000 ns:deadlinedb.UserInfoâ,
âextentCountâ : 1,
âdatasizeâ : 356,
ânrecordsâ : 4,
âlastExtentSizeâ : 8192,
âpaddingâ : 1,
âfirstExtentDetailsâ : {
âlocâ : â0:e9000â,
âxnextâ : ânullâ,
âxprevâ : ânullâ,
ânsdiagâ : âdeadlinedb.UserInfoâ,
âsizeâ : 8192,
âfirstRecordâ : â0:e90b0â,
âlastRecordâ : â0:e91e8â
},
âdeletedCountâ : 1,
âdeletedSizeâ : 7596,
ânIndexesâ : 1,
âkeysPerIndexâ : {
âdeadlinedb.UserInfo.$idâ : 4
},
âvalidâ : true,
âerrorsâ : [ ],
âwarningâ : âSome checks omitted for speed. use {full:true} option to do more thorough scan.â,
âokâ : 1
}
{
ânsâ : âdeadlinedb.system.indexesâ,
âfirstExtentâ : â0:f000 ns:deadlinedb.system.indexesâ,
âlastExtentâ : â0:f000 ns:deadlinedb.system.indexesâ,
âextentCountâ : 1,
âdatasizeâ : 2448,
ânrecordsâ : 28,
âlastExtentSizeâ : 8192,
âpaddingâ : 1,
âfirstExtentDetailsâ : {
âlocâ : â0:f000â,
âxnextâ : ânullâ,
âxprevâ : ânullâ,
ânsdiagâ : âdeadlinedb.system.indexesâ,
âsizeâ : 8192,
âfirstRecordâ : â0:f0b0â,
âlastRecordâ : â0:fba0â
},
âdeletedCountâ : 1,
âdeletedSizeâ : 5120,
ânIndexesâ : 0,
âkeysPerIndexâ : {
},
"valid" : true,
"errors" : [ ],
"warning" : "Some checks omitted for speed. use {full:true} option to do more thorough scan.",
"ok" : 1
}
[/code]
I unzipped your mongo db, and the total size of the data folder is 256 MB. I also checked those db.stats() calls. Here are the first and last calls:
"db" : "deadlinedb",
"collections" : 18,
"objects" : 3049,
"avgObjSize" : 496.04591669399804,
"dataSize" : 1512444,
"storageSize" : 16084992,
"numExtents" : 36,
"indexes" : 28,
"indexSize" : 441504,
"fileSize" : 117440512,
"nsSizeMB" : 16,
"ok" : 1
"db" : "deadlinedb",
"collections" : 18,
"objects" : 3069,
"avgObjSize" : 772.753339850114,
"dataSize" : 2371580,
"storageSize" : 66998272,
"numExtents" : 41,
"indexes" : 28,
"indexSize" : 441504,
"fileSize" : 251658240,
"nsSizeMB" : 16,
"ok" : 1
Note that these values are in bytes. So from start to finish, the size on disk (âfileSizeâ) went from 117 MB to 252 MB (which basically matches up to the size of the mongo db you posted). Note that this includes pre-allocated space. Actual data usage within that pre-allocated space (âdataSizeâ) went from 1.5 MB to 2.4 MB.
Now I know that seems like Mongo is wasting a lot of space to store that data, but most of it is for pre-allocation. Your database size on disk shouldnât have to grow again until it touches the 128 MB file, at which point it will pre-allocate another 256 MB. This pre-allocation doubles until it hits 2 GB, and then from that point on only 2GB datafiles are created as they are needed.
Can you tell me where youâre pulling the 300 MB number from? Maybe Iâm just misunderstanding somethingâŠ
Cheers,
- Ryan
This morning my total Mongo DB size was 50MB (viewtopic.php?f=86&t=8687&start=10#p36647). Now itâs 350MB on disk (although I see that 70MB of that was app folder so youâre right that was unfair)⊠so 200MB in less than 4 hours. So with 4 jobs and 500 errors it increased in size by 200MB.
We canât have our database using up 2GB of space per week. Weâll need a TB of RAM by the end of the year.
EDIT: Oh I see, on the 64Bit Mongo it doesnât load it all into RAM. Still⊠so we shouldnât run this on an SSD then? How many TBs of space should I install in our system to dedicate to Mongo?
Hey Gavin,
Thatâs right, it doesnât load it all into RAM, and the 32-bit versions limit isnât 2GB of RAM, itâs 2GB on disk.
Also, the disk space that Mongo uses doesnât grow linearly. It grows fast at the beginning as it aggressively pre-allocates disk space for all of the Deadline collections in the database, but that will taper off. There was a point where our 10,000 job database had over 100,000 error reports in it (we had let 4 jobs we knew would never render run for a while, and they each accumulated over 25,000 errors), and we were still at the 1 GB mark on disk.
Also, when stuff is deleted, that space becomes available again. Note that deleting stuff wonât shrink the disk space use, because pre-allocated space isnât deleted, but the space within the pre-allocated space is reusable (I hope that makes sense). So as long as youâre reasonably cleaning up your jobs, you wonât run out of disk space. We are considering putting a cap on the number of reports a job can have if necessary (in which case the oldest reports get replaced by new ones), but weâre not sure if this is necessary at this point.
Hopefully that alleviates your concerns about disk space usage. We will be running more tests, because I want a graph that shows how that disk space increases as the job counts increase.
Cheers,
- Ryan
It sounds like you need to take a look then at my old 2GB database since I suspect there was a bug in the allocation. Itâs nowhere near your limits but twice the size. Could be a landmine waiting to go off that I stumbled on.
We had tried to take a look at it, but it shows up as being empty. Itâs probably a result of the corruption. If your current db grows to over a gig again, please zip it up and post it and weâll take a look. Note that we just need the data folder.
I took a look at the database files themselves, and noticed that it created 3 pre-allocated 512 MB files, rather than creating a 1 GB one. Iâm guessing this is because itâs the 32 bit version. Not sure if thatâs a Mongo bug, since I didnât see any specifics on this working differently for the 32 bit version. Of course, it would be great to see if you see different results with the 64 bit version.
Cheers,
- Ryan
We already have upgrade plans in place but we wonât have specifics mapped out until after the new year.
Hopefully this addresses the concerns about Mongoâs disk space usage for good!
viewtopic.php?f=156&t=8715
Well Mongo on Thursday decided it needed to alocate 1.5GB of space in the course of an hour and is now dead again. Is there a way to purge allocation data without corrupting the database?
Ok I found a solution to this that should last a little while:
Run a repair on it with:
C:\mongo\application\bin\mongod --dbpath C:\monogo\data --repair --noallocation
Then launch it as:
C:\mongo\application\bin\mongod --dbpath C:\monogo\data --noallocation
and it runs. Obviously itâll run slower without preallocation but at least itâll run on a 32 bit machine without dying every other day.
Lower down the page, noprealloc is not recommended for use in production. It will hurt performance somewhat as the files become fragmented.
docs.mongodb.org/manual/faq/stor ⊠-disk-size
I have a feeling smallfiles is set to true for 32-bit systems, causing it to allocate 512MB files.
docs.mongodb.org/manual/referenc ⊠smallfiles
jira.mongodb.org/browse/SERVER-6722
C:\mongo\application\bin\mongod --dbpath C:\monogo\data --noallocation
With these options on 32-bit it will run without journalling, saving some memory. This means data will get lost if mongo crashes.
I hope you can find a 64-bit machine soon!
In the continuous joy that is Mongo on a 32 bit system. Here is another fun one:
Tue Jan 29 01:14:00 [conn20826] end connection 192.168.94.29:49319 (17 connectio
ns now open)
Tue Jan 29 01:14:00 [initandlisten] connection accepted from 192.168.94.29:49537
#20844 (18 connections now open)
Tue Jan 29 01:14:28 [conn20836] info DFM::findAll(): extent 0:2a000 was empty, s
kipping ahead. ns:deadlinedb.Jobs
Tue Jan 29 01:16:51 [conn20828] end connection 192.168.94.29:49346 (17 connectio
ns now open)
Tue Jan 29 01:17:06 [FileAllocator] allocating new datafile C:/mongo/data/deadli
nedb.5, filling with zeroes...
Tue Jan 29 01:17:06 [FileAllocator] creating directory C:/mongo/data/_tmp
Tue Jan 29 01:17:06 [initandlisten] connection accepted from 192.168.94.34:58473
#20845 (18 connections now open)
Tue Jan 29 01:17:07 [initandlisten] connection accepted from 192.168.94.29:49562
#20846 (19 connections now open)
Tue Jan 29 01:17:08 [initandlisten] connection accepted from 192.168.94.33:53358
#20847 (20 connections now open)
Tue Jan 29 01:17:08 [FileAllocator] done allocating datafile C:/mongo/data/deadl
inedb.5, size: 511MB, took 1.649 secs
Tue Jan 29 01:17:08 [conn20836] MapViewOfFileEx for C:/mongo/data/deadlinedb.5 f
ailed with error errno:8 Not enough storage is available to process this command
. (file size is 536608768) in MemoryMappedFile::createPrivateMap
Tue Jan 29 01:17:08 [conn20836] deadlinedb.DeadlineSettings Fatal Assertion 161
67
Tue Jan 29 01:17:08 [conn20836] mongod.exe ???
Tue Jan 29 01:17:08 [conn20836] mongod.exe ???
Tue Jan 29 01:17:08 [conn20836] mongod.exe ???
Tue Jan 29 01:17:08 [conn20836] mongod.exe ???
Tue Jan 29 01:17:08 [conn20836] mongod.exe ???
Tue Jan 29 01:17:08 [conn20836] mongod.exe ???
Tue Jan 29 01:17:08 [conn20836] mongod.exe ???
Tue Jan 29 01:17:08 [conn20836] mongod.exe ???
Tue Jan 29 01:17:08 [conn20836] mongod.exe ???
Tue Jan 29 01:17:08 [conn20836] mongod.exe ???
Tue Jan 29 01:17:08 [conn20836] mongod.exe ???
Tue Jan 29 01:17:08 [conn20836] mongod.exe ???
Tue Jan 29 01:17:08 [conn20836] mongod.exe ???
Tue Jan 29 01:17:08 [conn20836] mongod.exe ???
Tue Jan 29 01:17:08 [conn20836] mongod.exe ???
Tue Jan 29 01:17:08 [conn20836] mongod.exe ???
Tue Jan 29 01:17:08 [conn20836] mongod.exe ???
Tue Jan 29 01:17:08 [conn20836] mongod.exe ???
Tue Jan 29 01:17:08 [conn20836] mongod.exe ???
Tue Jan 29 01:17:08 [conn20836] mongod.exe ???
Tue Jan 29 01:17:08 [conn20836]
***aborting after fassert() failure
Tue Jan 29 01:17:09 [initandlisten] connection accepted from 192.168.94.34:58474
#20848 (21 connections now open)
This was with --noallocation and --journal. Iâll turn off --journal. Maybe that causes conflicts like you say.
Man, we really hope you can get this on a 64 bit system soon!
Just to make it clear, we do not support 32 bit mongo installations in a production environment. This isnât going to change in the future, so the sooner you get on 64 bit, the better!