Freebsd: Calcru Runtime went backwards.

Freebsd: Calcru Runtime went backwards.

wpid-safari-2012-01-14-14-00.png

This error can be triggered by several situations:

  1. the time on your bsd system changes unexpectedly, most likely due to syncing with a overloaded or incorrect Network Time Protocol (NTP) server.
  2. In virtual machines, the cpu units are set too high.
  3. Your processor has SpeedStep technology which dynamically changes cpu speed based on load.
  4. FreeBSD has multiple clocks, and chose the wrong one.

Any one of these solutions has been reported to fix the problem for various people. My recommendation is to try them one at a time.

Solution 1. overloaded or incorrect Network Time Protocol (NTP) server.

Edit the /etc/ntp.conf file to your preferred time server.

Example

        <code>

                server ntplocal.example.com prefer

                server timeserver.example.org

                server ntp2a.example.net

        </code>

wpid-1____safari-2012-01-14-14-00.png

http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/network-ntp.html

        

Solution 2. FreeBSD inside a VM

        Vmware wrote a paper about this issue

        http://www.vmware.com/files/pdf/Timekeeping-In-VirtualMachines.pdf

        If you are running bsd inside a virtual machine, change the cpu units to 100. On Proxmox virtualization software which I use and love, the default cpu unit is 1000.

wpid-safari2-2012-01-14-14-00.png

Solution 3. CPU Speedstep technology

        Open the bios and disable any sort of speedstep technology

Solution 4. FreeBSD multiple clocks

        Your computer has two or more clocks, and FreeBSD has chosen to use the wrong one. (credit given at link)

FreeBSD chooses the clock with the highest Hz quality. To see what clocks are available enter this command:

        <code>

                dmesg | grep Timecounter

        </code>

wpid-safari1-2012-01-14-14-00.png

On my particular system the “High Precision Event Timer” (HPET) was chosen. You can verify this by entering

        <code>

                sysctl kern.timecounter.hardware

        </code>

wpid-2____safari-2012-01-14-14-00.png

http://forums.freebsd.org/archive/index.php/t-2805.html

You can change it with this command

<code>

        sysctl kern.timecounter.hardware=TSC

</code>

http://www.freebsd.org/doc/en_US.ISO8859-1/books/faq/troubleshoot.html#CALCRU-NEGATIVE-RUNTIME

http://forums.citrix.com/thread.jspa?threadID=251939

Advertisements

About spuder
spuder is a "super computer" support engineer by day, and tinkerer / hobbyist by night.

One Response to Freebsd: Calcru Runtime went backwards.

  1. mcdiesel says:

    Thanks, solution 2 works on pfSense on proxmox.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: