1 |
On 4/23/06, Kyle Lutze <kyle@×××××××××××.com> wrote: |
2 |
> Mark Knecht wrote: |
3 |
> > The capabilities module was for 2.4 series kernel only. To get |
4 |
> > realtime performance with 2.6 you only need realtime-lsm. |
5 |
> > |
6 |
> > Load realtime-lsm then, with a user account that is part of your |
7 |
> > realtime group, start Jack using qjackctl with realtime enabled on the |
8 |
> > setup page. |
9 |
> > |
10 |
> > Hope this helps, |
11 |
> > Mark |
12 |
> > |
13 |
> |
14 |
> that's interesting to know, but I still have the other issue when |
15 |
> realtime-lsm is loaded |
16 |
> |
17 |
> cannot lock down memory for RT thread (Cannot allocate memory) |
18 |
> cannot use real-time scheduling (FIFO at priority 9) [for thread |
19 |
> 1082132816, from thread 1082132816] (1: Operation not permitted) |
20 |
|
21 |
Nominally this would mean that either |
22 |
|
23 |
1) realtime-lsm isn't really loaded |
24 |
2) there isn't enough memory to lock down |
25 |
3) the user is not part of the realtime group |
26 |
|
27 |
We need to investigate how you built Jack, how Jack is using memory & |
28 |
how you're running Jack. Here's some stuff that's probably important: |
29 |
|
30 |
lightning ~ # emerge -pv jack-audio-connection-kit |
31 |
|
32 |
These are the packages that I would merge, in order: |
33 |
|
34 |
Calculating dependencies ...done! |
35 |
[ebuild R ] media-sound/jack-audio-connection-kit-0.100.7-r1 |
36 |
+alsa (-altivec) -caps (-coreaudio) -debug -doc +jack-tmpfs (-mmx) |
37 |
-netjack -oss -portaudio +sndfile (-sse) 22 kB |
38 |
|
39 |
Total size of downloads: 22 kB |
40 |
lightning ~ # |
41 |
|
42 |
|
43 |
lightning ~ # lsmod |
44 |
Module Size Used by |
45 |
<SNIP> |
46 |
realtime 9672 0 |
47 |
<SNIP> |
48 |
lightning ~ # |
49 |
|
50 |
lightning ~ # modinfo realtime |
51 |
filename: /lib/modules/2.6.16-gentoo-r2/extra/realtime.ko |
52 |
license: GPL |
53 |
description: Realtime Capabilities Security Module |
54 |
vermagic: 2.6.16-gentoo-r2 preempt gcc-3.4 |
55 |
license: GPL |
56 |
description: Standard Linux Common Capabilities Security Module |
57 |
depends: |
58 |
vermagic: 2.6.16-gentoo-r2 preempt gcc-3.4 |
59 |
parm: any: grant realtime privileges to any process. (int) |
60 |
parm: gid: the group ID with access to realtime privileges. (int) |
61 |
parm: mlock: enable memory locking privileges. (int) |
62 |
lightning ~ # |
63 |
|
64 |
lightning ~ # cat /etc/modules.autoload.d/kernel-2.6 |
65 |
# /etc/modules.autoload.d/kernel-2.6: kernel modules to load when system boots. |
66 |
# |
67 |
# Note that this file is for 2.6 kernels. |
68 |
# |
69 |
# Add the names of modules that you'd like to load when the system |
70 |
# starts into this file, one per line. Comments begin with # and |
71 |
# are ignored. Read man modules.autoload for additional details. |
72 |
|
73 |
# For example: |
74 |
# 3c59x |
75 |
#fglrx |
76 |
radeon |
77 |
snd-intel8x0 |
78 |
snd-hdsp |
79 |
ieee1394 |
80 |
ohci1394 |
81 |
sbp2 serialize_io=0 |
82 |
realtime gid=600 any=1 |
83 |
lightning ~ # |
84 |
|
85 |
lightning ~ # cat /etc/fstab | grep jack |
86 |
none /tmp/jack tmpfs defaults 0 0 |
87 |
lightning ~ # |
88 |
|
89 |
>From my kernel config: |
90 |
|
91 |
# |
92 |
# Security options |
93 |
# |
94 |
# CONFIG_KEYS is not set |
95 |
CONFIG_SECURITY=y |
96 |
# CONFIG_SECURITY_NETWORK is not set |
97 |
CONFIG_SECURITY_CAPABILITIES=m |
98 |
# CONFIG_SECURITY_ROOTPLUG is not set |
99 |
# CONFIG_SECURITY_SECLVL is not set |
100 |
|
101 |
|
102 |
> |
103 |
> and that's with realtime selected in qjackctl. |
104 |
> |
105 |
> so what took the place of capabilities in 2.6? |
106 |
|
107 |
LSM, and with it realtime-lsm |
108 |
|
109 |
- Mark |
110 |
|
111 |
-- |
112 |
gentoo-amd64@g.o mailing list |