Register a SA Forums Account here!
JOINING THE SA FORUMS WILL REMOVE THIS BIG AD, THE ANNOYING UNDERLINED ADS, AND STUPID INTERSTITIAL ADS!!!

You can: log in, read the tech support FAQ, or request your lost password. This dumb message (and those ads) will appear on every screen until you register! Get rid of this crap by registering your own SA Forums Account and joining roughly 150,000 Goons, for the one-time price of $9.95! We charge money because it costs us money per month for bills, and since we don't believe in showing ads to our users, we try to make the money back through forum registrations.
 
  • Post
  • Reply
rotor
Jun 11, 2001

classic case of pineapple on pizzadog derangement syndrome

Beeftweeter posted:

i'd try -j7. if it chugs do -j3

(isn't it supposed to be jobs = cpus + 1?)

e: actually i'm not sure if doing e.g. -j3 (or even -j2) would limit it to the two a72 cores. i don't think you can control that

gently caress yes linux thread

Adbot
ADBOT LOVES YOU

moonshine is......
Feb 21, 2007

linux so good that there's multiple threads for talking about how good it is

ryanrs
Jul 12, 2011

It's building -j4 right now. But check out this output from cpufreq-info!

ryan@rockpro64:~$ cpufreq-info | fgrep "current CPU freq"
current CPU frequency is 1.42 GHz (asserted by call to hardware).
current CPU frequency is 1.42 GHz (asserted by call to hardware).
current CPU frequency is 1.42 GHz (asserted by call to hardware).
current CPU frequency is 1.42 GHz (asserted by call to hardware).
current CPU frequency is 1.80 GHz (asserted by call to hardware).
current CPU frequency is 1.80 GHz (asserted by call to hardware).

If it's running all cores at max freq, that implies it's doing real work on all 6 cores at once, not bank switching the performance / low power cores. I eagerly await comparing this -j4 build time to -j7 when it finishes tomorrow.

Cybernetic Vermin
Apr 18, 2005

moonshine is...... posted:

linux so good that there's multiple threads for talking about how good it is

to make the experience genuine we need the threads to hate each other

ryanrs
Jul 12, 2011

is there a cspam linux thread?

Captain Foo
May 11, 2004

we vibin'
we slidin'
we breathin'
we dyin'

ryanrs posted:

is there a cspam linux thread?

if you go into cspam to find out, don’t come back

Beeftweeter
Jun 28, 2005

OFFICIAL #1 GNOME FAN

ryanrs posted:

is there a cspam linux thread?

there was, idk if there still is

hbag
Feb 13, 2021

ryanrs posted:

is there a cspam linux thread?

posting about self harm is against the rules iirc

Beeftweeter
Jun 28, 2005

OFFICIAL #1 GNOME FAN
using windows is counter-revolutionary

Nobody Interesting
Mar 29, 2013

One way, dead end... Street signs are such fitting metaphors for the human condition.


Beeftweeter posted:

using windows is counter-revolutionary

ryanrs
Jul 12, 2011

Building make -j4 failed after a couple hours. I ran make again with -j1 V=s to get the error message, but the build continued to completion. I think -j4 died because it ran out of memory.

make -j2 completed:
code:
real	232m57.471s
user	375m11.576s
sys	69m0.185s
Only a couple build steps use huge memory. Most of the time -j4 should be fine. Let's add some swap space.

code:
ryan@rockpro64:~$ sudo dd if=/dev/zero of=/swapfile bs=1M count=16K
16384+0 records in
16384+0 records out
17179869184 bytes (17 GB, 16 GiB) copied, 75.3991 s, 228 MB/s       <------- Extremely suspicious number!
ryan@rockpro64:~$ sudo chmod 600 /swapfile 
ryan@rockpro64:~$ ls -lh /swapfile 
-rw------- 1 root root 16G Apr  4 19:51 /swapfile
ryan@rockpro64:~$ sudo mkswap /swapfile
Setting up swapspace version 1, size = 16 GiB (17179865088 bytes)
no label, UUID=5ff63856-d4d7-4040-b922-8d8382ca1f36
ryan@rockpro64:~$ sudo swapon /swapfile
ryan@rockpro64:~$ sudo swapon --show
NAME       TYPE      SIZE  USED PRIO
/dev/zram0 partition 1.9G 38.5M    5
/swapfile  file       16G    0B   -2
ryan@rockpro64:~$ cat /proc/swaps 
Filename				Type		Size		Used		Priority
/dev/zram0                              partition	1944772		39424		5
/swapfile                               file		16777212	0		-2
ryan@rockpro64:~$ 
Suspicions confirmed!

code:
ryan@rockpro64:~$ sudo lspci -vv
00:00.0 PCI bridge: Rockchip Electronics Co., Ltd RK3399 PCI Express Root Port (prog-if 00 [Normal decode])
	Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
	Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 0
	Interrupt: pin A routed to IRQ 58
	Bus: primary=00, secondary=01, subordinate=01, sec-latency=0
	Memory behind bridge: fa000000-fa0fffff [size=1M] [32-bit]
	Secondary status: 66MHz- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- <SERR- <PERR-
	BridgeCtl: Parity- SERR+ NoISA- VGA- VGA16- MAbort- >Reset- FastB2B-
		PriDiscTmr- SecDiscTmr- DiscTmrStat- DiscTmrSERREn-
	Capabilities: [80] Power Management version 3
		Flags: PMEClk- DSI- D1+ D2- AuxCurrent=0mA PME(D0+,D1+,D2-,D3hot+,D3cold-)
		Status: D0 NoSoftRst+ PME-Enable- DSel=0 DScale=0 PME-
	Capabilities: [90] MSI: Enable+ Count=1/1 Maskable+ 64bit+
		Address: 00000000fee30040  Data: 0000
		Masking: 00000000  Pending: 00000000
	Capabilities: [b0] MSI-X: Enable- Count=1 Masked-
		Vector table: BAR=0 offset=00000000
		PBA: BAR=0 offset=00000008
	Capabilities: [c0] Express (v2) Root Port (Slot+), MSI 00
		DevCap:	MaxPayload 256 bytes, PhantFunc 0
			ExtTag- RBE+
		DevCtl:	CorrErr+ NonFatalErr+ FatalErr+ UnsupReq+
			RlxdOrd+ ExtTag- PhantFunc- AuxPwr- NoSnoop+
			MaxPayload 256 bytes, MaxReadReq 512 bytes
		DevSta:	CorrErr- NonFatalErr- FatalErr- UnsupReq- AuxPwr- TransPend-
		LnkCap:	Port #0, Speed 2.5GT/s, Width x4, ASPM L1, Exit Latency L1 <8us
			ClockPM- Surprise- LLActRep- BwNot+ ASPMOptComp+
		LnkCtl:	ASPM Disabled; RCB 128 bytes, Disabled- CommClk+
			ExtSynch- ClockPM- AutWidDis- BWInt+ AutBWInt+
		LnkSta:	Speed 2.5GT/s, Width x1
			TrErr- Train- SlotClk+ DLActive- BWMgmt- ABWMgmt-
		SltCap:	AttnBtn- PwrCtrl- MRL- AttnInd- PwrInd- HotPlug- Surprise-
			Slot #0, PowerLimit 0W; Interlock- NoCompl-
		SltCtl:	Enable: AttnBtn- PwrFlt- MRL- PresDet- CmdCplt- HPIrq- LinkChg-
			Control: AttnInd Off, PwrInd Off, Power+ Interlock-
		SltSta:	Status: AttnBtn- PowerFlt- MRL+ CmdCplt- PresDet- Interlock-
			Changed: MRL- PresDet- LinkState-
		RootCap: CRSVisible-
		RootCtl: ErrCorrectable- ErrNon-Fatal- ErrFatal- PMEIntEna+ CRSVisible-
		RootSta: PME ReqID 0000, PMEStatus- PMEPending-
		DevCap2: Completion Timeout: Range B, TimeoutDis+ NROPrPrP- LTR+
			 10BitTagComp- 10BitTagReq- OBFF Via message, ExtFmt- EETLPPrefix-
			 EmergencyPowerReduction Not Supported, EmergencyPowerReductionInit-
			 FRS- LN System CLS Not Supported, TPHComp+ ExtTPHComp- ARIFwd+
			 AtomicOpsCap: Routing+ 32bit- 64bit- 128bitCAS-
		DevCtl2: Completion Timeout: 50us to 50ms, TimeoutDis- LTR+ 10BitTagReq- OBFF Disabled, ARIFwd+
			 AtomicOpsCtl: ReqEn- EgressBlck-
		LnkCtl2: Target Link Speed: 2.5GT/s, EnterCompliance- SpeedDis-
			 Transmit Margin: Normal Operating Range, EnterModifiedCompliance- ComplianceSOS-
			 Compliance Preset/De-emphasis: -6dB de-emphasis, 0dB preshoot
		LnkSta2: Current De-emphasis Level: -6dB, EqualizationComplete- EqualizationPhase1-
			 EqualizationPhase2- EqualizationPhase3- LinkEqualizationRequest-
			 Retimer- 2Retimers- CrosslinkRes: unsupported
	Capabilities: [100 v2] Advanced Error Reporting
		UESta:	DLP- SDES- TLP- FCP- CmpltTO- CmpltAbrt- UnxCmplt- RxOF- MalfTLP- ECRC- UnsupReq- ACSViol-
		UEMsk:	DLP- SDES- TLP- FCP- CmpltTO- CmpltAbrt- UnxCmplt- RxOF- MalfTLP- ECRC- UnsupReq- ACSViol-
		UESvrt:	DLP+ SDES+ TLP- FCP+ CmpltTO- CmpltAbrt- UnxCmplt- RxOF+ MalfTLP+ ECRC- UnsupReq- ACSViol-
		CESta:	RxErr- BadTLP- BadDLLP- Rollover- Timeout- AdvNonFatalErr-
		CEMsk:	RxErr- BadTLP- BadDLLP- Rollover- Timeout- AdvNonFatalErr+
		AERCap:	First Error Pointer: 00, ECRCGenCap+ ECRCGenEn- ECRCChkCap+ ECRCChkEn-
			MultHdrRecCap- MultHdrRecEn- TLPPfxPres- HdrLogCap-
		HeaderLog: 00000000 00000000 00000000 00000000
		RootCmd: CERptEn+ NFERptEn+ FERptEn+
		RootSta: CERcvd- MultCERcvd- UERcvd- MultUERcvd-
			 FirstFatal- NonFatalMsg- FatalMsg- IntMsg 0
		ErrorSrc: ERR_COR: 0000 ERR_FATAL/NONFATAL: 0000
	Capabilities: [274 v1] Transaction Processing Hints
		Interrupt vector mode supported
		Device specific mode supported
		Steering table in TPH capability structure
	Kernel driver in use: pcieport

01:00.0 Non-Volatile memory controller: Samsung Electronics Co Ltd NVMe SSD Controller PM9A1/PM9A3/980PRO (prog-if 02 [NVM Express])
	Subsystem: Samsung Electronics Co Ltd NVMe SSD Controller PM9A1/PM9A3/980PRO (SSD 980 PRO)
	Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
	Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 0
	Interrupt: pin A routed to IRQ 57
	Region 0: Memory at fa000000 (64-bit, non-prefetchable) [size=16K]
	Capabilities: [40] Power Management version 3
		Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-)
		Status: D0 NoSoftRst+ PME-Enable- DSel=0 DScale=0 PME-
	Capabilities: [50] MSI: Enable- Count=1/32 Maskable- 64bit+
		Address: 0000000000000000  Data: 0000
	Capabilities: [70] Express (v2) Endpoint, MSI 00
		DevCap:	MaxPayload 256 bytes, PhantFunc 0, Latency L0s unlimited, L1 unlimited
			ExtTag+ AttnBtn- AttnInd- PwrInd- RBE+ FLReset+ SlotPowerLimit 0W
		DevCtl:	CorrErr+ NonFatalErr+ FatalErr+ UnsupReq+
			RlxdOrd+ ExtTag+ PhantFunc- AuxPwr- NoSnoop+ FLReset-
			MaxPayload 256 bytes, MaxReadReq 512 bytes
		DevSta:	CorrErr- NonFatalErr- FatalErr- UnsupReq- AuxPwr- TransPend-
		LnkCap:	Port #0, Speed 16GT/s, Width x4, ASPM L1, Exit Latency L1 <64us
			ClockPM+ Surprise- LLActRep- BwNot- ASPMOptComp+
		LnkCtl:	ASPM Disabled; RCB 64 bytes, Disabled- CommClk+
			ExtSynch- ClockPM- AutWidDis- BWInt- AutBWInt-
		LnkSta:	Speed 2.5GT/s (downgraded), Width x1 (downgraded)
			TrErr- Train- SlotClk+ DLActive- BWMgmt- ABWMgmt-
		DevCap2: Completion Timeout: Range ABCD, TimeoutDis+ NROPrPrP- LTR+
			 10BitTagComp+ 10BitTagReq- OBFF Not Supported, ExtFmt- EETLPPrefix-
			 EmergencyPowerReduction Not Supported, EmergencyPowerReductionInit-
			 FRS- TPHComp- ExtTPHComp-
			 AtomicOpsCap: 32bit- 64bit- 128bitCAS-
		DevCtl2: Completion Timeout: 50us to 50ms, TimeoutDis- LTR+ 10BitTagReq- OBFF Disabled,
			 AtomicOpsCtl: ReqEn-
		LnkCap2: Supported Link Speeds: 2.5-16GT/s, Crosslink- Retimer+ 2Retimers+ DRS-
		LnkCtl2: Target Link Speed: 16GT/s, EnterCompliance- SpeedDis-
			 Transmit Margin: Normal Operating Range, EnterModifiedCompliance- ComplianceSOS-
			 Compliance Preset/De-emphasis: -6dB de-emphasis, 0dB preshoot
		LnkSta2: Current De-emphasis Level: -3.5dB, EqualizationComplete- EqualizationPhase1-
			 EqualizationPhase2- EqualizationPhase3- LinkEqualizationRequest-
			 Retimer- 2Retimers- CrosslinkRes: Upstream Port
	Capabilities: [b0] MSI-X: Enable+ Count=130 Masked-
		Vector table: BAR=0 offset=00003000
		PBA: BAR=0 offset=00002000
	Capabilities: [100 v2] Advanced Error Reporting
		UESta:	DLP- SDES- TLP- FCP- CmpltTO- CmpltAbrt- UnxCmplt- RxOF- MalfTLP- ECRC- UnsupReq- ACSViol-
		UEMsk:	DLP- SDES- TLP- FCP- CmpltTO- CmpltAbrt- UnxCmplt- RxOF- MalfTLP- ECRC- UnsupReq- ACSViol-
		UESvrt:	DLP+ SDES+ TLP- FCP+ CmpltTO- CmpltAbrt- UnxCmplt- RxOF+ MalfTLP+ ECRC- UnsupReq- ACSViol-
		CESta:	RxErr- BadTLP- BadDLLP- Rollover- Timeout- AdvNonFatalErr-
		CEMsk:	RxErr- BadTLP- BadDLLP- Rollover- Timeout- AdvNonFatalErr+
		AERCap:	First Error Pointer: 00, ECRCGenCap+ ECRCGenEn- ECRCChkCap+ ECRCChkEn-
			MultHdrRecCap+ MultHdrRecEn- TLPPfxPres- HdrLogCap-
		HeaderLog: 00000000 00000000 00000000 00000000
	Capabilities: [168 v1] Alternative Routing-ID Interpretation (ARI)
		ARICap:	MFVC- ACS-, Next Function: 0
		ARICtl:	MFVC- ACS-, Function Group: 0
	Capabilities: [178 v1] Secondary PCI Express
		LnkCtl3: LnkEquIntrruptEn- PerformEqu-
		LaneErrStat: 0
	Capabilities: [198 v1] Physical Layer 16.0 GT/s <?>
	Capabilities: [1bc v1] Lane Margining at the Receiver <?>
	Capabilities: [214 v1] Latency Tolerance Reporting
		Max snoop latency: 0ns
		Max no snoop latency: 0ns
	Capabilities: [21c v1] L1 PM Substates
		L1SubCap: PCI-PM_L1.2+ PCI-PM_L1.1+ ASPM_L1.2+ ASPM_L1.1+ L1_PM_Substates+
			  PortCommonModeRestoreTime=10us PortTPowerOnTime=10us
		L1SubCtl1: PCI-PM_L1.2- PCI-PM_L1.1- ASPM_L1.2- ASPM_L1.1-
			   T_CommonMode=0us LTR1.2_Threshold=0ns
		L1SubCtl2: T_PwrOn=10us
	Capabilities: [3a0 v1] Data Link Feature <?>
	Kernel driver in use: nvme

ryan@rockpro64:~$ 
Compare LnkCap vs LnkSta (capabilities vs status).

The Rockchip can do 2.5GT/s x4.

The Samsung SSD can do 16GT/s x4.

But for some reason the link is running at 2.5GT/s x1 which is about 250 MB/s. That's why 228 MB/s from dd was so suspicious.

ryanrs
Jul 12, 2011

And the fix! (probably)

Rockpro64 PCI-Express Issue A sharp-eyed forum reader spots suspicious resistors on one of the PCIe lanes.

Schematic PDF see pg 27. The offending passives are on PCIE_RX3_P/N.




e: but if just pair 3 was hosed, why wouldn't the link fall back to x2?

ryanrs fucked around with this message at 05:06 on Apr 5, 2024

Captain Foo
May 11, 2004

we vibin'
we slidin'
we breathin'
we dyin'

i used nano to edit fstab today

shitface
Nov 23, 2006

I mentioned I usually install a few extensions to take some rough edges off of gnome. the first thing I do on a fresh gnome install is install "Extension Manager" not "Extensions", which is similar but worse.

Then I install
- ArcMenu: nice functional menu. whatever your favourite incarnation of the start menu was, it's here and a click away in its prefs. Bind it to Windows/Super and it can take over from Overview with fast, accurate search and customisable quick links for some of the menu styles
- No Overview at Startup: I hate the Overview thing in general and I definitely don't want it to be first thing I see.
- Dash to Panel: Simple classic Windows style panel. Can group or not as you wish

for whatever reason I never try to make linux Mac-like with docks or so on. they're all too uncanny valley



I removed some potentially identifying apps from favorites before screenshotting. also, don't edge shame me

e: but not my name lmao

e2: name removed

shitface fucked around with this message at 05:48 on Apr 5, 2024

post hole digger
Mar 21, 2011

I like dash to dock in gnome but I am intrigued by arcmenu and am gonna look at that tomorrow

FAT32 SHAMER
Aug 16, 2012



you missed one, op

FAT32 SHAMER
Aug 16, 2012



ope you’re good

shitface
Nov 23, 2006

post hole digger posted:

I like dash to dock in gnome but I am intrigued by arcmenu and am gonna look at that tomorrow

it’s real nice and real fast

shitface
Nov 23, 2006

FAT32 SHAMER posted:

ope you’re good

lmao “I’ll remove these apps as they could identify where I work”. *leaves full name in plain sight*

thankfully I’m too boring to make doxxing worthwhile

FAT32 SHAMER
Aug 16, 2012



I don’t want a dock but I do want to press cmd + space to be able to launch or find whatever I type, like Finder

shitface
Nov 23, 2006

FAT32 SHAMER posted:

I don’t want a dock but I do want to press cmd + space to be able to launch or find whatever I type, like Finder

there’s lots of them. i settled on ulauncher. can even do nice things like integrate 2fa codes in there

e: again though, arcmenu does these too. hit cmd, start typing and apps, files etc. will appear

git apologist
Jun 4, 2003

is linux the official os of yospos now

FAT32 SHAMER
Aug 16, 2012



for gaming ya

FAT32 SHAMER
Aug 16, 2012



Mac remains too good of a daily driver, and the hardware is great compared to the windows machines

rotor
Jun 11, 2001

classic case of pineapple on pizzadog derangement syndrome
this thread inspired me to get compiz goin again with the wobbly windows and its great

shitface
Nov 23, 2006

if you don’t wanna go full compiz but you miss the genie minimize effect from Mac, “Compiz alike magic lamp effect” gnome extension does the trick well.

genie effect does have a practical purpose of letting you clearly see where your window went, even in your peripheral vision. it’s also real purdy :allears:

ryanrs
Jul 12, 2011

does the shift key work?

shitface
Nov 23, 2006

ryanrs posted:

does the shift key work?

for that authentic Mac experience... no

Beeftweeter
Jun 28, 2005

OFFICIAL #1 GNOME FAN

shitface posted:

if you don’t wanna go full compiz but you miss the genie minimize effect from Mac, “Compiz alike magic lamp effect” gnome extension does the trick well.

genie effect does have a practical purpose of letting you clearly see where your window went, even in your peripheral vision. it’s also real purdy :allears:

kde has this built in. you can also do wobbly windows, the genie effect and a lot more

oh and you can add new effects too, in the same way you get themes, login screens, etc. it's really pretty slick

git apologist
Jun 4, 2003

beefy you are suspiciously effusive about linux

Beeftweeter
Jun 28, 2005

OFFICIAL #1 GNOME FAN
i used to use macos exclusively but i really don't like the direction the ui is headed in. so i started to use windows more, and then when wsl came out, i found i was doing most of what i wanted to do with wsl. plus i don't really like the direction windows is headed in either, if windows 11 is any indication

basically i've been transitioning to just using linux because both major oses are finally in a lovely enough state for me to do something about it. i've been saying both have been getting worse for like a decade anyway, it was going to happen eventually

but since i recently switched i know i can help people that are fed up with the other oses too, and i don't know everything there is to know about linux obviously, so threads like this sometimes help me learn. i mean, maybe not this thread, yet, but it has potential lol

Beeftweeter
Jun 28, 2005

OFFICIAL #1 GNOME FAN
also i am legitimately impressed at how well clear runs on lovely old hardware. everyone on intel should at least give the liveboot a try, it's pretty crazy how much faster it is

ryanrs
Jul 12, 2011

Ugh, how do I make Rockchip's PCIe not suck?

Going from make -j2 to -j4 only saved 19 minutes on a 232 min build, a mere 8.2%.

And although the loadavg started out right around 4.0, towards the end of the build loadavg was barely above 1. As if three of my jobs disappeared. Some kind of forced in-order build? The last 1.5 hours or more of the build runs at 1.0 loadavg.

For example, these targets appeared to build using one core only:
make[3] -C feeds/luci/collections/luci compile
make[3] -C package/firmware/ath10k-ct-firmware compile

I'm not sure what is going on with the makefiles, but that single-core time is gonna Amdahl me pretty bad.

The other big issue is the PCIe connection to the NVME. Tomorrow I will try reseating the PCIe riser and M.2 SSD. Maybe that makes more lanes appear? I can also do the motherboard mod.

I can also try overclocking to PCIe Gen 2 speeds. The RK3399 was supposed to support Gen 2, but Rockchip submitted a patch explicitly downgrading it to Gen 1 speed, presumably for stability reasons to do with the silicon. But I can maybe change it back and try it out.

I'll run make -j7 overnight, just to measure it before I start making PCIe changes.

Poopernickel
Oct 28, 2005

electricity bad
Fun Shoe

Beeftweeter posted:

i used to use macos exclusively but i really don't like the direction the ui is headed in. so i started to use windows more, and then when wsl came out, i found i was doing most of what i wanted to do with wsl. plus i don't really like the direction windows is headed in either, if windows 11 is any indication

basically i've been transitioning to just using linux because both major oses are finally in a lovely enough state for me to do something about it. i've been saying both have been getting worse for like a decade anyway, it was going to happen eventually

but since i recently switched i know i can help people that are fed up with the other oses too, and i don't know everything there is to know about linux obviously, so threads like this sometimes help me learn. i mean, maybe not this thread, yet, but it has potential lol

if you're a laptophaver, macos is still the way to go. Windows is next-best. Put your Linux in a VM (WSL is fine). Don't waste your life loving around with graphics drivers, wi-fi drivers, "oh, btw your camera won't work", bad battery life, etc.

Linux is ideal for:
- all servers
- anything in the cloud
- your desktop
- anything embedded

don't get me wrong, MacOS peaked with snow-leopard and it's been all downhill since then. but don't do a Linux on your laptop

Poopernickel fucked around with this message at 10:01 on Apr 5, 2024

Buck Turgidson
Feb 6, 2011

𓀬𓀠𓀟𓀡𓀢𓀣𓀤𓀥𓀞𓀬

ryanrs posted:

Ugh, how do I make Rockchip's PCIe not suck?

Going from make -j2 to -j4 only saved 19 minutes on a 232 min build, a mere 8.2%.

And although the loadavg started out right around 4.0, towards the end of the build loadavg was barely above 1. As if three of my jobs disappeared. Some kind of forced in-order build? The last 1.5 hours or more of the build runs at 1.0 loadavg.

For example, these targets appeared to build using one core only:
make[3] -C feeds/luci/collections/luci compile
make[3] -C package/firmware/ath10k-ct-firmware compile

I'm not sure what is going on with the makefiles, but that single-core time is gonna Amdahl me pretty bad.

The other big issue is the PCIe connection to the NVME. Tomorrow I will try reseating the PCIe riser and M.2 SSD. Maybe that makes more lanes appear? I can also do the motherboard mod.

I can also try overclocking to PCIe Gen 2 speeds. The RK3399 was supposed to support Gen 2, but Rockchip submitted a patch explicitly downgrading it to Gen 1 speed, presumably for stability reasons to do with the silicon. But I can maybe change it back and try it out.

I'll run make -j7 overnight, just to measure it before I start making PCIe changes.

Throw that poo poo in the trash where it belongs bro

ryanrs
Jul 12, 2011

I'm pretty sure the SSD is worth more than the Rockchip board, ha ha.

But keep in mind that while it takes 3.5 hours to run this build, the entire system is running on something like 5W. Right now with loadavg 7.0, I can hold my finger against the small passive heatsink indefinitely.

Could a x86 run the build in 1/10th the time, using 10x the power? 50W for 20 minutes? Possibly, but probably not!

And not to excuse the PCIe issue, but most people are running these things off microSD cards. 250 MB/sec storage is not a showstopper bug.

Beeftweeter
Jun 28, 2005

OFFICIAL #1 GNOME FAN

Poopernickel posted:

if you're a laptophaver, macos is still the way to go. Windows is next-best. Put your Linux in a VM (WSL is fine). Don't waste your life loving around with graphics drivers, wi-fi drivers, "oh, btw your camera won't work", bad battery life, etc.

Linux is ideal for:
- all servers
- anything in the cloud
- your desktop
- anything embedded

don't get me wrong, MacOS peaked with snow-leopard and it's been all downhill since then. but don't do a Linux on your laptop

everything works fine, this is bad advice

Nobody Interesting
Mar 29, 2013

One way, dead end... Street signs are such fitting metaphors for the human condition.


btrfs sanpshots, as it turns out, fully own. i didn't understand them and i don't think i entirely do yet but i installed snap-pac (https://wiki.archlinux.org/title/Snapper#Wrapping_pacman_transactions_in_snapshots) to make snapshots before and after -Syu. disk space usage is negligible and i now have HUNDREDS of snapshots.

you can even just loving boot into a snapshot what the hell this is incredible. i can hose an entire directory of configs but roll back to a snapshot and fix everything????

i can even just loving browse the snapshots and pull out intact files i need.

just amazing stuff linux is great

one thing that did suck is that it's not entirely trivial to separate /boot and /boot/efi, so my kernel images are not covered by snapshots.

Share Bear
Apr 27, 2004

i thought this was like a new linux thread but theres another one with way more convos in it

close this one or the other one plz

Adbot
ADBOT LOVES YOU

rotor
Jun 11, 2001

classic case of pineapple on pizzadog derangement syndrome

Share Bear posted:

i thought this was like a new linux thread but theres another one with way more convos in it

close this one or the other one plz

check out this dude who cant cope with multithreading

  • 1
  • 2
  • 3
  • 4
  • 5
  • Post
  • Reply