Freesco, NND, CDN, EOS

http://www.freesco.pl
Dzisiaj jest piątek, 29 marca 2024, 08:36

Strefa czasowa UTC+2godz.




Nowy temat Odpowiedz w temacie  [ Posty: 8 ] 
Autor Wiadomość
Post: sobota, 23 stycznia 2010, 19:10 
Offline
PGF

Rejestracja: sobota, 15 marca 2003, 13:54
Posty: 2780
Jak przypisać konkretny proces do wybranego procesora?

_________________
Internet TV telefon - Nakło nad Notecią
NoNieno.pl - urywa gacie :)
Szybkie kobiety i piękne samochody


Na górę
 Wyświetl profil  
 
 Tytuł:
Post: sobota, 23 stycznia 2010, 19:16 
Offline
Użytkownik

Rejestracja: środa, 8 czerwca 2005, 19:39
Posty: 571
Potrzebny jest pakiet o nazwie schedutils
Następnie:
: [/] [] ()
# taskset -c 1 -p 12345
# taskset -c 1,2,3,4 -p 54321

gdzie
-c - procesor (1...n)
-p - pid

_________________
| ArchLinux X64 2.6.29-6 (Custom) @ IBM eServer 235
| Intel Xeon 2,4GHz (x2) : 2GB RAM : 2x36GB SCSI (RAID1)
| httpd2.6 mysql exim dhcpd named proftpd stats niceshaper06
| WAN: 35|35 mb/s (GTS) @ 500+ hosts


Na górę
 Wyświetl profil  
 
 Tytuł:
Post: sobota, 23 stycznia 2010, 22:13 
Offline
PGF

Rejestracja: sobota, 15 marca 2003, 13:54
Posty: 2780
barte-k pisze:
Potrzebny jest pakiet o nazwie schedutils
Następnie:
: [/] [] ()
# taskset -c 1 -p 12345
# taskset -c 1,2,3,4 -p 54321

gdzie
-c - procesor (1...n)
-p - pid


W paczce nie ma czegoś takiego jak taskset, nie ma też tego polecenia jako opcji. Czego nie rozumiem z tego opisu? :roll:

_________________
Internet TV telefon - Nakło nad Notecią
NoNieno.pl - urywa gacie :)
Szybkie kobiety i piękne samochody


Na górę
 Wyświetl profil  
 
 Tytuł:
Post: niedziela, 24 stycznia 2010, 00:06 
Offline
Użytkownik

Rejestracja: środa, 8 czerwca 2005, 19:39
Posty: 571
Paczka zawierająca taskset nazywa się teraz utils-linux-ng. Wybacz, nie śledzę tego.

_________________
| ArchLinux X64 2.6.29-6 (Custom) @ IBM eServer 235
| Intel Xeon 2,4GHz (x2) : 2GB RAM : 2x36GB SCSI (RAID1)
| httpd2.6 mysql exim dhcpd named proftpd stats niceshaper06
| WAN: 35|35 mb/s (GTS) @ 500+ hosts


Na górę
 Wyświetl profil  
 
 Tytuł:
Post: niedziela, 24 stycznia 2010, 10:45 
Offline
PGF

Rejestracja: sobota, 15 marca 2003, 13:54
Posty: 2780
Kurcze, kompiluje się problematycznie, błędy:
: [/] [] ()
In file included from <command line>:6:
../config.h:212:1: warning: this is the location of the previous definition
taskset.c: In function `main':
taskset.c:407: error: `cpu_set_t' undeclared (first use in this function)
taskset.c:407: error: (Each undeclared identifier is reported only once
taskset.c:407: error: for each function it appears in.)
taskset.c:407: error: parse error before ')' token
taskset.c: At top level:
taskset.c:424: error: parse error before "if"
taskset.c:442: error: parse error before string constant
taskset.c:442: warning: type defaults to `int' in declaration of `fprintf'
taskset.c:442: warning: data definition has no type or storage class
taskset.c:449: error: parse error before string constant
taskset.c:449: warning: type defaults to `int' in declaration of `fprintf'
taskset.c:449: error: redefinition of `fprintf'
taskset.c:442: error: `fprintf' previously declared here
taskset.c:449: warning: data definition has no type or storage class
taskset.c:462: error: parse error before '[' token
taskset.c:462: warning: type defaults to `int' in declaration of `execvp'
taskset.c:462: warning: data definition has no type or storage class
taskset.c:463: error: parse error before string constant
taskset.c:463: warning: type defaults to `int' in declaration of `perror'
taskset.c:463: warning: data definition has no type or storage class
taskset.c:464: error: parse error before string constant
taskset.c:464: warning: type defaults to `int' in declaration of `fprintf'
taskset.c:464: error: redefinition of `fprintf'
taskset.c:449: error: `fprintf' previously declared here
taskset.c:464: warning: data definition has no type or storage class
make: *** [taskset.o] Błąd 1

_________________
Internet TV telefon - Nakło nad Notecią
NoNieno.pl - urywa gacie :)
Szybkie kobiety i piękne samochody


Na górę
 Wyświetl profil  
 
 Tytuł:
Post: niedziela, 24 stycznia 2010, 11:18 
Offline
Użytkownik

Rejestracja: środa, 8 czerwca 2005, 19:39
Posty: 571
a na czym to kompilujesz?

_________________
| ArchLinux X64 2.6.29-6 (Custom) @ IBM eServer 235
| Intel Xeon 2,4GHz (x2) : 2GB RAM : 2x36GB SCSI (RAID1)
| httpd2.6 mysql exim dhcpd named proftpd stats niceshaper06
| WAN: 35|35 mb/s (GTS) @ 500+ hosts


Na górę
 Wyświetl profil  
 
 Tytuł:
Post: niedziela, 24 stycznia 2010, 11:20 
Offline
PGF

Rejestracja: sobota, 15 marca 2003, 13:54
Posty: 2780
barte-k pisze:
a na czym to kompilujesz?


NND z ostatnim jajkiem 2.4.35-2nnd

_________________
Internet TV telefon - Nakło nad Notecią
NoNieno.pl - urywa gacie :)
Szybkie kobiety i piękne samochody


Na górę
 Wyświetl profil  
 
 Tytuł:
Post: niedziela, 24 stycznia 2010, 11:33 
Offline
Użytkownik

Rejestracja: środa, 8 czerwca 2005, 19:39
Posty: 571
W takim razie potrzebujesz patcha: ftp://ftp.kernel.org/pub/linux/kernel/p ... -affinity/
Po zaaplikowaniu patcha, spróbuj skompilować tę paczkę: http://cvs.fedoraproject.org/repo/legac ... 4.0.tar.gz

_________________
| ArchLinux X64 2.6.29-6 (Custom) @ IBM eServer 235
| Intel Xeon 2,4GHz (x2) : 2GB RAM : 2x36GB SCSI (RAID1)
| httpd2.6 mysql exim dhcpd named proftpd stats niceshaper06
| WAN: 35|35 mb/s (GTS) @ 500+ hosts


Na górę
 Wyświetl profil  
 
Wyświetl posty nie starsze niż:  Sortuj wg  
Nowy temat Odpowiedz w temacie  [ Posty: 8 ] 

Strefa czasowa UTC+2godz.


Kto jest online

Użytkownicy przeglądający to forum: Obecnie na forum nie ma żadnego zarejestrowanego użytkownika i 17 gości


Nie możesz tworzyć nowych tematów
Nie możesz odpowiadać w tematach
Nie możesz zmieniać swoich postów
Nie możesz usuwać swoich postów
Nie możesz dodawać załączników

Szukaj:
Przejdź do:  
cron
Technologię dostarcza phpBB® Forum Software © phpBB Group
Hosting: Compus-Net
RobertKonik.pl