Nvidia Graphics Driver – Virtual Memory Bug

I’ve faced a really nasty bug.

My Environment:
– Windows 10, Intel i7 CPU, Nvidia GTX 1070 TI, newest drivers, 8 GB RAM
– Windows 10, 2x Intel Xeon, Nvidia GTX 980, newest drivers, 92 GB RAM

The symptoms ..
…in Firefox:
After some time browsing or even faster caused on youtube.. firefox flickers black/white.. if you minimize it.. its fine again.. if you reopen it.. the browser crashes.. eventually the graphics driver crashes.. you end up in a 800×600 resolution or a black screen where you only can press the reset/power button.

…in Photoshop or Lightroom:
you watch some photos… the application stops reacting.. the graphics driver crashes.. you end up in a 800×600 resolution

 

What happened here?

First question was.. has something changed on my system?
I have lost access to a data harddisk where my Virtual Memory was on.
After the D:\ drive has gone.. windows didn’t set it back to auto.

I’ve experienced the same problem with a rendering pc which has 192 GB RAM.. I’ve set the virtual memory manually to disabled.. since RAM is faster than SSD.. so why use virtual memory here?

Problem:

Several Applications seem to need Virutal Memory!
eg. Photoshop, Lightroom, Firefox, Nvidia Graphics drivers

The nasty thing is.. you applications don’t say anything about Memory issues.

Photoshop doesn’t work if you set VRAM to 0 MB.. it tells you, without VRAM it won’t work. But in this case: Windows had somehow set the value to 4 MB.. so there was no Memory error.

Steps I took, which didn’t help:

 

The one and only solution:

Give Windows that damn Virtual Memory.

 

TL;DR:

Windows10 Applications and Graphics drivers crash because the want Virtual Memory no matter how much Physical Memory you have or if you have enough reserve.

=> Set in you system performance settings a Virtual RAM

Optimize the Paging File in Windows 7/8/8.1
HowTo set the Virtual Memory

freebsd pkg_add failed: no solution yet

I was trying to install sqlite3 on a really old freebsd 🙁
I'm got the following error

[root@fbd01 ]# pkg_add -r -v databases/sqlite3

scheme:   [ftp]
user:     []
password: []
host:     [ftp.freebsd.org]
port:     [0]
document: [/pub/FreeBSD/ports/i386/packages-6.3-release/Latest/databases/sqlite3.tbz]
---> ftp.freebsd.org:21
looking up ftp.freebsd.org
connecting to ftp.freebsd.org:21
<<< 220 This is ftp0.bme.freebsd.org - hosted at Bytemark.co.uk
>>> USER anonymous
<<< 331 Please specify the password.
>>> PASS degnetnoc@mail05.viruscheckservice.de
<<< 230-
<<< 230-This is ftp0.bme.FreeBSD.org, graciously hosted by Bytemark.
<<< 230-
<<< 230-FreeBSD files can be found in the /pub/FreeBSD directory.
<<< 230-
<<< 230 Login successful.
>>> PWD
<<< 257 "/" is the current directory
>>> CWD pub
<<< 250 Directory successfully changed.
>>> CWD FreeBSD
<<< 250-ISO images of FreeBSD releases may be found in the releases/ISO-IMAGES
<<< 250-directory.  For independent files and tarballs, see individual
<<< 250-releases/${machine}/${machine_arch} directories.  For example,
<<< 250-releases/amd64/amd64 and releases/powerpc/powerpc64.
<<< 250 Directory successfully changed.
>>> CWD ports
<<< 250 Directory successfully changed.
>>> CWD i386
<<< 550 Failed to change directory.
Error: FTP Unable to get ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-6.3-release/Latest/databases/sqlite3.tbz: File unavailable (e.g., file not found, no access)
pkg_add: unable to fetch 'ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-6.3-release/Latest/databases/sqlite3.tbz' by URL
pkg_add: 1 package addition(s) failed

Changing to a working repo

export PACKAGESITE="ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-9-stable/Latest/"

make error

okay.. it had different errors.. thats another one .. the make is too old

[root@fbd01 /usr/ports/devel/bmake]# make

"/usr/ports/Mk/bsd.port.mk", line 1038: Need an operator
Unknown modifier 't'
Unknown modifier 't'
Unknown modifier 't'
Unknown modifier 't'
Unknown modifier 't'
Unknown modifier 't'
Unknown modifier 't'
Unknown modifier 't'
Unknown modifier 't'
Unknown modifier 't'
Unknown modifier 't'
Unknown modifier 't'
Unknown modifier 't'
Unknown modifier 't'
Unknown modifier 't'
Unknown modifier 't'
Unknown modifier 't'
Unknown modifier 't'

18 open conditionals:
                           at line 20 (skipped)
                          at line 20 (skipped)
                         at line 20 (skipped)
                        at line 20 (skipped)
                       at line 20 (skipped)
                      at line 20 (skipped)
                     at line 20 (skipped)
                    at line 20 (skipped)
                   at line 20 (skipped)
                  at line 20 (skipped)
                 at line 20 (skipped)
                at line 20 (skipped)
               at line 20 (skipped)
              at line 20 (skipped)
                          at line 20 (evaluated to false)
                         at line 13 (evaluated to true)
                        at line 1110 (evaluated to true)
                       at line 1094 (evaluated to true)
make: fatal errors encountered -- cannot continue

but the make was broken

So I tried to install a newer make

pkg_add -r bmake 

the harder way:

pkg_add -r http://ftp-archive.freebsd.org/pub/FreeBSD-Archive/ports/i386/packages-9.0-release/devel/bmake-20111111.tbz
cp /usr/bin/make /usr/bin/make.old
rm /usr/bin/make
ln -sv /usr/local/bin/bmake /usr/bin/make

In case nothing worked like for me .. going the whole long way
I tried getting the lastest old ports

wget http://ftp.freebsd.org/pub/FreeBSD/ports/ports/ports.tar.gz

Search inside a tar.gz for a file/folder

tar -tvf ports.tar.gz '*bmake*'

-rw-r--r--  0 archive archive   499 Jul 14  2016 ports/cad/linuxcnc-devel/files/patch-src_hal_components_Submakefile
drwxr-xr-x  0 archive archive     0 Dec  1 02:04 ports/devel/bmake/
-rw-r--r--  0 archive archive   140 Jan 23  2014 ports/devel/bmake/pkg-plist
-rw-r--r--  0 archive archive  1520 Dec  1 02:04 ports/devel/bmake/Makefile
-rw-r--r--  0 archive archive   288 Dec  1 02:04 ports/devel/bmake/distinfo
-rw-r--r--  0 archive archive   241 Jan 23  2014 ports/devel/bmake/pkg-descr
-rw-r--r--  0 archive archive   596 Jul 30  2014 ports/math/blocksolve95/files/patch-bmake__common
-rw-r--r--  0 archive archive  1209 Aug 24  2014 ports/math/blocksolve95/files/patch-bmake__freebsd__freebsd.site
-rw-r--r--  0 archive archive  1028 Aug 24  2014 ports/math/blocksolve95/files/patch-bmake__freebsd__freebsd
-rw-r--r--  0 archive archive   349 Jul 30  2014 ports/math/blocksolve95/files/patch-bmake__freebsd__freebsd.O

unpack only one folder/file from tar.gz

tar -xvf ports.tar.gz ports/devel/bmake/

unpack .txz files

xz -d < file.tar.xz | tar xvf -

No solution found yet.
If you have another idea that might work,
write in the comments or send me an email


If you want more FreeBSD info on Ports
I found a nice "Porter's Handbook"

https://www.freebsd.org/doc/en/books/porters-handbook/

Here are some links that helped me out:

https://rtfm.co.ua/usrportsmkbsd-sites-mk-line-958-malformed-conditional/
https://rtfm.co.ua/error-unable-to-get-ftpftp-freebsd-orgpubfreebsdportsi386packages-9-0-release/