https://redmine.pfsense.org/https://redmine.pfsense.org/favicon.ico?16780521162021-07-23T14:42:05ZpfSense bugtrackerpfSense - Todo #12145: Convert RAM disks to ``tmpfs``https://redmine.pfsense.org/issues/12145?journal_id=552152021-07-23T14:42:05ZJim Pingle
<ul></ul><p>One additional item I found is needed: In <a class="source" href="https://redmine.pfsense.org/projects/pfsense/repository/2/entry/usr/local/www/includes/functions.inc.php#L163">source:usr/local/www/includes/functions.inc.php#L163</a> <code>df -Tht</code> is executed and passed the filesystem types to filter, <code>tmpfs</code> will need added to that list.</p> pfSense - Todo #12145: Convert RAM disks to ``tmpfs``https://redmine.pfsense.org/issues/12145?journal_id=558132021-08-18T14:24:41ZJim Pingle
<ul><li><strong>Description</strong> updated (<a title="View differences" href="/journals/55813/diff?detail_id=46086">diff</a>)</li><li><strong>Assignee</strong> set to <i>Jim Pingle</i></li><li><strong>% Done</strong> changed from <i>0</i> to <i>20</i></li></ul><p>Updated the diff for testing but hit another thing we need to account for.</p>
<p>Currently we check if there is sufficient kernel memory for use by the memory disks. tmpfs does not use kernel memory, so it doesn't suffer the same restrictions, but we still need to make sure there is sufficient RAM to host the tmpfs disks.</p>
<p>Currently we calculate based on the value of <code>vm.kmem_map_free</code> (value in bytes), but this should be changed to <code>vm.stats.vm.v_free_count</code> (# of free pages) multiplied by <code>vm.stats.vm.v_page_size</code> (page size in bytes). This size check is performed in two files: <a class="source" href="https://redmine.pfsense.org/projects/pfsense/repository/2/entry/src/etc/rc.ramdisk_functions.sh#L82">source:src/etc/rc.ramdisk_functions.sh#L82</a> and <a class="source" href="https://redmine.pfsense.org/projects/pfsense/repository/2/entry/src/usr/local/pfSense/include/www/system_advanced_misc.inc">source:src/usr/local/pfSense/include/www/system_advanced_misc.inc</a> (multiple places, search for <code>available_kernel_memory</code>)</p> pfSense - Todo #12145: Convert RAM disks to ``tmpfs``https://redmine.pfsense.org/issues/12145?journal_id=558422021-08-19T14:05:08ZJim Pingle
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>Feedback</i></li><li><strong>% Done</strong> changed from <i>20</i> to <i>100</i></li></ul><p>Applied in changeset <a class="changeset" title="Convert RAM disks to tmpfs. Implements #12145" href="https://redmine.pfsense.org/projects/pfsense/repository/2/revisions/d566427f1b210e9ce08ed9be376b0919c113e83b">d566427f1b210e9ce08ed9be376b0919c113e83b</a>.</p> pfSense - Todo #12145: Convert RAM disks to ``tmpfs``https://redmine.pfsense.org/issues/12145?journal_id=558662021-08-20T09:05:00ZJim Pingle
<ul><li><strong>Status</strong> changed from <i>Feedback</i> to <i>In Progress</i></li></ul><p>Systems using RAM disks are good now, but on systems not using RAM disks, /var/run is still using md/ufs.</p> pfSense - Todo #12145: Convert RAM disks to ``tmpfs``https://redmine.pfsense.org/issues/12145?journal_id=558682021-08-20T09:20:09ZJim Pingle
<ul><li><strong>Status</strong> changed from <i>In Progress</i> to <i>Feedback</i></li></ul><p>Applied in changeset <a class="changeset" title="Change /var/run to tmpfs. Implements #12145" href="https://redmine.pfsense.org/projects/pfsense/repository/2/revisions/3ff300c630e9decc06d7640136260d07ad566c19">3ff300c630e9decc06d7640136260d07ad566c19</a>.</p> pfSense - Todo #12145: Convert RAM disks to ``tmpfs``https://redmine.pfsense.org/issues/12145?journal_id=558832021-08-21T14:29:41ZLoh Phat
<ul></ul><p>Would anything need to change in the dashboard UI code to display tempfs vs ufs where appropriate, or is it already dynamic?</p> pfSense - Todo #12145: Convert RAM disks to ``tmpfs``https://redmine.pfsense.org/issues/12145?journal_id=558962021-08-23T07:20:28ZJim Pingle
<ul></ul><p>Darin May wrote in <a href="#note-6">#note-6</a>:</p>
<blockquote>
<p>Would anything need to change in the dashboard UI code to display tempfs vs ufs where appropriate, or is it already dynamic?</p>
</blockquote>
<p>That's already covered in the commits made to implement this change.</p> pfSense - Todo #12145: Convert RAM disks to ``tmpfs``https://redmine.pfsense.org/issues/12145?journal_id=569922021-10-27T11:58:20ZJim Pingle
<ul><li><strong>Plus Target Version</strong> changed from <i>21.09</i> to <i>22.01</i></li></ul> pfSense - Todo #12145: Convert RAM disks to ``tmpfs``https://redmine.pfsense.org/issues/12145?journal_id=584802022-01-21T09:09:37ZJim Pingle
<ul><li><strong>Status</strong> changed from <i>Feedback</i> to <i>Resolved</i></li></ul><p>This has been working well since it went in, no sign of problems thus far.</p>