LTO: ke eng le hore na u ka e sebelisa joang ho Gentoo

LTO ke eng?

LTO ke khutsufatso ea Khokahano ea Nako ea Khokahano. Ke ts'ebetso eo ho eona moqokelli a liehisang ntlafatso ka nako ea ho hokela lifaele tsa mohloli, e u lumellang ho bona lifaele tsohle tse iketsang e le ngoe e ka sebetsoang e le faele e le 'ngoe,' me ka tsela ena u sebelise likhakanyo ka mokhoa o sebetsang haholoanyane.

Bakeng sa tlhaiso-leseling e batsi: wiki ea GCC.

Ho bona melemo le litšitiso tsa LTO: Mekhatlo ea Phoronix

Lintho tseo u lokelang ho li boloka kelellong

  • Ha e tsitsitse, e ka baka mathata lipaketeng tse ling.
  • Lipapaka tse ling li tla hloleha ho bokella (ho feta kamoo o ka lokisang sena hamorao).
  • Ho kgothaletswa ho sebelisa linker Gold.
  • Sebelisa kamehla mofuta oa morao-rao oa GCC.

Gold, Ntle le ts'ehetso ea likarolo tse tsoetseng pele tse etsang hore e hohele ho e sebelisa LTO, e lebelo ho feta GNU ld, haholo ha ho tluoa mananeong a maholo, moo e ka bang teng Ka makhetlo a 5 ka potlako. Ho e sebelisa, matha:

binutils-config --linker ld.gold


Ho sebelisa LTO: mokhoa o khothalletsoang

Sebakeng sa ho kenya tšebetsong LTO lefats'eng ka bophara (le ka bakang mathata) ho molemo ho e kenya tšebetsong lipaketeng tseo re li batlang. Ka tsela ena, ke liphutheloana feela tseo u batlang ho rua molemo ho tsona LTO li hlophisitsoe ka ntlafatso ena, kapa tse qobang linako tsa ho bokella butle mananeong a sa li tsoeleng molemo. Sena se ka fihlelleha ka tsela e latelang:

Ka directory ea / etc / portage / env, re theha file LTO.conf mme re eketsa mela e latelang:

CFLAGS="${CFLAGS} -flto=5" #pon en -flto los hilos  de tu CPU + 1
CXXFLAGS="${CXXFLAGS} -flto=5" #igual que arriba
LDFLAGS="${LDFLAGS} -fuse-linker-plugin" #solo si usas Gold, es mejor.

Kahoo, ho sebelisa LTO ka har'a sephutheloana, re tlameha feela ho beha lebitso la eona (lebitso le felletseng, www-client / firefox, sebakeng sa firefox) faeleng sephutheloana, Le LTO.conf ka ho le letona la hao. Ka tlase ke mohlala:

app-emulation/wine LTO.conf
www-client/firefox LTO.conf
sys-devel/gcc LTO.conf
kde-base/kdelibs LTO.conf

Joale re tlameha feela ho hlophisa lipakana tseo re batlang hore ba li sebelise LTO.


Ho sebelisa LTO lefats'eng ka bophara (ha ho khothaletsoe)

Sebakeng sa ho etsa kopo LTO package by package, re ka boela ra e sebelisa lefats'eng ka bophara (ke seo ke se sebelisang). Ho e sebelisa, mehato e lokelang ho lateloa ke:

Re hlophisa file /etc/portage/make.conf ebe re eketsa tse latelang (ke mela e tšoanang ea faele LTO.conf):

CFLAGS="${CFLAGS} -flto=5" #pon en -flto los hilos  de tu CPU + 1
CXXFLAGS="${CXXFLAGS} -flto=5" #igual que arriba
LDFLAGS="${LDFLAGS} -fuse-linker-plugin" #solo si usas Gold, es mejor.

Ka lehlakoreng le leng, re theha file /etc/portage/env/no-LTO.conf ebe re eketsa mela e latelang:

CFLAGS="${CFLAGS} -fno-lto -fno-use-linker-plugin"
CXXFLAGS="${CXXFLAGS} -fno-lto -fno-use-linker-plugin"
LDFLAGS="${LDFLAGS} -fno-lto -fno-use-linker-plugin"

Le faeleng sephutheloana re tla beha liphutheloana tseo pokello ea tsona e hlolehang ka LTO. Eena mona oa ka sephutheloana (hlokomela hore kea sebelisa nolto.conf sebakeng sa che-LTO.conf).

Re tlameha hape ho eketsa LTO HO SEBELISA phapang ea etsa.conf, sena sea hlokahala hobane bahlahisi ba Gentoo li (butle-butle) li eketsa li-patches tse ikhethileng bakeng sa ts'ebeliso ea ntlafatso ena lipaketeng tse ling.

Hang ha sena se felile, ha re tsoeleng pele ho hlophisa liphutheloana tsohle tsa sistimi:

emerge -e @world @system --keep-going &> errores

Ka ho sebelisa- ho boloka, rea bolella Portage ho hlokomoloha liphoso, ha &> fetisetsa tlhahiso ea likokoana-hloko tsohle faeleng e bitsoang liphoso, sebelisa faele ena ho bona hore na ke lipakete life tse hlolehang ho li hlophisa ebe o li kenya lenaneng sephutheloana.

The &> E tla re amoha tlhahiso eohle, haeba re batla ho bona tlhahiso ea ts'ebetso, re tlameha ho sebelisa (joalo ka motso) taelo ena:

tail -f /var/log/emerge.log

Ke phetho, ke ts'epa hore ha ke siee lipelaelo, haeba nka hlasimoloha 'me ke ngola sengoloa ka Openmp le / kapa Graphite.


Litaba tsa sengoloa sena li latela melao-motheo ea rona ea melao ea boitšoaro ea bongoli. Ho tlaleha phoso tlanya mona.

Maikutlo a 3, siea ea hau

Siea maikutlo a hau

aterese ya hao ya imeile ke ke ho phatlalatswa. masimo a hlokahala a tšoailoe ka *

*

*

  1. E ikarabella bakeng sa data: Miguel Ángel Gatón
  2. Morero oa data: Laola SPAM, tsamaiso ea maikutlo.
  3. Molao: Tumello ea hau
  4. Puisano ea data: Lintlha li ke ke tsa tsebisoa batho ba boraro ntle le ka tlamo ea molao.
  5. Polokelo ea data: Database e hapiloeng ke Occentus Networks (EU)
  6. Litokelo: Nako efe kapa efe o ka fokotsa, oa hlaphoheloa mme oa hlakola tlhaiso-leseling ea hau.

  1.   msx a re

    Gentoo, meh ...
    Ha re fihle ho ntho ea bohlokoa: Graphite!

    1.    lenaposa a re

      Graphite xD e hlokang kelello le e bonalang, ntho e sa tloaelehang e phatlohang sistimi ea hau ea xD, ke hopola hore lekhetlo la ho qetela ha ke e sebelisa, ho ne ho lekane ho e etsa bakeng sa ho pheta makhetlo a 50 ho etsa «notify-send KDE <3" so that in iteration nomoro ea 50, tikoloho e tla phatloha ho ea liheleng hahahahaha, ee, ke ne ke ea ho li-farts xD

    2.    tseleng a re

      Ke se ke boletse hore ke ntse ke khothatsoa mme ka etsoa e mong oa Graphite. Empa, Graphite (le ntlafatso efe kapa efe) e sebetsa hantle haholo le LTO. Hape, ho fapana le LTO, Graphite le OpenMP li na le bothata. Ha se mananeo ohle a ruang molemo ho eona, 'me ho a sa e ruiseng molemo, ts'ebetso ea fokotseha, kahoo ho molemo ho e sebelisa feela bakeng sa liphutheloana tse' maloa.