app control or set limit to how much processing power website use my machine

greeting

when browsing some website notice raise in machine fan voice(machine cooling system), other website freeze the machine or shutdown it during overload. even when i try use (ctrl+alt+F1) to reboot from terminal it still freeze. normally i remember those websites and do not enter them again, but today i face same problem again.

1- so is there’s some software or add-ons prevent websites from consumed the machine till freeze it?
2- is there’s some way to enter the terminal mode even when the machine freeze?

note: also ctrl+alt+delete did not work. i wait more than 10 m and ended with hard shutdown(using the power key)

thanks in advance

Hi,
I have no idea about item 1 - but as a last resort to prevent hard shutdown you may try the magic system request keys:
https://www.kernel.org/doc/html/latest/admin-guide/sysrq.html
As a standard they are disabled unless you have switched them on during install. In YaST you can activate them in “System => Kernel Settings”.

Please post info about hardware and used browser with its settings.

Hardware info:


:~> inxi -aFz


System:
  Kernel: 5.3.18-59.37-default x86_64 bits: 64 compiler: gcc v: 7.5.0 
  parameters: BOOT_IMAGE=/vmlinuz-5.3.18-59.37-default 
  root=UUID=fa18afd8-d78a-4b1c-8ba4-9559f65e943a splash=0 
  resume=/dev/disk/by-uuid/fb735f35-4f57-4bef-a338-3a8b25b63ba2 quiet 
  mitigations=auto 
  Desktop: Cinnamon 4.6.7 wm: gnome-shell dm: GDM 3.34.1 
  Distro: openSUSE Leap 15.3 

CPU:
  Topology: Dual Core model: Intel Core i5-3210M bits: 64 type: MT MCP 
  arch: Ivy Bridge family: 6 model-id: 3A (58) stepping: 9 microcode: 21 
  L2 cache: 3072 KiB 
  flags: avx lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 19955 
  Speed: 2783 MHz min/max: 1200/3100 MHz Core speeds (MHz): 1: 2738 2: 2580 
  3: 2835 4: 2641 
  Vulnerabilities: Type: itlb_multihit status: KVM: VMX disabled 
  Type: l1tf mitigation: PTE Inversion 
  Type: mds mitigation: Clear CPU buffers; SMT vulnerable 
  Type: meltdown mitigation: PTI 
  Type: spec_store_bypass 
  mitigation: Speculative Store Bypass disabled via prctl and seccomp 
  Type: spectre_v1 
  mitigation: usercopy/swapgs barriers and __user pointer sanitization 
  Type: spectre_v2 mitigation: Full generic retpoline, IBPB: conditional, 
  IBRS_FW, STIBP: conditional, RSB filling 
  Type: srbds status: Vulnerable: No microcode 
  Type: tsx_async_abort status: Not affected 

Graphics:
  Device-1: Intel 3rd Gen Core processor Graphics vendor: Lenovo 
  driver: i915 v: kernel bus ID: 00:02.0 chip ID: 8086:0166 
  Device-2: NVIDIA GF108M [GeForce GT 620M/630M/635M/640M LE] vendor: Lenovo 
  driver: nvidia v: 390.147 bus ID: 01:00.0 chip ID: 10de:0de9 
  Device-3: Acer Lenovo Integrated Webcam type: USB driver: uvcvideo 
  bus ID: 3-3:2 chip ID: 5986:0295 
  Display: x11 server: X.org 1.20.3 compositor: gnome-shell 
  driver: modesetting unloaded: nvidia resolution: <xdpyinfo missing> 
  OpenGL: renderer: Mesa DRI Intel HD Graphics 4000 (IVB GT2) 
  v: 4.2 Mesa 20.2.4 compat-v: 3.0 direct render: Yes 

Drives:
  Local Storage: total: 298.09 GiB used: 28.85 GiB (9.7%) 
  SMART Message: Unable to run smartctl. Root privileges required. 
  ID-1: /dev/sda vendor: Toshiba model: MQ01ABD032V -63 size: 298.09 GiB 
  block size: physical: 4096 B logical: 512 B speed: 3.0 Gb/s 
  rotation: 5400 rpm serial: <filter> rev: 1Q scheme: MBR 

Partition:
  ID-1: / raw size: 15.83 GiB size: 15.52 GiB (98.03%) 
  used: 9.31 GiB (60.0%) fs: ext4 dev: /dev/sda2 
  ID-2: /boot raw size: 476.8 MiB size: 453.7 MiB (95.15%) 
  used: 89.6 MiB (19.8%) fs: ext4 dev: /dev/sda1 
  ID-3: /home raw size: 25.70 GiB size: 25.17 GiB (97.94%) 
  used: 19.45 GiB (77.3%) fs: ext4 dev: /dev/sda3 

Swap:
  Kernel: swappiness: 60 (default) cache pressure: 100 (default) 
  ID-1: swap-1 type: partition size: 8.04 GiB used: 0 KiB (0.0%) 
  priority: -2 dev: /dev/sda6 

Sensors:
  System Temperatures: cpu: 66.0 C mobo: N/A 
  Fan Speeds (RPM): N/A 


many thanks

If, the SysReq keys have been enabled –

  • <Alt+SysRq+r> usually regains control over the keyboard and mouse.

Alternative you can “kill yourself” – <Alt+SysRq+k> – should, usually, kill all the processes on the active console.

But, if you do this, what will probably happen is, you’ll loose your Desktop settings – >:)

  • The background picture may well be replaced by, nothing …
  • The desktop folder may well disappear …
  • You may well have to change the type of Desktop to your preferred value …