Skip to content

u/trapxvi

In this archive from Apr 2012 to Apr 2018

0
posts
25
comments
0
media
57
score

The issue with swapping is that the processes with swapped out memory cannot execute after triggering a page fault. In other words, your application tries to access memory that has been swapped out, and then the kernel stops it cold until the swap in completes.

There are VM tunables related to swap behavior, but nothing like what you want I'm afraid.

2 points

With the --setprovideroutputsource the next argument is the provider you are configuring and the last is the provider acting as the output source. That means that the first id you specify should be that of the card not currently attached to the X display and the second id should be the card on which X initializes itself. You might also need an xorg.conf section to specify your discrete device as the primary for the display before you can attach the discrete as an output slave.

1 points

First, run xrandr --listproviders and make sure that your primary GPU and auxiliary GPU respectively advertise Source Output and Sink Output in their capabilities. If so, cross your fingers and run:

xrandr --setprovideroutputsource <AUX_ID> <PRI_ID>

Where AUX_ID and PRI_ID are the ids listed for the appropriate GPUs.

If that works, you should see the additional outputs of the secondary GPU when you run xrandr -q.

3 points

There's a lesser known form of Verlet integration which I was exposed to in my undergrad in applied math/computational physics which was called "velocity verlet" by the instructor. I haven't seen it discussed since, but I think it's worth knowing about since it keeps the velocity explicit (which makes setting initial conditions more natural and provides traction when extending the method to handle dissipative (velocity-dependent) forces).

Assume the following dynamical equations of motion:

x' = v
v' = f(x)

Expanding these in finite differences:

x_{j+1} = x_j + \Delta^t_j v_j + \frac{(\Delta^t_j)^t}{2}f(x_j)
v_{j+1} = v_j + \frac{\Delta^t_j}{2}(f(x_j) + f(x_{j+1})

That might be kind of confusing, so here's how it works in practice. Each time step repeats the following step (aside from the first, which is only needed to initialize the force field from the initial conditions).

  1. (Initial step only) From the current position x_j calculate the current conservative forces f(x_j).
  2. From the previous information and knowledge of the current velocity, calculate the next position x_{j+1}.
  3. Calculate the conservative forces at the next time step f(x_{j+1}).
  4. Calculate the next velocity.

The important feature of this expression is not that it's accurate to second order, but that it is symplectic. That basically means it preserves important symmetries of the Hamiltonian (which is basically the energy of the system, if you're a physicist you know the whole story and if you're not then you don't care). There's a result in mathematical physics, Noether's Theorem, which relates symmetries in the dynamical structure to conserved quantities. In this case, the crucial symmetry is time reversibility and the conserved quantity is energy. Time reversibility here means that if you take an inverse time step you will recover exactly the previous value state, up to second order.

TL;DR: Verlet integration and its energy conserving properties come from its reversibility, not from the specific dynamics.

10 points

The usual problem with loading the nvidia kernel module is the previous loading of the nouveau driver. The nvidia package provides usr/lib/modprobe.d/nvidia.conf which blacklists the nouveau kernel module. Ensure that you've rebooted after installing it and the nouveau module is not loaded, and if nvidia still won't load you should pursue it on on the forums.

Edit: Here's my xorg.conf for Nvidia in case it's helpful.

# Configure one screen using the two cards in SLI.
# Device that binds both cards into a single SLI triple device.
Section "Device"
  Identifier  "SLI_Triple_Device"
  Driver      "nvidia"
  BusID       "PCI:1:0:0"
  
  Option      "SLI"         "Mosaic"
  Option      "BaseMosaic"  "true"
  Option      "MetaModes"   "GPU-0.DFP-0:1680x1050+0+0,GPU-0.DFP-2:1680x1050+1680+0,GPU-1.DFP-0: 1680x1050+3360+0"
EndSection
# vim: ft=xf86conf sts=2 sw=2 et

Edit 2: If you run [testing] you may install a kernel which broke the ABI of the compiled module package. In this case you will be unable to load the module and dmesg will complain about unresolved symbols.

1 points

Well, you probably don't have SLI working under windows either then. :) The class of multimonitor configurations is a superclass of SLI configurations, and what I'm saying only applies to the latter class.

SLI Mosaic is a feature on high-end Quadro cards to tie them all together into a continuous framebuffer with synchronized refresh. BaseMosaic is Mosaic mode without the frame synchronization between displays, but as far as I know still needs SLI. Try it and see, and if it doesn't work you'll need to either use Nouveau or see if the Xrandr 1.4 providers voodoo I posted works with Nvidia.

The iommu=pt option is required only for the proprietary drivers when using BaseMosaic (and probably other SLI modes). It puts the IOMMU into "passthrough" mode which makes it transparent to communication between the devices; apparently Nvidia doesn't properly configure the memory mappings in their kernel driver for this communication.

1 points

I have a similar setup (modulo 560 Ti) working with both binary Nvidia drivers and the nouveau drivers.

For nouveau, I use xrandr 1.4 providers. For instance:

% xrandr --listproviders
Providers: number : 2
Provider 0: id: 0xb4 cap: 0x7, Source Output, Sink Output, Source Offload crtcs: 2 outputs: 3 associated providers: 1 name:nouveau
Provider 1: id: 0x64 cap: 0x7, Source Output, Sink Output, Source Offload crtcs: 2 outputs: 3 associated providers: 1 name:nouveau
% xrandr --setprovideroutputsource 1 0
% xrandr --output DVI-I-1 --mode 1680x1050                    \
         --output DVI-I-2 --mode 1680x1050 --left-of DVI-I-1  \
         --output DVI-I-3 --mode 1680x1050 --right-of DVI-I-1

For nvidia, use BaseMosaic. You do have an SLI compatible motherboard, an installed SLI bridge, and have booted your kernel with iommu=pt right?

3 points

OpenCL, OpenGL 4.x, video decode, better performance.

The Foss driver will catch up in all those areas but in the mean time its only real advantage is compatibility and desktop acceleration.

2 points

Firstly, it's not as if multiseat management was ever properly working with consolekit. Consolekit was best known for providing the ACLs that let you use sound and video without being a member of the audio or video group, but that system has been in udev forever, and ck basically provided dynamic dbus-based session tracking. That dynamic session tracking duplicates what systemd already does with user instances, so consolekit has been deprecated.

If you want multiseat management, then you need to have the system which assigns ACLs and otherwise manages system devices (udev/systemd) tightly integrated with the login system. Certain USB ports are associated with seats, devices which match those ports then get assigned an ACL permitting access to whoever is logged in at that seat. It sounds simple but it's very hard with classical bsd/sysv style init systems (they're not all that different). Consolekit and Udev made attempts to solve that problem.

3 points

In KDE's case, a dependency on libsystemd won't be too invasive since it will be moving to core at some point soon and is inert unless the system was booted with systemd. Basically the app makes a call to libsystemd which says "sorry boss, no systemd running" and the app moves on to its legacy mode.

In Gnome's case, they're talking about using systemd's user instances to take over their session management.

This works. I use systemd's --user mode to start xmonad, nitrogen, xcompmgr, redshift, etc, on login.

4 points

If you want built-in multiseat handling with proper security lockdown (e.g., alice when logged into seat A can access the USB stick she has plugged into port X but not the camera bob has plugged into port Y on seat B) then systemd will be unavoidable. If you don't care about this, then old-fashioned boot scripts should remain adequate.

7 points

End of this list.

Back to top

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.