Commit Graph

10846 Commits

Author SHA1 Message Date
Anthony G. Basile
20a05c562a hwdb: update
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2016-05-10 07:57:32 -04:00
Murray Calavera
11cc291a3b shared: remove unused file exit-status
Signed-off-by: Murray Calavera <murray.calavera@gmail.com>
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2016-04-24 11:51:51 -04:00
Murray Calavera
d7072e1631 shared: remove unused function execute_command
Signed-off-by: Murray Calavera <murray.calavera@gmail.com>
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2016-04-24 11:51:28 -04:00
Anthony G. Basile
7f4f5b7dba src/shared/util.c: fix typo
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2016-03-21 11:54:57 -04:00
Anthony G. Basile
0fe32c8006 src/shared/util.c: add fallback for ppoll(), issue #129.
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2016-03-21 10:58:31 -04:00
Anthony G. Basile
1e521c3cf1 configure.ac: fix some white space
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2016-03-21 09:51:40 -04:00
Anthony G. Basile
25a718a138 hwdb: update
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2016-03-21 09:12:21 -04:00
Anthony G. Basile
4b6c99d7e5 configure.ac: use automake 1.11 2016-02-28 17:31:02 -05:00
Anthony G. Basile
754c98e8df configure.ac: we don't need xsltproc, but making doc's does 2016-02-28 14:45:12 -05:00
Anthony G. Basile
9caac1075e README.md: update for travis-ci 2016-02-28 14:35:29 -05:00
Anthony G. Basile
416e5ad886 travis.yml: we don't need gtk-doc-tools anymore 2016-02-27 03:04:50 -05:00
Anthony G. Basile
f33b94c6ab gitignore: ignore write_net_rules 2016-02-27 03:01:47 -05:00
Anthony G. Basile
7f3b6d02cc hwdb: update 2016-02-27 02:57:08 -05:00
Richard Narron
71ff5b6886 src/udev/udevd.c: add eudev startup message for kmsg
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2015-11-22 02:27:58 -05:00
Anthony G. Basile
57a0fdeeec Merge pull request #125 from rworkman/trivial
Remove obsolete udev_root references
2015-11-16 17:12:42 -05:00
Robby Workman
26b8f53163 Remove obsolete udev_root references
This was removed in 6ada823a9a
2015-11-15 15:11:13 -06:00
Anthony G. Basile
4ea0be0484 Update .travis.yml 2015-10-13 02:06:53 -04:00
Anthony G. Basile
ff28cff516 configure.ac: bump 3.1.5 = upstream 220 2015-10-13 02:00:05 -04:00
Anthony G. Basile
3677c2e3ae hwdb and rules: import changes from upstream. 2015-10-12 06:43:45 -04:00
Ian Stakenvicius
305f0eef4d Forward-ported network rule-generator code from eudev-1.10 2015-09-25 12:38:07 -04:00
Anthony G. Basile
389b9ce228 Revert "udevd: warn if we receive SIGCHLD from untracked worker"
This reverts commit 75e930ed64.

This fixes issue #121.

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2015-09-11 14:56:07 -04:00
blueness
696a663370 Merge pull request #123 from gentoo/nonrot
Solid state drives should use noop IO elevator
2015-09-11 14:45:41 -04:00
blueness
0cc8789c71 Merge pull request #122 from RomainNaour/musl-fixes
Musl fixes
2015-09-11 14:44:10 -04:00
blueness
6de52b4e64 Merge pull request #124 from rcsheets/debug-output-spacing-fix
Add missing space between filename and error message
2015-09-11 14:42:27 -04:00
Robert C. Sheets
55015c019d Add missing space between filename and error message 2015-09-08 02:12:10 -07:00
Richard Yao
b38f3aaba1 Solid state drives should use noop IO elevator
It is often suggested that users set noop on SSDs and it turns out that
udev can do this for users.

Setting noop disables the IO priorization and IO reordering logic inside
the kernel, but leaves front/back merging in place. This reduction in
overhead should increase the number of requests sent to solid state
media to the maximum possible,which is said to improve performance on
SSDs. Unfortunately, few benchmarks try real world work loads with a
clear cache to measure the actual difference.

The benchmarks conducted by Daniel Nashed cleared the cache. They favor
noop, although the workload seems somewhat unrealistic:

http://blog.nashcom.de/nashcomblog.nsf/dx/linux-io-performance-tweek.htm

The BFQ developers' benchmarks on SSDs appear to account for both. They
show noop as being far better than CFQ and second only to BFQ, which is
out of tree:

https://lwn.net/Articles/600366/

In addition, I have experienced lockup-like effects on ext4 on an OCZ
Vertex 2 SSD with the discard mount option enabled when recursively
unlinking a subdirectory path that contains millions of files. The
system was useless for hours. Setting noop allowed the unlink to finish
in minutes. This is because the reordering from CFQ interleaved the
TRIM command with write IOs, effectively putting barriers between them
because because TRIM is a non-queued command prior to SATA 3.1.

A good default should perform well in general and have the property that
poor performance in the worst case scenarios is minimized. The
previous examples contradict CFQ's ability to achieve that on solid
state media.

I believe that we should implement a udev rule to set noop on solid
state media by default. It should be said that Milan Broz wrote it
first, although there is only one way to write this rule in a manner
consistent with the codebase:

http://permalink.gmane.org/gmane.linux.kernel.device-mapper.dm-crypt/6045

It should be said that this will be a regression for those that rely on
the "Block IO Controller" cgroup because it is only supported by CFQ
when CONFIG_CFQ_GROUP_IOSCHED=y. My experience as a ZoL developer is
that very few users rely on this behavior and consequently, I believe
that the benefit from enabling this far outweighs the harm to the few
that need it. Those that do need it should be able to disable this rule
themselves. Container management software that expects the Block IO
Controller to be supported should be modified to enable CFQ explicitly
if it does not already do that.

This has been tested against both a SATA mechanical drive and a SATA
solid state drive. It changes the elevator to noop on the solid state
drive, but does not touch it on the mechanical drive.

Signed-off-by: Richard Yao <ryao@gentoo.org>
2015-08-29 15:21:44 -04:00
Romain Naour
0e2be0c217 build-sys: check for strndupa
strndupa is a GNU extension, therefore it's not available
for all libc libraries (musl).

This patch is based on the one proposed by Emil Renner Berthing for
systemd [1].

[1] http://lists.freedesktop.org/archives/systemd-devel/2014-September/023190.html

Signed-off-by: Romain Naour <romain.naour@openwide.fr>
2015-07-31 14:57:27 +02:00
Romain Naour
24ccb6ebc5 build-sys: check for mallinfo
mallinfo is not specified by POSIX or the C standards, therefore
it's not available for all libc libraries (musl).

Add the ability to disable mallinfo statistics.

Fixes:
selinux-util.c: In function ‘mac_selinux_init’:
selinux-util.c:70:25: error: storage size of ‘before_mallinfo’ isn’t known
         struct mallinfo before_mallinfo, after_mallinfo;

Signed-off-by: Romain Naour <romain.naour@openwide.fr>
2015-07-31 14:49:20 +02:00
Tom Gundersen
019c458afe udevd: don't unref worker objects on SIGSTOP/SIGCONT
We should not be receiving these anyway, but let's be correct.

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2015-07-20 10:00:52 -04:00
Tom Gundersen
75e930ed64 udevd: warn if we receive SIGCHLD from untracked worker
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2015-07-20 09:52:44 -04:00
Anthony G. Basile
2cf24b3978 libudev: fix commit 3df6350
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2015-07-20 09:49:29 -04:00
Tom Gundersen
f4e9270310 libudev: monitor - set nl_pid when reusing fd in udev_monitor_new_from_netlink_fd
This allows a fd to be created and configured as part of one monitor, to be passed in
to create a second monitor without having to redo any of the configuration.

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2015-07-20 09:26:56 -04:00
Tom Gundersen
3df635050b sd-device: get_subsystem - don't complain if a device does not have a subsystem
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2015-07-20 09:25:52 -04:00
Anthony G. Basile
8ba53c912b skip: udevd: manager - move a few global variables into the Manager object
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2015-07-20 09:22:48 -04:00
Anthony G. Basile
252150e181 src/gudev: remove Gobject libudev support.
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2015-07-20 08:42:01 -04:00
Anthony G. Basile
1b6370e74b docs: remove gtk-docs.
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2015-07-20 08:33:47 -04:00
Anthony G. Basile
9cb37638de rules: import 20-net-ifname.hwdb from upstream.
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2015-07-20 08:20:16 -04:00
Marcel Holtmann
3792b2d508 hwdb: Update database of Bluetooth company identifiers
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2015-07-20 08:15:31 -04:00
Kay Sievers
871ed1d9f7 hwdb: update
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2015-07-20 08:14:29 -04:00
Peter Hutterer
af535a4466 hwdb: move a couple of entries to expected sort order
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2015-07-20 08:12:23 -04:00
Peter Hutterer
d5ffc84249 hwdb: add Logitech MX Revolution
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2015-07-20 08:11:13 -04:00
Lennart Poettering
d67ff38fd4 hwdb: update databases from upstream
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2015-07-20 08:10:33 -04:00
Marcel Holtmann
532135e20c hwdb: Update database of Bluetooth company identifiers
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2015-07-20 08:09:55 -04:00
Mario Limonciello
4c3c4bc941 hwdb: add support for Alienware graphics amplifier
Unplugging and plugging in the cable will create various scancodes
on the keyboard controller.

Userspace within X should be able to interact with these to show
interesting messages. Assign them to generic prog1/prog2.

(David: add comment to hwdb explaining that these keycodes are reserved)

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2015-07-20 08:09:21 -04:00
dslul
37f3e3b0f7 keymap: Add Samsung NP350V and NP670Z
typo

keymap: Add Samsung NP350V and NP670Z

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2015-07-20 08:08:42 -04:00
Peter Hutterer
43b1c1c4e8 hwdb: update Logitech's unifying receiver devices
Since 3.19, the devices have the proper vid/pid and the model number in the
name.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2015-07-20 08:08:04 -04:00
Peter Hutterer
a3d396fd36 hwdb: add Logitech TrackMan Marble Wheel USB
DPI is guesswork, no specs found on the web and calculating DPIs on a
trackball is tedious.

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2015-07-20 08:07:27 -04:00
Peter Hutterer
62485d6d1c hwdb: add Apple MagicMouse entry 2015-07-20 08:06:45 -04:00
Kay Sievers
deccfc8b10 hwdb: update
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2015-07-20 08:05:47 -04:00
Marcel Holtmann
cead3921ab hwdb: Update database of Bluetooth company identifiers
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2015-07-20 08:05:00 -04:00