Skip to content

Commit

Permalink
move the ram thing down so dependency still top
Browse files Browse the repository at this point in the history
  • Loading branch information
jasondaming committed Jan 17, 2024
1 parent 3b173d6 commit 6200979
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions source/docs/yearly-overview/known-issues.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,6 @@ This article details known issues (and workarounds) for FRC\ |reg| Control Syste
Open Issues
-----------

Driver Station Reports Less Free RAM then is Available
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

**Issue:** The Driver Station diagnostic screen reports free RAM that is misleadingly low. This is due to Linux's use of memory caches. Linux will cache data in memory, but then relinquish when the robot programs requests more memory. The Driver Station only reports memory that isn't used by caches.

**Workaround:** The true memory available to the robot program is available in the file ``/proc/meminfo``. :doc:`Use ssh to connect to the robot </docs/software/roborio-info/roborio-ssh>`, and run ``cat /proc/meminfo``.

.. code-block:: text
MemTotal: 250152 kB
MemFree: 46484 kB
MemAvailable: 126956 kB
The proper value to look is as MemAvailable, rather then MemFree (which is what the driver station is reporting).

Visual Studio Code Reports Unresolved Dependency
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Expand All @@ -46,6 +31,21 @@ On Linux/macOS execute the following:
After running those, you’ll need to refresh Java intellisense in VS Code for it to pick up the new files. You can do so by running the ``Clean Java Language Server Workspace`` command in VS Code.

Driver Station Reports Less Free RAM then is Available
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

**Issue:** The Driver Station diagnostic screen reports free RAM that is misleadingly low. This is due to Linux's use of memory caches. Linux will cache data in memory, but then relinquish when the robot programs requests more memory. The Driver Station only reports memory that isn't used by caches.

**Workaround:** The true memory available to the robot program is available in the file ``/proc/meminfo``. :doc:`Use ssh to connect to the robot </docs/software/roborio-info/roborio-ssh>`, and run ``cat /proc/meminfo``.

.. code-block:: text
MemTotal: 250152 kB
MemFree: 46484 kB
MemAvailable: 126956 kB
The proper value to look is as MemAvailable, rather then MemFree (which is what the driver station is reporting).

Driver Station Reporting No Code
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Expand Down

0 comments on commit 6200979

Please sign in to comment.