Dużo RAMu na Ubuntu i sysctl.conf

Not­ka dla sie­bie — czy takie zmia­ny w /etc/sysctl.conf fak­tycz­nie przy­spie­szą dzia­ła­nie Ubun­tu na kom­pu­te­rze z mnó­stwem ramu?

vm.swappiness=10
vm.vfs_cache_pressure=50

Jeden komentarz do “Dużo RAMu na Ubuntu i sysctl.conf

  1. I deci­ded to use nodes bescu­ae each con­nec­tion needs to effi­cien­tly find out who it’s neigh­bors are. If each node knew it’s neigh­bors only by ID, as oppo­sed to hol­ding a direct refe­ren­ce, each tra­ver­sal step would requ­ire a look-up into an asso­cia­ti­ve array. For fin­ding the neigh­bor 2 posi­tions to your left and 2 posi­tions up, for exam­ple, a graph struc­tu­re is just a lit­tle easier to work with IMO (e.g. pNode->pLeft->pLeft->pTop->pTop). Also, altho­ugh chro­miu­m’s asso­cia­ti­ve arrays may be O(1) com­ple­xi­ty, they invo­lve the over­he­ad of a hash func­tion and poten­tial for col­li­sions, which when dealing with hun­dreds of tho­usands of con­nec­tions, add up eno­ugh to be a pro­hi­bi­ting per­for­man­ce bottleneck.

Możliwość komentowania została wyłączona.