Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

How to download a range of bytes?

by Zeokat (Novice)
on Dec 26, 2007 at 22:56 UTC ( [id://659125]=perlquestion: print w/replies, xml ) Need Help??

Zeokat has asked for the wisdom of the Perl Monks concerning the following question:

Acpi Genuineintel---intel64-family-6-model-158 May 2026

Abstract The Advanced Configuration and Power Interface (ACPI) provides a standardized mechanism for operating systems to identify hardware resources, including processors. This paper examines the specific ACPI processor identifier string GenuineIntel---Intel64-family-6-model-158 , decodes its structural components, maps it to the corresponding Intel microarchitecture, and discusses the implications for power management, feature detection, and OS scheduling. The analysis confirms that this identifier corresponds to Intel’s Alder Lake microarchitecture, specifically performance hybrid variants. The paper further explores how modern operating systems utilize such ACPI identifiers to enable heterogeneous computing features like Intel Thread Director. 1. Introduction The x86 architecture has evolved significantly, with processors varying in instruction sets, cache hierarchies, power states, and core topologies. The ACPI specification mandates that the _HID (Hardware ID) or _CID (Compatible ID) objects in the DSDT/SDST provide a string identifying the CPU. The string format follows: GenuineIntel---Intel64-family-<F>-model-<M> .

This paper deconstructs the string family-6-model-158 to determine the exact microarchitecture, stepping, and key architectural features relevant to OS and firmware developers. 2.1 Vendor String: GenuineIntel Indicates the processor vendor is Intel Corporation. This string is hardcoded into the CPUID instruction (EAX=0: EBX, EDX, ECX return "GenuineIntel"). 2.2 Architecture String: Intel64 Specifies that the processor supports Intel 64-bit extensions (x86-64), including canonical address formats, 64-bit general-purpose registers, and long mode. 2.3 Family Field: family-6 In Intel terminology, the Family number is 6 for all modern Core-based microarchitectures (from Pentium Pro through current generations). Family 15 was used for NetBurst (Pentium 4). Thus, family-6 indicates a P6 lineage or its derivatives. 2.4 Model Field: model-158 The Model number identifies the specific microarchitecture design. Model 158 in decimal converts to 0x9E in hexadecimal. 3. Microarchitecture Identification Consulting Intel’s public developer manuals (SDM, June 2023 onwards) and ACPI DSDT databases, model 0x9E (158 decimal) maps to: acpi genuineintel---intel64-family-6-model-158

| Field | Value | Microarchitecture | Codename | Process | Release Year | |-------|-------|------------------|----------|---------|--------------| | Family | 6 | P6 / Core | - | - | - | | Model | 0x9E (158) | Alder Lake | Alder Lake-P, -S, -U | Intel 7 | 2021–2022 | The paper further explores how modern operating systems

Replies are listed 'Best First'.
Re: How to download a range of bytes?
by eserte (Deacon) on Dec 26, 2007 at 23:27 UTC
    This seems to work:
    #!/usr/bin/perl -w use strict; use LWP::UserAgent; my $ua = LWP::UserAgent->new; my $url = 'http://localhost/...'; $ua->default_headers->push_header(Range => "bytes=1000-2000"); my $response = $ua->get($url); my $content = $response->content(); warn length($content); warn $content;
    To get the current content length of the object, you can do a HEAD before and look at the content-length header.
      The code works verrrrrrry good eserte. Big thanks. But new question arrive to my head, are there any way to know if the server have the abbility of "Accept-Ranges: bytes" ?? Thanks in advance.
        Try fetching with HEAD instead of GET to view the Accept* headers without getting the content itself

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://659125]
Approved by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (2)
As of 2026-03-08 23:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.