US20130060937A1 - System and method for fast file tracking and change monitoring - Google Patents
System and method for fast file tracking and change monitoring Download PDFInfo
- Publication number
- US20130060937A1 US20130060937A1 US13/662,315 US201213662315A US2013060937A1 US 20130060937 A1 US20130060937 A1 US 20130060937A1 US 201213662315 A US201213662315 A US 201213662315A US 2013060937 A1 US2013060937 A1 US 2013060937A1
- Authority
- US
- United States
- Prior art keywords
- item
- expiration time
- evaluation
- time
- setting
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Abandoned
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/21—Design, administration or maintenance of databases
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/17—Details of further file system functions
- G06F16/1734—Details of monitoring file system events, e.g. by the use of hooks, filter drivers, logs
Definitions
- the present invention relates generally to monitoring files and other items from various computing systems and, more particularly, but not exclusively to determining how often to schedule an item for evaluation for a possible change to the item based on whether the item possibly changed and further based on a backlog of other items for evaluation that may have delayed evaluation of the item.
- Troubleshooting errors and monitoring system performance generally involves analyzing large amounts of data.
- the financial hardship caused by a system error can sometimes increase as the time to detect and resolve the error increases.
- near real time monitoring can be difficult, especially as the amount of data increases.
- the more data to be monitored the longer it may take to check all of the data.
- latency between checks may exponentially increase with an increase in the amount of data that is being monitored.
- FIG. 1 is a system diagram of an environment in which embodiments of the invention may be implemented
- FIG. 2 shows an embodiment of a client device that may be included in a system such as that shown in FIG. 1 ;
- FIG. 3 shows an embodiment of a network device that may be included in a system such as that shown in FIG. 1 ;
- FIG. 4 illustrates a state diagram generally showing one embodiment of a general overview of state changes of an item
- FIG. 5 illustrates a logical flow diagram generally showing one embodiment of an overview process for determining how often to schedule an item for an evaluation for a possible change
- FIG. 6 illustrates a logical flow diagram generally showing one embodiment of a process for evaluating an item for a possible change
- FIG. 7 illustrates a logical flow diagram generally showing one embodiment of a process for dynamically scheduling an item for re-evaluation for a possible change
- FIG. 8 illustrates a logical flow diagram generally showing one embodiment of a process for processing items in a READ_DIR state
- FIG. 9 illustrates a logical flow diagram generally showing one embodiment of a process for processing items in a NOTIFY state
- FIG. 10 illustrates a logical flow diagram generally showing one embodiment of an overview process for determining if an item is a new or existing item
- FIG. 11 illustrates a logical flow diagram generally showing one embodiment of a process for determining if an item is new or existing depending on its size
- FIG. 12 illustrates a logical flow diagram generally showing one embodiment of a process for determining if an item is new or existing depending on if the item was compressed;
- FIG. 13 illustrates a logical flow diagram generally showing one embodiment of a process for determining if an item is new or existing depending on an identifier collision
- FIG. 14 illustrates a logical flow diagram generally showing one embodiment of a process for determining if a new or existing item is to be deferred
- FIG. 15 illustrates a logical flow diagram generally showing one embodiment of a process for determining if additional data was written a previously deferred item.
- the term “or” is an inclusive “or” operator, and is equivalent to the term “and/or,” unless the context clearly dictates otherwise.
- the term “based on” is not exclusive and allows for being based on additional factors not described, unless the context clearly dictates otherwise.
- the meaning of “a,” “an,” and “the” include plural references.
- the meaning of “in” includes “in” and “on.”
- file refers to a named collection of related data that appears to a user as a single, contiguous block of information and that is retained in computer storage.
- a directory is a special type of file that may contain a list of file names and/or directory names and a corresponding data structure for each file and directory that it appears to contain.
- an item refers to a structured collection of related data produced by a computing system. Such items include, for example, a file, a directory, a socket, queue, or the like. Other collections of related data may also be identified to be an item produced by a computing system, and thus, the above should be construed to be a non-limiting, non-exhaustive example of items that may be considered.
- an item may have a beginning of the item and an end of the item. The beginning of the item may refer to a first byte of data that is logically read from the item and the end of the item may refer to a last byte of data that is logically read from the item.
- Items may be considered to have or to reside within a state or condition, such as those described in more detail below.
- an item is considered to be in one state at a time.
- indications that an item is identified in a given state implies that the item is not in another state.
- states may, in one embodiment, be mutually exclusive.
- a tag, flag, pointer, or other identifier may be associated with the item indicating the state in which the item may be considered to reside.
- a queue, list, or other structure may be used to manage items in a given state. For example, in one embodiment, as an item is identified in a particular state, the item may be considered to be moved onto a queue, list, or other structure associated with that state.
- a tag, identifier, flag, or the like, associated with the item may be moved to the queue, or structure, rather than the item itself. In one embodiment, such structure might be organized as a First In/First Out (FIFO) structure. However, other structures may also be employed.
- a tag, identifier, flag, or the like may be modified to identity a change in a state of an associated item.
- TIMEOUT state refers to a condition of an item, where the item is identified to be waiting to be scheduled for evaluation for a possible change.
- items and/or a related identifier for the items in the TIMEOUT state may reside on (or within) a queue of items, with each item in the queue being in the TIMEOUT state.
- a tag, pointer, data field, or other information may indicate an expiration time associated with the item indicating when the item has ‘timed-out,’ and is therefore available for a possible state change.
- STAT state refers to a condition of an item, where the item is identified to be waiting to be evaluated for a possible change to the item.
- items may be in a defined order or sequence in the STAT state.
- items in the STAT state may be considered to reside within a STAT queue of items.
- the STAT state (or queue) may be a first-in, first-out (FIFO) queue.
- FIFO first-in, first-out
- the phrase “NOTIFY state” refers to a condition of an item, where the item is identified to be waiting to be processed, such as, but not limited to, determining if the item is a new or existing item and processing a change in the item.
- items considered to be in the NOTIFY state may be considered to reside on or within a NOTIFY queue of items, each item in the queue being within the NOTIFY state.
- the NOTIFY state (or queue) may be a FIFO queue.
- READ_DIR state refers to a condition of an item that is a directory, where the directory is identified to be waiting to be processed, such as, but not limited to, reading the directory to determine if there is a change to the directory.
- unresolved identifier refers to one or more identifiers of an item that are identical to corresponding identifiers of another item, such that the item may be indistinguishable from the other item as being a new or existing item.
- NO_ACTION state refers to a condition of an item, where the item is defined as no longer anticipating a state change, based in part on an unresolved identifier, or the like.
- other configurations and representations of item states are also envisaged, and thus, the states of an item are not limited by a particular implementation structure and/or configuration.
- embodiments are directed towards a dynamic change evaluation mechanism, whereby items having a detected possible change are scheduled for re-evaluation for possible changes at a higher frequency than items detected to not have previously changed, while those items detected as not to have changed are dynamically scheduled for re-evaluation based, in part, on a measure of a backlog of other items scheduled for evaluation that may have delayed evaluation of the item.
- the measure of this backlog is referred to as an “evaluation backlog”.
- a possible change to an item may be detected based on detecting a change to metadata associated with the item, such as a change in a timestamp metadata associated with the item.
- scheduling each item for evaluation for a possible change may be based on an assigned expiration time.
- the expiration time may be set initially based on a variety of criteria, including based on a time value that is directed towards seeking to re-evaluate changed items for other changes at or near real-time.
- a new expiration time is assigned to the item based on whether a possible change is detected or not.
- the item may be assigned a new expiration time as a function of a previous expiration time and on an evaluation backlog that represents a backlog of items that may have delayed evaluation of the item.
- the evaluation backlog may be based, in part, on a time from when an item is assigned an expiration time to when the item is evaluated for a possible change.
- the new expiration time may be greater or less than the previous expiration time depending on the evaluation backlog.
- the item may be further processed before it is scheduled for re-evaluation.
- the possibly changed item may be assigned a new expiration time that is independent of the evaluation backlog. For example, in one embodiment, an item that is detected to have changed may be assigned a new expiration time that seeks to increase a frequency of re-evaluating the item over evaluating other items that did not change.
- items may be evaluated to detect a possible change. Possible changes to an item may be based, in one embodiment, on detecting a change to selected metadata associated with the item. For example, in one embodiment, a creation time, item size, or other metadata, might be detected to have changed from when the item was previously evaluated for a possible change. Items identified to have a possible change may be further evaluated to determine if the item actually changed. For example, content of the item might be evaluated to determine whether the content of the item changed. In some instances, the selected metadata may have changed, but the content of the item did not change. In such instances, the item may be identified to have not changed. However, if the content of the item is determined to have changed, in one embodiment, this may be sufficient to indicate that the item is changed.
- a creation time, item size, or other metadata might be detected to have changed from when the item was previously evaluated for a possible change.
- Items identified to have a possible change may be further evaluated to determine if the item actually changed. For example, content of the item might be evaluated to determine whether the content
- an item may be determined to have changed or have not changed based on further evaluation of various characteristics of the item, including a hash associated with the item, an item size, a name of the item, or the like.
- Items that have been determined to have changed may then be employed to troubleshoot and/or monitor the performance of a computing system that is providing the items.
- troubleshooting and monitoring may include detecting and/or resolving system errors, determining opportunities to improve system performance, or the like.
- FIG. 1 shows components of one embodiment of an environment in which the invention may be practiced. Not all the components may be required to practice the invention, and variations in the arrangement and type of the components may be made without departing from the spirit or scope of the invention.
- system 100 of FIG. 1 includes local area networks (“LANs”)/wide area networks (“WANs”)-(network) 107 , client devices 101 - 103 , and Item Change Notification and Detection Device (ICNDD) 109 .
- LANs local area networks
- WANs wide area networks
- client devices 101 - 103 may include virtually any computing device capable of communicating over a network to send and receive information, including items, performing various online activities, offline actions, or the like.
- client devices 101 - 103 may be configured to operate within a business or other entity to perform a variety of services for the business or other entity.
- client devices 101 - 103 may be configured to operate as a web server, an accounting server, a production server, an inventory server, or the like.
- client devices 101 - 103 are not constrained to these services and may also be employed, for example, as an end-user computing node, in other embodiments. Further, it should be recognized that more or less client devices may be included within a system such as described herein, and embodiments are therefore not constrained by the number or type of client devices employed.
- the set of such devices may include devices that typically connect using a wired or wireless communications medium such as personal computers, servers, multiprocessor systems, microprocessor-based or programmable consumer electronics, network PCs, or the like.
- client devices 101 - 103 may operate over wired and/or wireless network.
- client devices 101 - 103 may include virtually any portable computing device capable of receiving and sending a message over a network, such as network 107 .
- Client devices 101 - 103 also may include at least one other client application that is configured to receive and/or send data, including items, between another computing device.
- the client application may include a capability to provide and/or to receive requests for items, or the like.
- the client application need not be limited to merely providing items, and may also provide other information, and/or provide for a variety of other services, including, for example, monitoring for items within and/or between client devices.
- the client application may further provide information that identifies itself, including a type, capability, name, and the like. Such information may be provided in a network packet, or the like, sent between other client devices, ICNDD 109 , or other computing devices.
- Network 107 is configured to couple network devices with other computing devices, including, ICNDD 109 , and client devices 101 - 103 .
- Network 107 is enabled to employ any form of computer readable media for communicating information from one electronic device to another.
- network 107 can include the Internet in addition to local area networks (LANs), wide area networks (WANs), direct connections, such as through a universal serial bus (USB) port, other forms of computer-readable media, or any combination thereof.
- LANs local area networks
- WANs wide area networks
- USB universal serial bus
- a router acts as a link between LANs, enabling messages to be sent from one to another.
- communication links within LANs typically include twisted wire pair or coaxial cable
- communication links between networks may utilize analog telephone lines, full or fractional dedicated digital lines including T1, T2, T3, and T4, and/or other carrier mechanisms including, for example, E-carriers, Integrated Services Digital Networks (ISDNs), Digital Subscriber Lines (DSLs), wireless links including satellite links, or other communications links known to those skilled in the art.
- ISDNs Integrated Services Digital Networks
- DSLs Digital Subscriber Lines
- communication links may further employ any of a variety of digital signaling technologies, including without limit, for example, DS-0, DS-1, DS-2, DS-3, DS-4, OC-3, OC-12, OC-4S, or the like.
- network 107 may be configured to transport information of an Internet Protocol (IP).
- IP Internet Protocol
- network 107 includes any communication method by which information may travel between computing devices.
- communication media typically embodies computer-readable instructions, data structures, program modules, or other transport mechanism and includes any information delivery media.
- communication media includes wired media such as twisted pair, coaxial cable, fiber optics, wave guides, and other wired media and wireless media such as acoustic, RF, infrared, and other wireless media.
- network 107 may be further configurable as a wireless network, which may further employ a plurality of access technologies including 2nd (2G), 3rd (3G), 4th (4G) generation radio access for cellular systems, WLAN, Wireless Router (WR) mesh, and the like.
- network 107 when configured as a wireless network, may enable a radio connection through a radio network access such as Global System for Mobile communication (GSM), General Packet Radio Services (GPRS), Enhanced Data GSM Environment (EDGE), Wideband Code Division Multiple Access (WCDMA), and the like.
- GSM Global System for Mobile communication
- GPRS General Packet Radio Services
- EDGE Enhanced Data GSM Environment
- WCDMA Wideband Code Division Multiple Access
- ICNDD 109 includes virtually any network device usable to operate to receive and/or analyze items from client devices 101 - 103 .
- ICNDD 109 may, for example, be configured to perform item update notification and/or item change detection.
- an item update notifier may be employed to determine how often to schedule an item for evaluation for a possible change to the item.
- an item may be scheduled for re-evaluation based on whether the item possibly changed and further based on an evaluation backlog.
- an item change detector may be employed to manage and track item identification for new and existing items. The item update notifier and/or the item change detector may be employed by one or more other applications to track items and/or analyze item identification.
- ICNDD 109 may employ processes such as described below in conjunction with FIGS. 5-15 to perform at least some of its actions.
- ICNDD 109 Devices that may operate as ICNDD 109 include various network devices, including, but not limited to personal computers, desktop computers, multiprocessor systems, microprocessor-based or programmable consumer electronics, network PCs, server devices, network appliances, and the like.
- FIG. 1 illustrates ICNDD 109 as a two computing devices
- the invention is not so limited.
- one or more functions of the ICNDD 109 may be performed on a single network device.
- one or more functions of the ICNDD 109 may be distributed across one or more distinct network devices.
- item update notification may be performed on one network device
- item change detection may be perform on a different network device.
- ICNDD 109 is not limited to a particular configuration.
- ICNDD 109 may contain a plurality of network devices to perform item update notification and/or item change detection.
- ICNDD 109 may contain a plurality of network devices that operate using a master/slave approach, where one of the plurality of network devices of ICNDD 109 operates to manage and/or otherwise coordinate operations of the other network devices.
- the ICNDD 109 may operate as a plurality of network devices within a cluster architecture, a peer-to-peer architecture, and/or even within a cloud architecture.
- the invention is not to be construed as being limited to a single environment, and other configurations, and architectures are also envisaged.
- FIG. 2 shows one embodiment of client device 200 that may be included in a system implementing embodiments of the invention.
- Client device 200 may include many more or less components than those shown in FIG. 2 . However, the components shown are sufficient to disclose an illustrative embodiment for practicing the present invention.
- Client device 200 may represent, for example, one embodiment of at least one of client devices 101 - 103 of FIG. 1 .
- client device 200 includes processing unit (CPU) 202 in communication with a mass memory 226 via a bus 234 .
- Client device 200 also includes a power supply 228 , one or more network interfaces 236 , an audio interface 238 , a display 240 , and an input/output interface 248 .
- Power supply 228 provides power to client device 200 .
- Network interface 236 includes circuitry for coupling client device 200 to one or more networks, and is constructed for use with one or more communication protocols and technologies including, but not limited to, global system for mobile communication (GSM), code division multiple access (CDMA), time division multiple access (TDMA), user datagram protocol (UDP), transmission control protocol/Internet protocol (TCP/IP), SMS, general packet radio service (GPRS), WAP, ultra wide band (UWB), IEEE 802.16 Worldwide Interoperability for Microwave Access (WiMax), SIP/RTP, or any of a variety of other communication protocols.
- GSM global system for mobile communication
- CDMA code division multiple access
- TDMA time division multiple access
- UDP user datagram protocol
- TCP/IP transmission control protocol/Internet protocol
- SMS general packet radio service
- GPRS general packet radio service
- WAP ultra wide band
- WiMax Worldwide Interoperability for Microwave Access
- SIP/RTP Worldwide Interoperability for Microwave Access
- Network interface 236 is sometimes known as a transceiver
- Audio interface 238 is arranged to produce and receive audio signals such as the sound of a human voice.
- audio interface 238 may be coupled to a speaker and microphone (not shown) to enable telecommunication with others and/or generate an audio acknowledgment for some action.
- Display 240 may be a liquid crystal display (LCD), gas plasma, light emitting diode (LED), or any other type of display used with a computing device.
- Display 240 may also include a touch sensitive screen arranged to receive input from an object such as a stylus or a digit from a human hand.
- Client device 200 also comprises input/output interface 248 for communicating with external devices, such as a keyboard, or other input or output devices not shown in FIG. 2 .
- Input/output interface 248 can utilize one or more communication technologies, such as USB, infrared, BluetoothTM, or the like.
- Mass memory 226 includes a RAM 204 , a ROM 222 , and other storage means. Mass memory 226 illustrates an example of computer readable storage media (devices) for storage of information such as computer readable instructions, data structures, program modules or other data. Mass memory 226 stores a basic input/output system (“BIOS”) 224 for controlling low-level operation of client device 200 . The mass memory also stores an operating system 206 for controlling the operation of client device 200 . It will be appreciated that this component may include a general-purpose operating system such as a version of UNIX, or LINUXTM, or a specialized client communication operating system such as Windows MobileTM, or the Symbian® operating system. The operating system may include, or interface with a Java virtual machine module that enables control of hardware components and/or operating system operations via Java application programs.
- BIOS basic input/output system
- Mass memory 226 further includes one or more data storage 208 , which can be utilized by client device 200 to store, among other things, applications 214 and/or other data.
- data storage 208 may also be employed to store information that describes various capabilities of client device 200 . The information may then be provided to another device based on any of a variety of events, including being sent as part of a header during a communication, sent upon request, or the like. At least a portion of the information may also be stored on a disk drive or other computer-readable storage device 230 within client device 200 .
- Data storage 208 may further store items 210 . Items 210 may include, for example, files, directories, or the like. Such items 210 may also be stored within any of a variety of other computer-readable storage devices, including, but not limited to a hard drive, a portable storage device, or the like, such as illustrated by computer-readable storage device 230 .
- Applications 214 may include computer executable instructions which, when executed by client device 200 , transmit, receive, and/or otherwise process network data.
- Other examples of application programs include calendars, search programs, email clients, IM applications, SMS applications, VOIP applications, contact managers, task managers, transcoders, database programs, word processing programs, security applications, spreadsheet programs, games, search programs, data log recording programs, and so forth.
- Applications 214 may include, for example, data forwarder 220 .
- ICNDD 109 of FIG. 1 may be configured to provide a downloadable tool, such as data forwarder 220 , to client device 200 .
- Data forwarder 220 may be configured to send data, such as items 210 , to another network device, such as ICNDD 109 of FIG. 1 .
- Items 210 may be sent to ICNDD 109 based on a request from ICNDD 109 , or other network device. However, items 210 may also be sent based on a time, a change in a state of client device 200 , or any of a variety of other criteria.
- FIG. 3 shows one embodiment of a network device 300 , according to one embodiment of the invention.
- Network device 300 may include many more or less components than those shown. The components shown, however, are sufficient to disclose an illustrative embodiment for practicing the invention.
- Network device 300 may be configured to operate as a server, client, peer, or any other device.
- Network device 300 may represent, for example ICNDD 109 of FIG. 1 .
- Network device 300 includes processing unit 302 , an input/output interface 332 , video display adapter 336 , and a mass memory, all in communication with each other via bus 326 .
- the mass memory generally includes RAM 304 , ROM 322 and one or more permanent mass storage devices, such as hard disk drive 334 , tape drive, optical drive, and/or floppy disk drive.
- the mass memory stores operating system 306 for controlling the operation of network device 300 . Any general-purpose operating system may be employed.
- BIOS Basic input/output system
- BIOS Basic input/output system
- network device 300 also can communicate with the Internet, or some other communications network, via network interface unit 330 , which is constructed for use with various communication protocols including the TCP/IP protocol.
- Network interlace unit 330 is sometimes known as a transceiver, transceiving device, or network interface card (NIC).
- Network device 300 also comprises input/output interface 332 for communicating with external devices, such as a keyboard, or other input or output devices not shown in FIG. 3 .
- Input/output interface 332 can utilize one or more communication technologies, such as USB, infrared, BluetoothTM, or the like.
- Computer-readable storage media may include volatile, nonvolatile, removable, and non-removable media implemented in any method or technology for storage of information, such as computer readable instructions, data structures, program modules, or other data.
- Examples of computer readable storage media include RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disks (DVD) or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other non-transitory physical medium which can be used to store the desired information and which can be accessed by a computing device.
- data storage 308 may include a database, text, spreadsheet, folder, file, or the like, that may be configured to maintain and store user account identifiers, user profiles, email addresses, IM addresses, and/or other network addresses; or the like.
- Data stores 308 may further include program code, data, algorithms, and the like, for use by a processor, such as central processing unit (CPU) 302 to execute and perform actions.
- CPU central processing unit
- at least some of data store 308 might also be stored on another component of network device 300 , including, but not limited to computer-readable storage device 328 , hard disk drive 334 , or the like.
- Data storage 308 may further store items 310 .
- Items 310 may include files, directories, or the like received from another network device, such as client device 200 of FIG. 2 .
- data storage 308 may further store and/or otherwise manage various queues, flags, pointers, lists, and/or other data structures useable to manage states of items residing within items 310 .
- the mass memory also stores program code and data.
- One or more applications 314 are loaded into mass memory and run on operating system 306 .
- Examples of application programs may include transcoders, schedulers, calendars, database programs, word processing programs, HTTP programs, customizable user interface programs, IPSec applications, encryption programs, security programs, SMS message servers, account managers, and so forth.
- Item Update Notifier (IUN) 316 and Item change Detector (ICD) 318 may also be included as application programs within applications 314 .
- IUN 316 may include virtually any computing component or components configured and arranged to determine how often to schedule an item for evaluation for a possible change to the item. In one embodiment, IUN 316 may schedule an item for re-evaluation based on whether the item possibly changed and further based on an evaluation backlog. In another embodiment, IUN 316 might determine to re-schedule the item for re-evaluation when it is determined that the item possibly changed, independent of (e.g., without concern for) the evaluation backlog. Scheduling items for re-evaluation may be managed, in one embodiment by assigning an expiration time to the item. In one embodiment, IUN 316 may perform actions such as those described below in conjunction with FIGS. 5-9 .
- ICD 318 may be configured and arranged to manage and track item identification for new and existing items.
- ICD 318 may employ one or more item identifiers for determining if an item is a new or existing item based on a comparison of the one or more item identifiers with an item record associated with at least one of the item identifiers.
- ICD 318 may perform actions such as those described below in conjunction with FIGS. 10-15 .
- FIG. 4 illustrates a state diagram generally showing one embodiment of a general overview of state changes of an item.
- State diagram 400 includes Item Update Notifier (IUN) 316 and Item Change Detector (ICD) 318 .
- IUN 316 includes five states in which an item may be associated: TIMEOUT state 406 , STAT state 408 , NOTIFY state 410 , READ_DIR state 412 , and NO_ACTION state 414 .
- An item may be initially identified as being in a TIMEOUT state 406 with an initially assigned expiration time.
- the expiration time for the item expires ( 416 )
- the item may be scheduled for evaluation by changing from TIMEOUT state 406 to STAT state 408 .
- STAT state 408 an item is evaluated to detect a possible change.
- the item changes to be in a TIMEOUT state 406 , to be scheduled for re-evaluation based on an evaluation backlog and a previous expiration time.
- the item may be assigned a new expiration time as a function of the previous expiration time and on the evaluation backlog.
- processing the non-new directory may include reading the directory for a change. If a new item is detected ( 424 ), then the new item is identified as being in a STAT state 408 . If an item is missing ( 425 ), then the missing item is identified as being in a NOTIFY state 410 .
- the processing of an item in READ_DIR state 412 is finished ( 426 )
- the item e.g. the non-new directory
- ICD 318 While in NOTIFY state 410 , an item is processed by ICD 318 and subsequently processed for a change.
- ICD 318 may return the item as a new or existing item ( 436 ) and in some embodiments an unresolved identifier (e.g. the item is indeterminable as a new or existing item).
- ICD 318 may return a defer change acknowledgment command or a change acknowledgment command based on if the new or existing item is complete. If a defer change acknowledgment command is returned, then the item changes to be in a TIMEOUT state 406 to be scheduled for re-evaluation ( 432 ).
- the item is assigned a new expiration time based on a predetermined value, independent of an evaluation backlog.
- the item changes to be in a TIMEOUT state 406 to be scheduled for re-evaluation ( 430 ).
- the item may be assigned a new expiration time based on the predetermined value, independent of the evaluation backlog. If the item is a new directory and is “recursed” into ( 428 ), then the item changes from NOTIFY state 410 to READ_DIR state 412 . However, if an item is to be ignored ( 434 ), such as if an unresolved identifier is returned by ICD 318 , then the item changes to be in a NO_ACTION state 414 , where the item is anticipated to not change states.
- FIGS. 5-15 The operation of certain aspects of the invention will now be described with respect to FIGS. 5-15 .
- the processes described with respect to FIGS. 5-15 may be implemented by and/or executed on a single network device, such as network device 300 of FIG. 3 .
- the processes described with respect to FIGS. 5-15 or portions thereof may be implemented by and/or executed on a plurality of network devices, such as network device 300 of FIG. 3 .
- FIG. 5 illustrates a logical flow diagram generally showing one embodiment of an overview process for dynamically scheduling items for evaluation for a possible change.
- Process 500 of FIG. 5 begins, after a start block, at block 502 , where each item of a plurality of stems is identified as being in a TIMEOUT state with an assigned expiration time.
- the expiration time may be a system time based on a predetermined value.
- the system time may refer to an internal clock time of a computing system performing operations on the item.
- the expiration time may be a decrementing time counter based on a predetermined value.
- the predetermined value may be an arbitrary value, based on a total number of items in a plurality of items and/or system performance (e.g. processor speed, available memory, or the like), or the like.
- the predetermined value may be based on a time that computed to seek to schedule evaluation of each item initially as quickly as the system performance is determined to allow, such as approximately in real-time, or the like.
- the item may include the assigned expiration time in metadata associated with the item.
- item metadata may include information indicating when the expiration time is set to expire.
- an evaluation backlog indicator is initiated.
- the evaluation backlog indicator may indicate a backlog of items that are scheduled to be evaluated to detect a possible change.
- an indication of the backlog may be based on a time difference (or wait time) between a time when an item is assigned an expiration time to when the item is “at a top of a stack” and therefore is to be evaluated or is otherwise selected for evaluation of a possible change to the item. Therefore, in some embodiments, the wait time may be based on a time when the evaluation backlog indicator is initiated and a time when the evaluation backlog indicator is stopped. In some embodiments, the evaluation backlog indicator may be initiated by storing a current system time.
- the evaluation backlog indicator may be initiated by starting an incremental time counter. Although embodiments are described as initiating the backlog indicator when an item is assigned an expiration time, the invention is not so limited; and, in other embodiments, the evaluation backlog indicator may be initiated when the item is scheduled for evaluation, such as at block 506 .
- the item may include the evaluation backlog indicator for the item in metadata associated with the item.
- item metadata may include the start time of the evaluation backlog indicator.
- evaluation backlog indicators are assigned to each item, and may be employed to identify a duration for which that item is delayed for evaluation based on a backlog of other items to be evaluated prior to the item.
- data corresponding to the item may be stored in a lookup table, file, or other storage mechanism.
- data may include, but is not limited a name of the item, a hash identifier of the item, or other metadata associated with the item.
- Process 500 next proceeds to decision block 504 , where a determination is made whether an expiration time for an item has expired. As may be seen, process 500 continues from block 502 on a by item basis, each item having its own expiration time associated with it. In one embodiment, an expiration time for an item may expire when a decrementing time counter reaches zero or some other defined value. In another embodiment, an expiration time for an item may expire when the system time is equal to the expiration time. Further, in some embodiments, an expired item may be detected based on the items in the TIMEOUT state being ordered in a heap structure according to their assigned expiration time.
- the “expired item” is scheduled to be evaluated for a possible change.
- scheduling the item for evaluation may include identifying the item to be in a STAT state.
- a pointer to the “expired item” may be placed on a FIFO queue to denote the item is in the STAT state.
- other structures, or actions may also be employed, as discussed elsewhere.
- Process 500 continues to block 508 , where the item is evaluated for a possible change.
- the item is evaluated for a possible change when the item is at an output location on a STAT queue.
- evaluating the item for a possible change may include checking selected metadata of the item to determine if there is a possible change to the item.
- the metadata may include an item size; one or more timestamps, e.g. an access time, a creation time, a modification time, or the like; a permissions attribute; or the like.
- the item size may refer to a total number of bytes of data that correspond to the item, such as a length of an item in bytes, or some other measure of a count of data may be employed.
- a change in an item's selected metadata may suggest a possible change to content of the item. In other embodiments, the contents of the item might be analyzed for a possible change.
- the evaluation backlog indicator is stopped.
- an indication of a backlog may be based on a wait time between a time when an item is assigned an expiration time to when the item is “at a top of a stack” and therefore is to be evaluated or is otherwise selected for evaluation of a possible change to the item. Therefore, in some embodiments, the wait time may be based on a time when the evaluation backlog indicator is initiated and a time when the evaluation backlog indicator is stopped.
- the evaluation backlog indicator may be stopped by storing a stop time based on a current system time. In another embodiment, the evaluation backlog indicator may be stopped by stopping an incremental time counter that corresponds to the item.
- the item's metadata may include an indication that there is a possible change to the item, such as, for example, a change in a permissions attribute, item size, a modification time, or the like.
- the metadata associated with the item may be compared to stored metadata to determine if there is a possible change to the item.
- a tag, flag, or other identifier may indicate the item has possibly changed. If there is a possible change to the item based on a detected change to the selected metadata, then processing flows to block 511 ; otherwise, processing flows to decision block 514 .
- the possibly changed item is identified to be in a NOTIFY state for further processing.
- the possibly changed item may be placed on a queue that denotes items in the NOTIFY state.
- Processing then proceeds to block 512 , where, in one embodiment, a new expiration time is assigned to the item independent of the evaluation backlog.
- the new expiration time may be based on a predetermined value.
- Various values may be selected. For example, where it is desired to re-evaluate items that have changed more frequently than items not having changed, then the predetermined value may be set to a selected low value. For example, the predetermined value may be set to a low value between about 0.001 seconds to about 2.0 seconds.
- the predetermined value employed to assign a new expiration time may be the same or different than the predetermined value used to initially assign an expiration time, as described at block 502 .
- the new expiration time may be based on the evaluation backlog indicator for the item.
- those items that have an actual change detected and not merely a possible change might have their expiration times set independent of the evaluation backlog indicator.
- the invention is configured to accommodate either or both conditions. If the item is to have its expiration time based on the evaluation backlog indicator for the item, the process might, in one embodiment, flow to decision block 514 . Otherwise, processing continues to block 520 .
- the wait time may be based on a time difference between when the evaluation backlog indicator is initiated and a time when the evaluation backlog indicator is stopped.
- the threshold value may be selected as some percentage of the previous expiration time for the item. In one embodiment, the percentage may be selected to minimize dithering or bouncing about a given time value. For example, the threshold value might be selected to be between about 105% to about 120% of the previous expiration time, to provide a tolerance level in the evaluation. However, the invention is not limited to these values, and others may readily be selected based on engineering judgment, historical data, of the like.
- the threshold value for an item may be a function of the previous expiration time of the item, such that a comparison with the wait time of the item may provide an indication as to an evaluation backlog.
- An evaluation backlog may occur for a variety of reasons. For example, a backlog may occur when a system is not continuously evaluating items and/or the items are not evaluated at or near real time, even though the items are scheduled for evaluation, e.g. identified to be in a STAT state. Consequently, an increase in the evaluation backlog may be reflected by an increase in the wait time of an item and/or an increase in a difference between the wait time and the expiration time of the item. In any event, if the wait time is above the threshold value, then processing flows to block 518 ; otherwise processing flows to block 516 .
- the system may be overloaded or otherwise behind in processing of items, resulting in an increased evaluation backlog.
- the rate at which items that do not have a change (or possible change) may be scheduled for re-evaluation for a possible change at a decreased rate by assigning the item a new expiration time that is greater (or takes longer to expire) than the previous expiration time of the item.
- the item may be “removed” from the STAT state for a longer time duration. This action is directed towards decreasing the number of items in the STAT state, and allowing the system to “catch up”.
- the new expiration time may be a multiplicative increase of the previous expiration time or the wait time of the item.
- the increase in expiration time may be double the previous expiration time.
- the new expiration time may be determined based on a constant value that is added to the previous expiration time or wait time of the item.
- the new expiration time can be a function of the previous expiration time and/or a function of the wait time of the item.
- the new expiration time may be a difference between the wait time and the previous expiration time that is then added to the wait time of the item.
- the new expiration time if the new expiration time exceeds a maximum expiration time value, then it may be determined that the item will probably not change and the item may be changed to be in a NO_ACTION state. Similarly, in another embodiment, the new expiration time may be limited to a maximum expiration time value, such that the new expiration time does not exceed the maximum expiration time value, but is not identified as being in a NO_ACTION state. In any event, processing then continues to block 520 .
- the STAT state may be under populated and evaluations may be occurring less quickly than the system might be able to accommodate.
- the rate at which items not having a detected change may be scheduled to be re-evaluated at an increased rate by assigning the item a new expiration time that is less (or expires more quickly) than the previous expiration time of the item. Therefore, the rate at which the system evaluates items may increase, which can result in a decrease in the wait time of the items.
- the new expiration time may be some percentage less than the previous expiration time. In one non-limiting, non-exhaustive example, the percentage may be selected to be between about 94%-98% of the previous expiration time. In other embodiments, the new expiration time may be the previous expiration time minus a constant time value, such as one, or 0.1, or some other constant. However, other values may also be selected. Although certain embodiments are described for assigning a new expiration time, the invention is not so limited; rather, any suitable algorithm to decrease the expiration time as a function of the previous expiration time and/or wait time may be employed.
- the new expiration time may be limited to a minimum expiration time value.
- the minimum expiration time value may be equal to the assigned expiration time at block 502 .
- the invention is not so limited, and any suitable minimum expiration time value may be employed. In any event, processing then continues to block 520 .
- the item is identified to be in a TIMEOUT state to be scheduled for re-evaluation.
- the item also is assigned the new expiration time.
- the backlog indicator is initiated for the item. In some embodiments, initiating the evaluation backlog indicator may be employed using embodiments described at block 502 . Process 500 then loops back to decision block 504 .
- FIG. 6 illustrates a logical flow diagram generally showing one embodiment of an overview process for evaluating items in the STAT state.
- items in the STAT state may be managed as a queue of items, such as but not limited to a FIFO queue.
- process 600 of FIG. 6 may be implemented on one item at a time when the item is at an output location on, such as or “at the top” of the queue, or other defined position relative to another item also in the STAT state.
- the invention is not to be construed as limited to implementing the STAT state as a queue; rather, other ordered data structures may be implemented.
- other embodiments of implementing the STAT state may include an ordered list, a ranking of items, or the like. In one such embodiment, an item with a highest ranking among a plurality of items in the STAT state may be processed before other items in the STAT state.
- process 600 begins, after a start block, at block 602 , where a determination is made whether an item is determined to be gone. An item may be determined to be gone if it has been deleted, renamed, moved, or the like, by a user, a computer application, or the like. If the item is not gone, then processing flows to decision block 604 ; otherwise, processing flows to block 614 .
- the change acknowledgment may be deferred if the item was processed for a possible change, but processing was not completed, such as, but not limited to, not reading an item to an end of file, or similar item identifier.
- the item may include an attribute that identifies if the change acknowledgment was previously deferred.
- metadata associated with the item may include a defer change acknowledgment command. If the change acknowledgement of the item was previously deferred, then processing flows to block 605 ; otherwise, processing flows to decision block 606 . At block 605 , metadata associated with the item is analyzed for a possible change. Processing then flows to block 614 .
- evaluation of metadata associated with the item may indicate that there is a possible change to the item, such as, for example, a change in a timestamp.
- the metadata associated with the item may be compared to stored metadata to determine if there is a possible change to the item.
- a tag, flag, or other identifier may indicate the item has possibly changed. If there is not a possible change to the item based on the evaluation of at least the metadata, then processing flows to block 608 ; otherwise, processing flows to decision block 610 .
- Block 608 is described in more detail below in conjunction with FIG. 7 . Briefly, however, at block 608 , the item is identified to be in a TIMEOUT state to be scheduled for re-evaluation based on an evaluation backlog. Processing then flows to decision block 616 .
- a new directory may refer to an indication of a directory that was generated while an item in the READ_DIR state was being processed and subsequently changes to be in a STAT state. Therefore, a non-new directory may refer to a directory that changed from a TIMEOUT state to a STAT state.
- a new directory may be referred to as a non-new directory if the new directory is recursed into (which is shown by element 428 of FIG. 4 ). If the item is a non-new directory, then processing flows to block 612 ; otherwise, processing flows to block 614 . Block 612 is described in more detail below in conjunction with FIG. 8 . Briefly, however, at block 612 , the non-new directory is identified as being in a READ_DIR state, where the non-new directory is processed for a possible change. Processing then flows to decision block 616 .
- the item is identified to be in a NOTIFY state, where the item is processed for a possible change. Processing then continues to decision block 616 .
- items may remain in the STAT state if a STAT state queue is not empty. If there are items remaining in a STAT state, then processing loops to block 604 to process a next item; otherwise, processing returns to a calling process to perform other actions.
- the next item may be a next item in a queue. In other embodiments, the next item may be a highest ranking item of the items remaining in the STAT state.
- FIG. 7 illustrates a logical flow diagram generally showing one embodiment of an overview process for dynamically scheduling an item for re-evaluation for a possible change based on an evaluation backlog.
- process 700 of FIG. 7 represents actions taken at block 608 of FIG. 6 .
- Process 700 begins, after a start block, at block 702 , where a wait time for an item to be analyzed is obtained based on an evaluation backlog indicator.
- an evaluation backlog indicator start time may be a system time when an item is identified as being in a TIMEOUT state and an evaluation backlog indicator stop time may be a system time when the item was analyzed for a possible change in the STAT state.
- the evaluation backlog indicator may be based on an incrementing time counter that is started when an item is identified as being in a TIMEOUT state and stopped when the item was analyzed for a possible change in the STAT state.
- the wait time may be the difference between the evaluation backlog indicator start time and the evaluation backlog indicator stop time, or the resulting incrementing time counter for the evaluation backlog indicator.
- the maximum threshold value may be similar to that which is described above in conjunction with block 514 of FIG. 5 for determining the threshold value. In any event, if the wait time is above the maximum threshold value, then processing flows to block 706 ; otherwise, processing flows to decision block 708 .
- the item is assigned a new expiration time that is greater than the previous expiration time.
- the new expiration time may be determined similar to that which is described above in conjunction with block 518 of FIG. 5 . Processing then continues to block 714 .
- the minimum threshold value may be determined similar to that which is described above in conjunction with block 514 of FIG. 5 for determining a threshold value. In any event, if the wait time is below the minimum threshold value, then processing flows to block 710 ; otherwise, processing flows to block 712 .
- a new expiration time is assigned to the item that is less than the previous expiration time, similar to that which is described above in conjunction with block 516 of FIG. 5 . Processing then continues to block 714 .
- a substantially the same new expiration time may include a new expiration time that is within, plus or minus, some threshold or tolerance time value of the previous expiration time.
- the threshold or tolerance time value may be plus or minus one-half second. In another embodiment, the threshold or tolerance time value may be based on a factor of the previous expiration time, such as, for example, plus or minus ten percent of the previous expiration time.
- process 700 flows to block 714 .
- the item is identified to be in a TIMEOUT state with the new expiration time. Processing then returns to a calling process to perform other actions.
- FIG. 7 describes two threshold values, a maximum threshold value and a minimum threshold value, the invention is not so limited. Rather, a different number of thresholds may be implemented.
- FIG. 5 describes a single threshold. However, in some embodiments, more than two thresholds may also be implemented in FIG. 5 .
- different embodiments may be employed for assigning a new expiration time to an item. In one non-limiting and non-exhaustive example, if a wait time is greater than a first threshold, then the new expiration time may be set based on a previous wait time plus a constant time value; if the wait time is greater than a second threshold, then the new expiration time may be set based on a multiplicative increase in the wait time. Other variations are also envisaged.
- FIG. 8 illustrates a logical flow diagram generally showing one embodiment of a process for processing items in a READ_DIR state.
- Process 800 of FIG. 8 in one embodiment, illustrates actions embodied by block 612 of FIG. 6 discussed above.
- Process 800 begins, after a start block, at block 802 , where a directory is read for a change.
- the directory may be read for changes in file names, directory names, and/or other items listed in the directory.
- Process 800 then continues to decision block 804 , where a determination is made whether one or more items in the directory have changed.
- a change may be detected by comparing the items listed in the directory to items previously listed in the directory. If an item in the directory has changed, then processing flows to decision block 806 ; otherwise, processing flows to decision block 812 .
- An item is determined to be missing if it was previously known to be listed in the directory, but subsequently has been removed, deleted, moved, or the like, by a user, a computer application, or the like.
- items in the NO_ACTION state may be compared to items listed in the directory to determine if an item is not listed in the directory, but was previously processed. If one or more items are missing, processing flows to block 810 ; otherwise, processing flows to block 808 . In some embodiments, processing may flow to both block 810 and block 808 if one or more items are missing from the directory or one or more other items have changed, but are not missing.
- an indication of the one or more missing items is identified as being in a NOTIFY state, which is described in more detail below in conjunction with FIG. 9 .
- the indication of the one or more missing items may change to a NO_ACTION state. Processing then flows to block 814 .
- the one or more changed items are identified as being in a STAT state, which is described in more detail above in conjunction with FIG. 6 .
- an indication of the new item may be generated and identified in the STAT state. Processing then flows to block 814 .
- the directory is identified as being in a TIMEOUT state to be scheduled for re-evaluation based on an evaluation backlog, as described in more detail above in conjunction with FIG. 7 .
- Process 800 then returns to a calling process to perform other actions.
- the directory changes to be in a TIMEOUT state with a new expiration time.
- the new expiration time may be based on the timestamp granularity of the directory.
- the timestamp granularity may refer to how detailed a directory timestamp may be that indicates a change in the directory.
- a directory may have a timestamp granularity of two seconds. In any event, processing then returns to a calling process to perform other actions.
- FIG. 9 illustrates a logical flow diagram generally showing one embodiment of a process for processing items in a NOTIFY state.
- Process 900 of FIG. 9 may represent, in one embodiment, actions taken at block 614 of FIG. 6 .
- Process 900 begins, after a start block, at block 902 , which is described in more detail below in conjunction with FIG. 10 . Briefly, however, at block 902 , the item is determined to be a new or existing item.
- an unresolved identifier may be returned from the process described at block 902 .
- metadata associated with the item may include an unresolved identifier. If the item has an unresolved identifier, then processing flows to block 904 ; otherwise, processing flows to decision block 905 . At block 904 , an error is returned to a calling process. Processing then flows to block 906 .
- a user, system administrator, a computer application, or the like may indicate than an item is to be ignored.
- items with an item name that ends in “.backup” might be identified as to be ignored. If the item is to be ignored, processing flows to block 906 ; otherwise, processing flows to decision block 908 .
- the item is identified as being in a NO_ACTION state. Items in the NO_ACTION state may be maintained, but may not change states further. In some embodiments, items in the NO_ACTION state may be utilized to determine if the item was previously processed, such as is described at block 806 of FIG. 8 . Processing then flows to decision block 922 .
- a new directory may be a new item that was detected as a change in a directory, such as is described in conjunction with FIG. 8 , but more specifically block 808 of FIG. 8 . If the item is a new directory, then processing flows to decision block 912 ; otherwise, processing flows to decision block 909 .
- a user, application, or other process may indicate that a new directory is to be recursed into or not to be recursed into. If the new directory is not to be recursed into, then processing flows to block 906 ; otherwise, processing flows to block 914 .
- the new directory changes to be in a READ_DIR state. Processing then flows to decision block 922 .
- the size may refer to a total number of bytes of data that correspond to the item, such as a length of an item in bytes, or some other measure of a count of data may be employed.
- the remaining data to be read may include previously unprocessed data in the item.
- the threshold size value may be based on an average item size, an arbitrary value, or the like. In one non-limiting example, the threshold size value may be 20 megabytes of unread data. If the remaining data to be read is larger than the threshold size value, then processing flows to block 911 ; otherwise, processing flows to block 910 .
- processing of large items may include an embodiment of the process described in conjunction with FIG. 9 , but without decision block 909 and block 911 . Processing next continues to block 920 .
- the item is processed for a change.
- the item may be processed to determine if there is an actual change in the item.
- processing may include storing a change in the item.
- a record may be stored for the item, which may include a plurality of information about an item, such as, but not limited to, an item identifier, an end of file pointer, an end of item identifier, or the like.
- the change in the item may be employed to troubleshoot errors and/or determine opportunities to improve system performance.
- Process 900 then proceeds to decision block 916 , where a determination is made whether to defer a change acknowledgment.
- an item may include an indication to defer the change acknowledgment for the item, such as a defer change acknowledgment command returned from the process described at block 902 .
- metadata associated with the item may include the defer change acknowledgment command. If the change acknowledgment is deferred, then processing flows to block 918 ; otherwise, processing flows to block 920 .
- the item changes to be in a TIMEOUT state to be scheduled for re-evaluation independent of an evaluation backlog.
- the item may be assigned a defer expiration time.
- the defer expiration time may be based an arbitrary value, such as, but not limited to, greater than zero and less than one second.
- a defer change acknowledgment command is returned to a calling process.
- metadata associated with the item may include an indication of the defer change acknowledgment command. Processing then flows to decision block 922 .
- the item changes to be in a TIMEOUT state to be scheduled for re-evaluation independent of an evaluation backlog.
- the item may be assigned a new expiration time.
- the new expiration time may be the same as the defer expiration time.
- the new expiration time may be different than the defer expiration time.
- the new expiration time may be any suitable value, such as greater than zero and less than one second.
- assigning the new expiration time may be similar to that which is described at block 512 of FIG. 5 for assigning a new expiration time.
- the invention is not so limited, and other expiration times may be employed for the new expiration time and/or the defer expiration time.
- a new expiration time may be assigned based on an evaluation backlog, such as is described above in conjunction with FIG. 7 .
- a change acknowledgment command is returned to a calling process.
- metadata associated with the item may include an indication of the change acknowledgment command. Processing then flows to decision block 922 .
- FIG. 10 illustrates a logical flow diagram generally showing one embodiment of an overview process for determining if an item is a new item or is determined to be an existing item.
- Process 1000 of FIG. 10 may represent actions taken at block 902 of FIG. 9 .
- Process 1000 begins, after a start block, at decision block 1006 , where a determination is made whether a change acknowledgment of the item was previously deferred.
- the change acknowledgment may be deferred if the item was processed for a possible change, but processing was not complete, such as, but not limited to, not reading an item to end of file.
- the item may include an attribute that identifies if the change acknowledgment was previously deferred.
- metadata associated with the item may include a defer change acknowledgment command. If the change acknowledgment of the item was previously deferred, processing flows to block 1008 ; otherwise, processing flows to block 1012 .
- Block 1008 is described in more detail below in conjunction with FIG. 15 . Briefly, however, at block 1008 , a determination is made whether additional data was written to the previously deferred item. Process 1000 then proceeds to decision block 1010 , where a determination is made whether to defer the item.
- an item may include an indication to defer the item, such as a defer change acknowledgment command returned from a process described at block 1008 . If the item is not deterred, processing flows to block 1011 ; otherwise, processing flows to block 1024 .
- a done command is returned to a calling process.
- the done command indicates that an item has been completely written to, such that the completely written item can be distinguished from a partially written item. For example, in some embodiments a combination of an end of item heuristics and the done command can distinguish between a partially written item and a completely written item. Processing then returns to a calling process to perform other actions.
- an item descriptor may be an abstract indicator for accessing an item, such as, but not limited to, an integer, a file handle, or the like.
- a cache may store a predefined number of item descriptors, such as, for example, 100 item descriptors may be stored in a cache.
- Process 1000 then proceeds to decision block 1014 , where a determination is made whether an item size is smaller than an item identifier size.
- the item identifier may be based on contents of the item. In one embodiment, the item identifier may be based on a defined amount of data. In another embodiment, the item identifier may be based on a number of bytes of data in the item, such as, but not limited to, a first 256 bytes starting at a beginning of the item. However, the invention is not so limited; rather other item identifier sizes may be employed without departing from the scope or spirit of the invention.
- Block 1016 is described in more detail below in conjunction with FIG. 11 . Briefly, however, at block 1016 , a small item identifier is analyzed to detect if the item is a new or existing item. Processing then flows to block 1024 .
- compression may be determined by an item-type extension in a name of the item (e.g. “.gz”). If the item is compressed, processing flows to block 1020 ; otherwise, processing flows to block 1022 .
- Block 1020 is described in more detail below in conjunction with FIG. 12 . Briefly, however, at block 1020 , the compressed item is analyzed to detect if item is a new or existing item. Processing then flows to block 1024 .
- Block 1022 is described in more detail below in conjunction with FIG. 13 . Briefly, however, at block 1022 , an identifier collision is analyzed to detect if the item is a new or existing item. Proceeding next to decision block 1023 , a determination is made whether the item has an unresolved identifier. In some embodiments, an unresolved identifier may be returned from the process described at block 1022 . If the item does not have an unresolved identifier, then processing flows to block 1024 ; otherwise, processing returns to a calling process to perform other actions.
- Block 1024 is described in more detail below in conjunction with FIG. 14 . Briefly, however, at block 1024 , an end of the item is determined and a defer change acknowledgment command is returned. Processing then returns to a calling process to perform other actions.
- FIG. 11 illustrates a logical flow diagram generally showing one embodiment of a process for determining if an item is new or existing depending on its size.
- process 1100 of FIG. 11 represents actions that may be taken at block 1016 of FIG. 10 .
- Process 1100 begins, after a start block, at block 1106 , where an item identifier is determined based on a name of a current item.
- the item name may refer to an alphanumeric label corresponding to an item.
- the item name may include one or more item-type extensions, such as “.doc”, “.txt”, “.log”, “.gz”, or the like.
- the item identifier may be a cyclic redundancy check (CRC) checksum of the item name.
- CRC cyclic redundancy check
- the invention is not so limited; and, the item identifier may employ other unique identifiers derived from the item name.
- Processing continues to decision block 1108 , where a determination is made whether a record is found based on the item identifier.
- a record of historical data is maintained for each of a plurality of previously processed items.
- a previously processed item is an item that was previously reviewed.
- the record may include a plurality of information about an item, such as, but not limited to, the item identifier, an end of file pointer, an end of item identifier, or the like. If a record is not found, then processing flows to block 1110 ; otherwise, processing flows to block 1112 .
- the item is recognized as a new item and is returned to a calling process to be processed as a new item. Processing then returns to a calling process to perform other actions.
- a stored end of item identifier is obtained from the record for the item identifier.
- the stored end of item identifier may be an end of item identifier that was stored for the item during previous processing of the item.
- the end of item identifier may be a unique identifier that is based on content of the item.
- the end of item identifier may be a CRC checksum of a last 256 bytes of the content of the item.
- other suitable numbers of bytes may be utilized to generate an end of item identifier.
- the number of bytes utilized to generate the end of item identifier may correspond to an item size.
- the invention is not limited to a CRC checksum; rather, the item identifier may employ other unique identifiers derived from the content of the item without departing from the scope or spirit of the invention.
- Process 1100 then proceeds to block 1114 , where a stored end of item pointer is obtained from the record for the item identifier.
- the stored end of item pointer may be a reference to an end of the item that was stored during previous processing of the item.
- the stored end of item pointer may be a reference to a last byte of the previously process item.
- the last byte may be the last byte that was previously read from the item.
- a current end of item identifier is determined for the item based on the stored end of item pointer.
- the current end of item identifier may be an end of item identifier for a current item that is based on a predetermined amount of content preceding the stored end of item pointer of the current item.
- the predetermined amount of content may be 256 bytes of data.
- the current end of item identifier may be a CRC checksum of up to the predetermined amount of data of the current item that precedes the stored end of item pointer.
- a number of bytes utilized to generate the current end of file identifier may be equal to the number of bytes utilized to generate the stored end of item identifier.
- the stored end of file pointer is 180 bytes and that the stored end of item identifier was based on the 180 byes. If a current item size is 200 bytes, then the current end of item identifier may be a CRC checksum of the bytes preceding byte 180 of the current item.
- Processing then flows to decision block 1118 where a determination is made whether the stored end of item identifier matches the current end of item identifier. In one embodiment, a match may be determined if the CRC checksum of the stored end of item identifier is equal to the CRC checksum of the current end of item identifier. If the stored end of item identifier matches the current end of item identifier, then processing flows to block 1120 ; otherwise, processing flows to block 1110 .
- the item is recognized as an existing item and is returned to a calling process to be processed as an existing item. Processing then returns to a calling process to perform other actions.
- FIG. 12 illustrates a logical flow diagram generally showing one embodiment of a process for determining if an item is new or existing depending on if the item was compressed.
- Process 1200 of FIG. 12 may, in one embodiment, represent actions taken at block 1020 of FIG. 10 .
- Process 1200 begins, after a start, block, at block 1202 , where the item is decompressed.
- Decompression may include any suitable data decompression algorithm that corresponds to the algorithm utilized to compress the item.
- a predetermined amount of content of the item may be decompressed to determine and/or generate an item identifier.
- Process 1200 then proceeds to block 1204 , where an item identifier is determined for the item based on a predetermined amount of content of the item.
- the item identifier may be a CRC checksum of a first 256 bytes of the item. In other embodiments, other suitable numbers of bytes may be utilized to generate the item identifier.
- other unique identifiers derived from the content of the item may be employed without departing from the scope or spirit of the invention.
- Processing continues at decision block 1206 , where a determination is made whether a record is found based on the item identifier. Determining whether a record is found may be performed similar to that which is described at block 1108 of FIG. 11 for determining whether a record is found. In any event, if a record is not found then processing flows to block 1208 ; otherwise, processing flows to block 1210 .
- the item is recognized as a new item and is returned to a calling process to be processed as a new item.
- processing the new item may include re-decompressing the item. Processing then returns to a calling process to perform other actions.
- a stored end of item identifier is obtained from the record for the item identifier. Obtaining the stored end of item identifier may be similar to that which is described at block 1112 of FIG. 11 for obtaining the stored end of item identifier. Process 1200 then continues to block 1212 , where a stored end of item pointer is obtained from the record for the item identifier. Obtaining the stored end of item pointer may be performed similar to that which is described at block 1114 of FIG. 11 for obtaining the stored end of item pointer.
- a current end of item identifier is determined for the item based on the stored end of item pointer.
- the item may be decompressed up to the stored end of item pointer. Determining the current end of item identifier may be similar to that which is described at block 1116 of FIG. 11 for determining the current end of item identifier. In one embodiment, the current end of item identifier may be determined utilizing different content of the item than the content utilized to generate the item identifier at block 1204 .
- Process 1200 then flows to decision block 1216 , where a determination is made whether the stored end of item identifier matches the current end of item identifier. Determining whether the current end of item identifier matches the stored end of item identifier may be similar to that which is described at block 1118 of FIG. 11 for determining whether the current end of item identifier matches the stored end of item identifier. If the stored end of item identifier matches the current end of item identifier, then processing flows to block 1220 ; otherwise, processing flows to block 1208 .
- the item is recognized as an existing item and is returned to a calling process to be processed as an existing item. Processing then returns to a calling process to perform other actions.
- FIG. 13 illustrates a logical flow diagram generally showing one embodiment of a process for determining if an item is new or existing depending on an identifier collision.
- An identifier collision may occur if two or more different items have a same item identifier.
- Process 1300 of FIG. 13 may represent one embodiment of actions taken at block 1022 of FIG. 10 .
- Process 1300 begins, after a start block, at block 1302 , where an item identifier is determined for the current item based on content of the current item. Determining an item identifier may be performed similar to that which is described at block 1202 of FIG. 12 for determining an item identifier.
- Processing continues at decision block 1304 , where a determination is made whether a record is found based on the item identifier. Determining whether a record is found may be similar to that which is described at block 1108 of FIG. 11 for determining whether a record is found. If a record is not round, then processing flows to block 1306 ; otherwise, processing flows to block 1308 . At block 1306 , the item is recognized as a new item and is returned to a calling process to be processed as a new item. Processing then returns to a calling process to perform other actions.
- a stored end of item pointer is obtained from the record for the item identifier. Obtaining the stored end of item pointer may be similar to that which is described at block 1114 of FIG. 11 for obtaining the stored end of item pointer.
- a stored item name identifier is obtained from the record based on the item identifier.
- the stored item name identifier may be an item name identifier that was stored for the item during previous processing of the item.
- the item name identifier may be a unique identifier that is based on a name of the item. In one embodiment, the item name identifier may be a cyclic redundancy check (CRC) checksum of the item name.
- CRC cyclic redundancy check
- the invention is not so limited; rather, the item name identifier may employ other unique identifiers derived from the item name without departing from the scope or spirit of the invention.
- Processing then flows to block 1322 , where a current item name identifier is determined based on the item name of the current item.
- the current item name identifier may be a cyclic redundancy check (CRC) checksum of the item name of the current item.
- CRC cyclic redundancy check
- Process 1300 then proceeds to decision block 1324 , where a determination is made whether the stored item name identifier matches the current item name identifier. In one embodiment, a match may be determined if the CRC checksum of the stored end of item identifier is equal to the CRC checksum of the current end of item identifier. If the stored item name identifier does not match the current item name identifier, then processing flows to block 1326 ; otherwise, processing flows to block 1318 .
- an unresolved identifier is returned to a calling process to indicate that the current item is indeterminable as a new item or an existing item.
- the unresolved identifier may be included in metadata associated with the item. Processing then returns to a calling process to perform other actions.
- a stored end of item identifier is obtained from the record for the item identifier.
- Obtaining the stored end of item identifier may be similar to that which is described at block 1112 of FIG. 11 for obtaining the stored end of item identifier.
- Process 1300 then continues to block 1314 , where a current end of item identifier is determined for the item based on the stored end of item pointer. Determining the current end of item identifier may be similar to that which is described at block 1116 of FIG. 11 for determining the current end of item identifier. In one embodiment, the current end of item identifier may be determined utilizing different content of the item than the content utilized to generate the item identifier at block 1204 .
- Process 1300 then flows to decision block 1316 , where a determination is made whether the stored end of item identifier matches the current end of item identifier. Determining whether the current end of item identifier matches the stored end of item identifier may be similar to that which is described at block 1118 of FIG. 11 for determining whether the current end of item identifier matches the stored end of item identifier. If the stored end of item identifier matches the current end of item identifier, then processing flows to block 1318 ; otherwise, processing flows to block 1320 .
- the item is recognized as an existing item and is returned to a calling process to be processed as an existing item. Processing then returns to a calling process to perform other actions.
- FIG. 14 illustrates a logical flow diagram generally showing one embodiment of a process for determining if a new or existing item is to be deferred depending on an end of item.
- Process 1400 of FIG. 14 may, in one embodiment, represent actions taken during block 1024 of FIG. 10 .
- Process 1400 begins, after a start block, at block 1402 , where a determination is made as to remaining data in an item to be analyzed. In one embodiment, determining the remaining data may be based on a comparison of an amount of data previously processed and a current item size.
- Process 1400 then proceeds to decision block 1404 , where a determination is made whether the remaining data is a multiple of a predetermined value.
- remaining data that is a multiple of a predetermined value may indicate that the item is being written from an operating system that buffers data.
- the predetermined value may be based on a size of an operating system buffer. In one non-limiting and non-exhaustive example, the predetermined value may be 512 bytes. If the end of item is a multiple of a predetermined value, processing flows to block 1408 ; otherwise, processing flows to block 1406 .
- a done command is returned to a calling process.
- the done command indicates that an item has been completely written to, such that the completely written item can be distinguished from a partially written item.
- a defer change acknowledgment command is returned to a calling process.
- the defer change acknowledgment command may be a tag, pointer, or other indicator that corresponds to the item.
- metadata associated with the item may include the defer change acknowledgment command.
- the item is kept open for additional processing. Processing then returns to a calling process to perform other actions.
- FIG. 15 illustrates a logical flow diagram generally showing one embodiment of a process for processing a previously deferred item.
- Process 1500 of FIG. 15 begins, after a start block, at decision block 1502 , where a determination is made whether an item descriptor is stored for a current item. An item descriptor may have been stored when the item was previously processed, such as at block 1012 of FIG. 10 . If the item descriptor is not stored for the item, then processing flows to block 1504 ; otherwise, processing flows to decision block 1508 .
- the item descriptor for the item is obtained, such as from an operating system, or other source.
- Processing then flows to decision block 1508 where a determination is made whether a stored end of item pointer for the current item matches the end of item for the current item.
- the stored end of item pointer may be a reference to an end of the item that was stored during previous processing of the item.
- the stored end of item pointer may be stored in a cache.
- the stored end of item pointer may be included in metadata associated with the item.
- the end of item for the current item may be a current item size.
- the end of item for the current item may be obtained by processing the item, such as by reading the item, to an end of the item. If the stored end of item pointer does not match the end of item, then processing flows to block 1510 ; otherwise, processing flows to block 1512 .
- a defer change, acknowledgment command is returned to a calling process.
- Returning a defer change acknowledgment command may be similar to that which is described at block 1408 of FIG. 14 for returning a defer change acknowledgment command. Processing then returns to a calling process to perform other actions.
- processing flows to block 1512 .
- a change acknowledgment command is returned to a calling process. Processing then returns to a calling process to perform other actions.
- each block of the flowchart illustration, and combinations of blocks in the flowchart illustration can be implemented by computer program instructions.
- These program instructions may be provided to a processor to produce a machine, such that the instructions, which execute on the processor, create means for implementing the actions specified in the flowchart block or blocks.
- the computer program instructions may be executed by a processor to cause a series of operational steps to be performed by the processor to produce a computer-implemented process such that the instructions, which execute on the processor to provide steps for implementing the actions specified in the flowchart block or blocks.
- the computer program instructions may also cause at least some of the operational steps shown in the blocks of the flowchart to be performed in parallel.
- blocks of the flowchart illustration support combinations of means for performing the specified actions, combinations of steps for performing the specified actions and program instruction means for performing the specified actions. It will also be understood that each block of the flowchart illustration, and combinations of blocks in the flowchart illustration, can be implemented by special purpose hardware-based systems, which perform the specified actions or steps, or combinations of special purpose hardware and computer instructions.
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Databases & Information Systems (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Debugging And Monitoring (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
Embodiments are directed towards a dynamic change evaluation mechanism, whereby items having a detected possible change are scheduled for re-evaluation for possible changes at a higher frequency than items detected to not have previously changed, while those items detected as not to have changed are dynamically scheduled for re-evaluation based on an evaluation backlog that may be in turn based, in part, on a time from when an item is assigned an expiration time to when the item is evaluated. In one embodiment, a possibly changed item may be assigned a new expiration time independent of the evaluation backlog. In another embodiment, if no change is detected, then the item may be assigned a new expiration time as a function of a previous expiration time and on the evaluation backlog.
Description
- The present application is a Continuation of U.S. application Ser. No. 13/076,263 filed Mar. 30, 2011, entitled “SYSTEM AND METHOD FOR FAST FILE TRACKING AND CHANGE MONITORING,” the benefit of the earlier filing date of which is hereby claimed under 35 U.S.C. §120 and 37 C.F.R. §1.78 and which is further incorporated by reference.
- The present invention relates generally to monitoring files and other items from various computing systems and, more particularly, but not exclusively to determining how often to schedule an item for evaluation for a possible change to the item based on whether the item possibly changed and further based on a backlog of other items for evaluation that may have delayed evaluation of the item.
- Today, many companies perform business-related activities on computer systems, networks, or the like, which can range from a single computer for a small company to a hierarchy of servers and a plurality of user computer nodes for a large corporation. Business-related activities create the backbone of a company's information technology (IT) operation, and can include almost any computer use, from sending and receiving emails, to creating and storing documents, hosting web sites, facilitating online transactions, or the like. Therefore, any system errors or failures that are not quickly detected and resolved can percolate throughout the system and can cause great financial hardship to a company. Thus, it is desirable that troubleshooting system errors be fast and efficient. Similarly, a company may want to monitor the performance of its computer systems and networks to prevent errors from occurring, as well as to look for inefficiencies in its system for improvement.
- Troubleshooting errors and monitoring system performance generally involves analyzing large amounts of data. As noted above, the financial hardship caused by a system error can sometimes increase as the time to detect and resolve the error increases. Thus, it may be beneficial to monitor data for changes at or near real time to minimize any impacts caused by an error. However, near real time monitoring can be difficult, especially as the amount of data increases. Generally, the more data to be monitored, the longer it may take to check all of the data. In some instances, latency between checks may exponentially increase with an increase in the amount of data that is being monitored. Thus, it is with respect to these considerations and others that the present invention has been made.
- Non-limiting and non-exhaustive embodiments of the present invention are described with reference to the following drawings. In the drawings, like reference numerals refer to like parts throughout the various figures unless otherwise specified.
- For a better understanding of the present invention, reference will be made to the following Detailed Description, which is to be read in association with the accompanying drawings, wherein:
-
FIG. 1 is a system diagram of an environment in which embodiments of the invention may be implemented; -
FIG. 2 shows an embodiment of a client device that may be included in a system such as that shown inFIG. 1 ; -
FIG. 3 shows an embodiment of a network device that may be included in a system such as that shown inFIG. 1 ; -
FIG. 4 illustrates a state diagram generally showing one embodiment of a general overview of state changes of an item; -
FIG. 5 illustrates a logical flow diagram generally showing one embodiment of an overview process for determining how often to schedule an item for an evaluation for a possible change; -
FIG. 6 illustrates a logical flow diagram generally showing one embodiment of a process for evaluating an item for a possible change; -
FIG. 7 illustrates a logical flow diagram generally showing one embodiment of a process for dynamically scheduling an item for re-evaluation for a possible change; -
FIG. 8 illustrates a logical flow diagram generally showing one embodiment of a process for processing items in a READ_DIR state; -
FIG. 9 illustrates a logical flow diagram generally showing one embodiment of a process for processing items in a NOTIFY state; -
FIG. 10 illustrates a logical flow diagram generally showing one embodiment of an overview process for determining if an item is a new or existing item; -
FIG. 11 illustrates a logical flow diagram generally showing one embodiment of a process for determining if an item is new or existing depending on its size; -
FIG. 12 illustrates a logical flow diagram generally showing one embodiment of a process for determining if an item is new or existing depending on if the item was compressed; -
FIG. 13 illustrates a logical flow diagram generally showing one embodiment of a process for determining if an item is new or existing depending on an identifier collision; -
FIG. 14 illustrates a logical flow diagram generally showing one embodiment of a process for determining if a new or existing item is to be deferred; and -
FIG. 15 illustrates a logical flow diagram generally showing one embodiment of a process for determining if additional data was written a previously deferred item. - Throughout the specification and claims, the following terms take the meanings explicitly associated herein, unless the contest clearly dictates otherwise. The phrase “in one embodiment” as used herein does not necessarily refer to the same embodiment, though it may. Furthermore, the phrase “in another embodiment” as used herein does not necessarily refer to a different embodiment, although it may. Thus, as described below, various embodiments of the invention may be readily combined, without departing from the scope or spirit of the invention.
- In addition, as used herein, the term “or” is an inclusive “or” operator, and is equivalent to the term “and/or,” unless the context clearly dictates otherwise. The term “based on” is not exclusive and allows for being based on additional factors not described, unless the context clearly dictates otherwise. In addition, throughout the specification, the meaning of “a,” “an,” and “the” include plural references. The meaning of “in” includes “in” and “on.”
- As used herein, the term “file” refers to a named collection of related data that appears to a user as a single, contiguous block of information and that is retained in computer storage. A directory is a special type of file that may contain a list of file names and/or directory names and a corresponding data structure for each file and directory that it appears to contain.
- As used herein, the term “item” refers to a structured collection of related data produced by a computing system. Such items include, for example, a file, a directory, a socket, queue, or the like. Other collections of related data may also be identified to be an item produced by a computing system, and thus, the above should be construed to be a non-limiting, non-exhaustive example of items that may be considered. In some embodiments, an item may have a beginning of the item and an end of the item. The beginning of the item may refer to a first byte of data that is logically read from the item and the end of the item may refer to a last byte of data that is logically read from the item.
- Items may be considered to have or to reside within a state or condition, such as those described in more detail below. In one embodiment, an item is considered to be in one state at a time. Thus, indications that an item is identified in a given state, implies that the item is not in another state. Thus, states may, in one embodiment, be mutually exclusive.
- In some embodiments, a tag, flag, pointer, or other identifier may be associated with the item indicating the state in which the item may be considered to reside. In other embodiments, a queue, list, or other structure may be used to manage items in a given state. For example, in one embodiment, as an item is identified in a particular state, the item may be considered to be moved onto a queue, list, or other structure associated with that state. In one embodiment, a tag, identifier, flag, or the like, associated with the item may be moved to the queue, or structure, rather than the item itself. In one embodiment, such structure might be organized as a First In/First Out (FIFO) structure. However, other structures may also be employed. In still another embodiment, a tag, identifier, flag, or the like, may be modified to identity a change in a state of an associated item.
- As used herein, the phrase “TIMEOUT state” refers to a condition of an item, where the item is identified to be waiting to be scheduled for evaluation for a possible change. In some embodiments, as noted above, items and/or a related identifier for the items in the TIMEOUT state may reside on (or within) a queue of items, with each item in the queue being in the TIMEOUT state. In one embodiment, a tag, pointer, data field, or other information may indicate an expiration time associated with the item indicating when the item has ‘timed-out,’ and is therefore available for a possible state change.
- As used herein, the phrase “STAT state” refers to a condition of an item, where the item is identified to be waiting to be evaluated for a possible change to the item. In one embodiment, items may be in a defined order or sequence in the STAT state. In some embodiments, items in the STAT state may be considered to reside within a STAT queue of items. In one embodiment, the STAT state (or queue) may be a first-in, first-out (FIFO) queue. However, as noted above for the TIMEOUT state, other structures, and configurations are also envisaged.
- As used herein, the phrase “NOTIFY state” refers to a condition of an item, where the item is identified to be waiting to be processed, such as, but not limited to, determining if the item is a new or existing item and processing a change in the item. In some embodiments, items considered to be in the NOTIFY state may be considered to reside on or within a NOTIFY queue of items, each item in the queue being within the NOTIFY state. In one embodiment, the NOTIFY state (or queue) may be a FIFO queue.
- As used herein, the phrase “READ_DIR state” refers to a condition of an item that is a directory, where the directory is identified to be waiting to be processed, such as, but not limited to, reading the directory to determine if there is a change to the directory.
- As used herein, the phrase “unresolved identifier” refers to one or more identifiers of an item that are identical to corresponding identifiers of another item, such that the item may be indistinguishable from the other item as being a new or existing item.
- As used herein, the phrase “NO_ACTION state” refers to a condition of an item, where the item is defined as no longer anticipating a state change, based in part on an unresolved identifier, or the like. As noted, other configurations and representations of item states are also envisaged, and thus, the states of an item are not limited by a particular implementation structure and/or configuration.
- The following briefly describes the embodiments of the invention in order to provide a basic understanding of some aspects of the invention. This brief description is not intended as an extensive overview. It is not intended to identify key or critical elements, or to delineate or otherwise narrow the scope. Its purpose is merely to present some concepts in a simplified form as a prelude to the more detailed description that is presented later.
- Briefly stated, embodiments are directed towards a dynamic change evaluation mechanism, whereby items having a detected possible change are scheduled for re-evaluation for possible changes at a higher frequency than items detected to not have previously changed, while those items detected as not to have changed are dynamically scheduled for re-evaluation based, in part, on a measure of a backlog of other items scheduled for evaluation that may have delayed evaluation of the item. As used herein, the measure of this backlog is referred to as an “evaluation backlog”. In one embodiment, a possible change to an item may be detected based on detecting a change to metadata associated with the item, such as a change in a timestamp metadata associated with the item.
- In one embodiment, scheduling each item for evaluation for a possible change may be based on an assigned expiration time. The expiration time may be set initially based on a variety of criteria, including based on a time value that is directed towards seeking to re-evaluate changed items for other changes at or near real-time. When the item is evaluated, a new expiration time is assigned to the item based on whether a possible change is detected or not. In one embodiment, if no change is detected, then the item may be assigned a new expiration time as a function of a previous expiration time and on an evaluation backlog that represents a backlog of items that may have delayed evaluation of the item. In one embodiment, the evaluation backlog may be based, in part, on a time from when an item is assigned an expiration time to when the item is evaluated for a possible change. In some embodiments, the new expiration time may be greater or less than the previous expiration time depending on the evaluation backlog. In another embodiment, if a possible change is detected, then the item may be further processed before it is scheduled for re-evaluation. In one embodiment, the possibly changed item may be assigned a new expiration time that is independent of the evaluation backlog. For example, in one embodiment, an item that is detected to have changed may be assigned a new expiration time that seeks to increase a frequency of re-evaluating the item over evaluating other items that did not change.
- As described in more detail below, items may be evaluated to detect a possible change. Possible changes to an item may be based, in one embodiment, on detecting a change to selected metadata associated with the item. For example, in one embodiment, a creation time, item size, or other metadata, might be detected to have changed from when the item was previously evaluated for a possible change. Items identified to have a possible change may be further evaluated to determine if the item actually changed. For example, content of the item might be evaluated to determine whether the content of the item changed. In some instances, the selected metadata may have changed, but the content of the item did not change. In such instances, the item may be identified to have not changed. However, if the content of the item is determined to have changed, in one embodiment, this may be sufficient to indicate that the item is changed. That is, a possible change to an item based on metadata analysis, does not necessarily indicate that the item actually changed, although it might have. Moreover, as described in more detail below, an item may be determined to have changed or have not changed based on further evaluation of various characteristics of the item, including a hash associated with the item, an item size, a name of the item, or the like.
- Items that have been determined to have changed may then be employed to troubleshoot and/or monitor the performance of a computing system that is providing the items. In some embodiments, such troubleshooting and monitoring may include detecting and/or resolving system errors, determining opportunities to improve system performance, or the like.
-
FIG. 1 shows components of one embodiment of an environment in which the invention may be practiced. Not all the components may be required to practice the invention, and variations in the arrangement and type of the components may be made without departing from the spirit or scope of the invention. As shown,system 100 ofFIG. 1 includes local area networks (“LANs”)/wide area networks (“WANs”)-(network) 107, client devices 101-103, and Item Change Notification and Detection Device (ICNDD) 109. - One embodiment of client devices 101-103 is described in more detail below in conjunction with
FIG. 2 . Generally, however, client devices 101-103 may include virtually any computing device capable of communicating over a network to send and receive information, including items, performing various online activities, offline actions, or the like. In one embodiment, one or more of client devices 101-103 may be configured to operate within a business or other entity to perform a variety of services for the business or other entity. For example, client devices 101-103 may be configured to operate as a web server, an accounting server, a production server, an inventory server, or the like. However, client devices 101-103 are not constrained to these services and may also be employed, for example, as an end-user computing node, in other embodiments. Further, it should be recognized that more or less client devices may be included within a system such as described herein, and embodiments are therefore not constrained by the number or type of client devices employed. - The set of such devices may include devices that typically connect using a wired or wireless communications medium such as personal computers, servers, multiprocessor systems, microprocessor-based or programmable consumer electronics, network PCs, or the like. In one embodiment, at least some of client devices 101-103 may operate over wired and/or wireless network. In some embodiments, client devices 101-103 may include virtually any portable computing device capable of receiving and sending a message over a network, such as
network 107. - Client devices 101-103 also may include at least one other client application that is configured to receive and/or send data, including items, between another computing device. The client application may include a capability to provide and/or to receive requests for items, or the like. However, the client application need not be limited to merely providing items, and may also provide other information, and/or provide for a variety of other services, including, for example, monitoring for items within and/or between client devices.
- The client application may further provide information that identifies itself, including a type, capability, name, and the like. Such information may be provided in a network packet, or the like, sent between other client devices,
ICNDD 109, or other computing devices. -
Network 107 is configured to couple network devices with other computing devices, including,ICNDD 109, and client devices 101-103.Network 107 is enabled to employ any form of computer readable media for communicating information from one electronic device to another. Also,network 107 can include the Internet in addition to local area networks (LANs), wide area networks (WANs), direct connections, such as through a universal serial bus (USB) port, other forms of computer-readable media, or any combination thereof. On an interconnected set of LANs, including those based on differing architectures and protocols, a router acts as a link between LANs, enabling messages to be sent from one to another. In addition, communication links within LANs typically include twisted wire pair or coaxial cable, while communication links between networks may utilize analog telephone lines, full or fractional dedicated digital lines including T1, T2, T3, and T4, and/or other carrier mechanisms including, for example, E-carriers, Integrated Services Digital Networks (ISDNs), Digital Subscriber Lines (DSLs), wireless links including satellite links, or other communications links known to those skilled in the art. Moreover, communication links may further employ any of a variety of digital signaling technologies, including without limit, for example, DS-0, DS-1, DS-2, DS-3, DS-4, OC-3, OC-12, OC-4S, or the like. Furthermore, remote computers and other related electronic devices could be remotely connected to either LANs or WANs via a modem and temporary telephone link. In one embodiment,network 107 may be configured to transport information of an Internet Protocol (IP). In essence,network 107 includes any communication method by which information may travel between computing devices. - Additionally, communication media typically embodies computer-readable instructions, data structures, program modules, or other transport mechanism and includes any information delivery media. By way of example, communication media includes wired media such as twisted pair, coaxial cable, fiber optics, wave guides, and other wired media and wireless media such as acoustic, RF, infrared, and other wireless media.
- In some embodiments,
network 107 may be further configurable as a wireless network, which may further employ a plurality of access technologies including 2nd (2G), 3rd (3G), 4th (4G) generation radio access for cellular systems, WLAN, Wireless Router (WR) mesh, and the like. In one non-limiting example,network 107, when configured as a wireless network, may enable a radio connection through a radio network access such as Global System for Mobile communication (GSM), General Packet Radio Services (GPRS), Enhanced Data GSM Environment (EDGE), Wideband Code Division Multiple Access (WCDMA), and the like. - One embodiment of
ICNDD 109 is described in more detail below in conjunction withFIG. 3 . Briefly, however,ICNDD 109 includes virtually any network device usable to operate to receive and/or analyze items from client devices 101-103.ICNDD 109 may, for example, be configured to perform item update notification and/or item change detection. In one embodiment, an item update notifier may be employed to determine how often to schedule an item for evaluation for a possible change to the item. In one embodiment, an item may be scheduled for re-evaluation based on whether the item possibly changed and further based on an evaluation backlog. In another embodiment, an item change detector may be employed to manage and track item identification for new and existing items. The item update notifier and/or the item change detector may be employed by one or more other applications to track items and/or analyze item identification.ICNDD 109 may employ processes such as described below in conjunction withFIGS. 5-15 to perform at least some of its actions. - Devices that may operate as ICNDD 109 include various network devices, including, but not limited to personal computers, desktop computers, multiprocessor systems, microprocessor-based or programmable consumer electronics, network PCs, server devices, network appliances, and the like.
- Although
FIG. 1 illustratesICNDD 109 as a two computing devices, the invention is not so limited. For example, in one embodiment, one or more functions of theICNDD 109 may be performed on a single network device. Similarly, in another embodiment, one or more functions of theICNDD 109 may be distributed across one or more distinct network devices. For example, item update notification may be performed on one network device, while item change detection may be perform on a different network device. Moreover,ICNDD 109 is not limited to a particular configuration. Thus, in one embodiment,ICNDD 109 may contain a plurality of network devices to perform item update notification and/or item change detection. Similarly, in another embodiment,ICNDD 109 may contain a plurality of network devices that operate using a master/slave approach, where one of the plurality of network devices ofICNDD 109 operates to manage and/or otherwise coordinate operations of the other network devices. In other embodiments, theICNDD 109 may operate as a plurality of network devices within a cluster architecture, a peer-to-peer architecture, and/or even within a cloud architecture. Thus, the invention is not to be construed as being limited to a single environment, and other configurations, and architectures are also envisaged. -
FIG. 2 shows one embodiment ofclient device 200 that may be included in a system implementing embodiments of the invention.Client device 200 may include many more or less components than those shown inFIG. 2 . However, the components shown are sufficient to disclose an illustrative embodiment for practicing the present invention.Client device 200 may represent, for example, one embodiment of at least one of client devices 101-103 ofFIG. 1 . - As shown in the figure,
client device 200 includes processing unit (CPU) 202 in communication with amass memory 226 via abus 234.Client device 200 also includes apower supply 228, one ormore network interfaces 236, anaudio interface 238, adisplay 240, and an input/output interface 248.Power supply 228 provides power toclient device 200. -
Network interface 236 includes circuitry forcoupling client device 200 to one or more networks, and is constructed for use with one or more communication protocols and technologies including, but not limited to, global system for mobile communication (GSM), code division multiple access (CDMA), time division multiple access (TDMA), user datagram protocol (UDP), transmission control protocol/Internet protocol (TCP/IP), SMS, general packet radio service (GPRS), WAP, ultra wide band (UWB), IEEE 802.16 Worldwide Interoperability for Microwave Access (WiMax), SIP/RTP, or any of a variety of other communication protocols.Network interface 236 is sometimes known as a transceiver, transceiving device, or network interface card (NIC). -
Audio interface 238 is arranged to produce and receive audio signals such as the sound of a human voice. For example,audio interface 238 may be coupled to a speaker and microphone (not shown) to enable telecommunication with others and/or generate an audio acknowledgment for some action.Display 240 may be a liquid crystal display (LCD), gas plasma, light emitting diode (LED), or any other type of display used with a computing device.Display 240 may also include a touch sensitive screen arranged to receive input from an object such as a stylus or a digit from a human hand. -
Client device 200 also comprises input/output interface 248 for communicating with external devices, such as a keyboard, or other input or output devices not shown inFIG. 2 . Input/output interface 248 can utilize one or more communication technologies, such as USB, infrared, Bluetooth™, or the like. -
Mass memory 226 includes aRAM 204, aROM 222, and other storage means.Mass memory 226 illustrates an example of computer readable storage media (devices) for storage of information such as computer readable instructions, data structures, program modules or other data.Mass memory 226 stores a basic input/output system (“BIOS”) 224 for controlling low-level operation ofclient device 200. The mass memory also stores anoperating system 206 for controlling the operation ofclient device 200. It will be appreciated that this component may include a general-purpose operating system such as a version of UNIX, or LINUX™, or a specialized client communication operating system such as Windows Mobile™, or the Symbian® operating system. The operating system may include, or interface with a Java virtual machine module that enables control of hardware components and/or operating system operations via Java application programs. -
Mass memory 226 further includes one ormore data storage 208, which can be utilized byclient device 200 to store, among other things,applications 214 and/or other data. For example,data storage 208 may also be employed to store information that describes various capabilities ofclient device 200. The information may then be provided to another device based on any of a variety of events, including being sent as part of a header during a communication, sent upon request, or the like. At least a portion of the information may also be stored on a disk drive or other computer-readable storage device 230 withinclient device 200.Data storage 208 may further storeitems 210.Items 210 may include, for example, files, directories, or the like.Such items 210 may also be stored within any of a variety of other computer-readable storage devices, including, but not limited to a hard drive, a portable storage device, or the like, such as illustrated by computer-readable storage device 230. -
Applications 214 may include computer executable instructions which, when executed byclient device 200, transmit, receive, and/or otherwise process network data. Other examples of application programs include calendars, search programs, email clients, IM applications, SMS applications, VOIP applications, contact managers, task managers, transcoders, database programs, word processing programs, security applications, spreadsheet programs, games, search programs, data log recording programs, and so forth.Applications 214 may include, for example,data forwarder 220. In some embodiments,ICNDD 109 ofFIG. 1 may be configured to provide a downloadable tool, such asdata forwarder 220, toclient device 200.Data forwarder 220 may be configured to send data, such asitems 210, to another network device, such asICNDD 109 ofFIG. 1 .Items 210 may be sent toICNDD 109 based on a request fromICNDD 109, or other network device. However,items 210 may also be sent based on a time, a change in a state ofclient device 200, or any of a variety of other criteria. -
FIG. 3 shows one embodiment of anetwork device 300, according to one embodiment of the invention.Network device 300 may include many more or less components than those shown. The components shown, however, are sufficient to disclose an illustrative embodiment for practicing the invention.Network device 300 may be configured to operate as a server, client, peer, or any other device.Network device 300 may represent, forexample ICNDD 109 ofFIG. 1 . -
Network device 300 includesprocessing unit 302, an input/output interface 332,video display adapter 336, and a mass memory, all in communication with each other viabus 326. The mass memory generally includesRAM 304,ROM 322 and one or more permanent mass storage devices, such ashard disk drive 334, tape drive, optical drive, and/or floppy disk drive. The mass memorystores operating system 306 for controlling the operation ofnetwork device 300. Any general-purpose operating system may be employed. Basic input/output system (“BIOS”) 324 is also provided for controlling the low-level operation ofnetwork device 300. As illustrated inFIG. 3 ,network device 300 also can communicate with the Internet, or some other communications network, vianetwork interface unit 330, which is constructed for use with various communication protocols including the TCP/IP protocol.Network interlace unit 330 is sometimes known as a transceiver, transceiving device, or network interface card (NIC). -
Network device 300 also comprises input/output interface 332 for communicating with external devices, such as a keyboard, or other input or output devices not shown inFIG. 3 . Input/output interface 332 can utilize one or more communication technologies, such as USB, infrared, Bluetooth™, or the like. - The mass memory as described above illustrates another type of computer-readable media, namely computer-readable storage media and/or processor-readable storage medium. Computer-readable storage media (devices) may include volatile, nonvolatile, removable, and non-removable media implemented in any method or technology for storage of information, such as computer readable instructions, data structures, program modules, or other data. Examples of computer readable storage media include RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disks (DVD) or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other non-transitory physical medium which can be used to store the desired information and which can be accessed by a computing device.
- As shown,
data storage 308 may include a database, text, spreadsheet, folder, file, or the like, that may be configured to maintain and store user account identifiers, user profiles, email addresses, IM addresses, and/or other network addresses; or the like.Data stores 308 may further include program code, data, algorithms, and the like, for use by a processor, such as central processing unit (CPU) 302 to execute and perform actions. In one embodiment, at least some ofdata store 308 might also be stored on another component ofnetwork device 300, including, but not limited to computer-readable storage device 328,hard disk drive 334, or the like.Data storage 308 may further storeitems 310.Items 310 may include files, directories, or the like received from another network device, such asclient device 200 ofFIG. 2 . In one embodiment,data storage 308 may further store and/or otherwise manage various queues, flags, pointers, lists, and/or other data structures useable to manage states of items residing withinitems 310. - The mass memory also stores program code and data. One or
more applications 314 are loaded into mass memory and run onoperating system 306. Examples of application programs may include transcoders, schedulers, calendars, database programs, word processing programs, HTTP programs, customizable user interface programs, IPSec applications, encryption programs, security programs, SMS message servers, account managers, and so forth. Item Update Notifier (IUN) 316 and Item change Detector (ICD) 318 may also be included as application programs withinapplications 314. -
IUN 316 may include virtually any computing component or components configured and arranged to determine how often to schedule an item for evaluation for a possible change to the item. In one embodiment,IUN 316 may schedule an item for re-evaluation based on whether the item possibly changed and further based on an evaluation backlog. In another embodiment,IUN 316 might determine to re-schedule the item for re-evaluation when it is determined that the item possibly changed, independent of (e.g., without concern for) the evaluation backlog. Scheduling items for re-evaluation may be managed, in one embodiment by assigning an expiration time to the item. In one embodiment,IUN 316 may perform actions such as those described below in conjunction withFIGS. 5-9 . -
ICD 318 may be configured and arranged to manage and track item identification for new and existing items. In one embodiment,ICD 318 may employ one or more item identifiers for determining if an item is a new or existing item based on a comparison of the one or more item identifiers with an item record associated with at least one of the item identifiers. In one embodiment,ICD 318 may perform actions such as those described below in conjunction withFIGS. 10-15 . -
FIG. 4 illustrates a state diagram generally showing one embodiment of a general overview of state changes of an item. State diagram 400 includes Item Update Notifier (IUN) 316 and Item Change Detector (ICD) 318.IUN 316 includes five states in which an item may be associated:TIMEOUT state 406,STAT state 408, NOTIFYstate 410,READ_DIR state 412, andNO_ACTION state 414. - An item may be initially identified as being in a
TIMEOUT state 406 with an initially assigned expiration time. When the expiration time for the item expires (416), the item may be scheduled for evaluation by changing fromTIMEOUT state 406 toSTAT state 408. While inSTAT state 408, an item is evaluated to detect a possible change. When there is no change detected to the item (418), then the item changes to be in aTIMEOUT state 406, to be scheduled for re-evaluation based on an evaluation backlog and a previous expiration time. In one embodiment, the item may be assigned a new expiration time as a function of the previous expiration time and on the evaluation backlog. When there is a possible change to the item and the item is a non-new directory (422), then the item changes fromSTAT state 408 toREAD_DIR state 412. However, when there is a possible change to the item and the item is not a non-new directory (420), then the item changes fromSTAT state 408 to NOTIFYstate 410. - While in
READ_DIR state 412, a non-new directory is processed. In one embodiment, processing the non-new directory may include reading the directory for a change. If a new item is detected (424), then the new item is identified as being in aSTAT state 408. If an item is missing (425), then the missing item is identified as being in a NOTIFYstate 410. When the processing of an item inREAD_DIR state 412 is finished (426), the item (e.g. the non-new directory) changes to be in aTIMEOUT state 406 to be scheduled for re-evaluation independent of an evaluation backlog. - While in NOTIFY
state 410, an item is processed byICD 318 and subsequently processed for a change.ICD 318 may return the item as a new or existing item (436) and in some embodiments an unresolved identifier (e.g. the item is indeterminable as a new or existing item). In some embodiments,ICD 318 may return a defer change acknowledgment command or a change acknowledgment command based on if the new or existing item is complete. If a defer change acknowledgment command is returned, then the item changes to be in aTIMEOUT state 406 to be scheduled for re-evaluation (432). In one embodiment, the item is assigned a new expiration time based on a predetermined value, independent of an evaluation backlog. If a change acknowledgment command is returned, then the item changes to be in aTIMEOUT state 406 to be scheduled for re-evaluation (430). In one embodiment, the item may be assigned a new expiration time based on the predetermined value, independent of the evaluation backlog. If the item is a new directory and is “recursed” into (428), then the item changes from NOTIFYstate 410 toREAD_DIR state 412. However, if an item is to be ignored (434), such as if an unresolved identifier is returned byICD 318, then the item changes to be in aNO_ACTION state 414, where the item is anticipated to not change states. - The following further describes, in more detail, the evaluations of items and their state changes and expiration time computations as mentioned above.
- The operation of certain aspects of the invention will now be described with respect to
FIGS. 5-15 . In some embodiments, the processes described with respect toFIGS. 5-15 may be implemented by and/or executed on a single network device, such asnetwork device 300 ofFIG. 3 . In other embodiments, the processes described with respect toFIGS. 5-15 or portions thereof may be implemented by and/or executed on a plurality of network devices, such asnetwork device 300 ofFIG. 3 . -
FIG. 5 illustrates a logical flow diagram generally showing one embodiment of an overview process for dynamically scheduling items for evaluation for a possible change.Process 500 ofFIG. 5 begins, after a start block, atblock 502, where each item of a plurality of stems is identified as being in a TIMEOUT state with an assigned expiration time. In some embodiments, the expiration time may be a system time based on a predetermined value. The system time may refer to an internal clock time of a computing system performing operations on the item. In other embodiments, the expiration time may be a decrementing time counter based on a predetermined value. In one embodiment, the predetermined value may be an arbitrary value, based on a total number of items in a plurality of items and/or system performance (e.g. processor speed, available memory, or the like), or the like. For example, in one embodiment, the predetermined value may be based on a time that computed to seek to schedule evaluation of each item initially as quickly as the system performance is determined to allow, such as approximately in real-time, or the like. Further, in some embodiments, the item may include the assigned expiration time in metadata associated with the item. In one non-limiting example, item metadata may include information indicating when the expiration time is set to expire. - Additionally, at
block 502, an evaluation backlog indicator is initiated. The evaluation backlog indicator may indicate a backlog of items that are scheduled to be evaluated to detect a possible change. In some embodiments, an indication of the backlog may be based on a time difference (or wait time) between a time when an item is assigned an expiration time to when the item is “at a top of a stack” and therefore is to be evaluated or is otherwise selected for evaluation of a possible change to the item. Therefore, in some embodiments, the wait time may be based on a time when the evaluation backlog indicator is initiated and a time when the evaluation backlog indicator is stopped. In some embodiments, the evaluation backlog indicator may be initiated by storing a current system time. In other embodiments, the evaluation backlog indicator may be initiated by starting an incremental time counter. Although embodiments are described as initiating the backlog indicator when an item is assigned an expiration time, the invention is not so limited; and, in other embodiments, the evaluation backlog indicator may be initiated when the item is scheduled for evaluation, such as atblock 506. - Moreover, in some embodiments, the item may include the evaluation backlog indicator for the item in metadata associated with the item. In one non-limiting example, item metadata may include the start time of the evaluation backlog indicator. In any event, it should be recognized that evaluation backlog indicators are assigned to each item, and may be employed to identify a duration for which that item is delayed for evaluation based on a backlog of other items to be evaluated prior to the item.
- In some embodiments, when an item is first identified as being in a TIMEOUT state, data corresponding to the item may be stored in a lookup table, file, or other storage mechanism. In one embodiment, such data may include, but is not limited a name of the item, a hash identifier of the item, or other metadata associated with the item.
-
Process 500 next proceeds to decision block 504, where a determination is made whether an expiration time for an item has expired. As may be seen,process 500 continues fromblock 502 on a by item basis, each item having its own expiration time associated with it. In one embodiment, an expiration time for an item may expire when a decrementing time counter reaches zero or some other defined value. In another embodiment, an expiration time for an item may expire when the system time is equal to the expiration time. Further, in some embodiments, an expired item may be detected based on the items in the TIMEOUT state being ordered in a heap structure according to their assigned expiration time. - In any event, if an expiration time for an item has expired, then processing for that item flows to block 506; otherwise, processing loops back to decision block 504 to monitor other items for expiration of their times. At
block 506, the “expired item” is scheduled to be evaluated for a possible change. In some embodiments, scheduling the item for evaluation may include identifying the item to be in a STAT state. In one embodiment, when the “expired item” is identified in the STAT state, a pointer to the “expired item” may be placed on a FIFO queue to denote the item is in the STAT state. However, other structures, or actions, may also be employed, as discussed elsewhere. -
Process 500 continues to block 508, where the item is evaluated for a possible change. In some embodiments, the item is evaluated for a possible change when the item is at an output location on a STAT queue. Moreover, in some embodiments, evaluating the item for a possible change may include checking selected metadata of the item to determine if there is a possible change to the item. In some embodiments, the metadata may include an item size; one or more timestamps, e.g. an access time, a creation time, a modification time, or the like; a permissions attribute; or the like. The item size may refer to a total number of bytes of data that correspond to the item, such as a length of an item in bytes, or some other measure of a count of data may be employed. A change in an item's selected metadata may suggest a possible change to content of the item. In other embodiments, the contents of the item might be analyzed for a possible change. - Additionally, at
block 508, the evaluation backlog indicator is stopped. As noted above, an indication of a backlog may be based on a wait time between a time when an item is assigned an expiration time to when the item is “at a top of a stack” and therefore is to be evaluated or is otherwise selected for evaluation of a possible change to the item. Therefore, in some embodiments, the wait time may be based on a time when the evaluation backlog indicator is initiated and a time when the evaluation backlog indicator is stopped. In one embodiment, the evaluation backlog indicator may be stopped by storing a stop time based on a current system time. In another embodiment, the evaluation backlog indicator may be stopped by stopping an incremental time counter that corresponds to the item. - Continuing next to decision block 510, a determination is made whether a possible change to the item is detected. In some embodiments, the item's metadata may include an indication that there is a possible change to the item, such as, for example, a change in a permissions attribute, item size, a modification time, or the like. In one embodiment, the metadata associated with the item may be compared to stored metadata to determine if there is a possible change to the item. In another embodiment, a tag, flag, or other identifier may indicate the item has possibly changed. If there is a possible change to the item based on a detected change to the selected metadata, then processing flows to block 511; otherwise, processing flows to
decision block 514. - At
block 511, the possibly changed item is identified to be in a NOTIFY state for further processing. In one embodiment, the possibly changed item may be placed on a queue that denotes items in the NOTIFY state. Processing then proceeds to block 512, where, in one embodiment, a new expiration time is assigned to the item independent of the evaluation backlog. In one embodiment, the new expiration time may be based on a predetermined value. Various values may be selected. For example, where it is desired to re-evaluate items that have changed more frequently than items not having changed, then the predetermined value may be set to a selected low value. For example, the predetermined value may be set to a low value between about 0.001 seconds to about 2.0 seconds. However, other low values may also be selected, based on engineering judgment, characteristics of a computing system including processor speed, memory speed, a number of items in a TIMEOUT state, a number of items across a plurality of different state, or the like. In some embodiments, the predetermined value employed to assign a new expiration time may be the same or different than the predetermined value used to initially assign an expiration time, as described atblock 502. - In one embodiment, for items with a detected possible change, but not an actual change, the new expiration time may be based on the evaluation backlog indicator for the item. However, in another embodiment, those items that have an actual change detected and not merely a possible change might have their expiration times set independent of the evaluation backlog indicator. Thus, the invention is configured to accommodate either or both conditions. If the item is to have its expiration time based on the evaluation backlog indicator for the item, the process might, in one embodiment, flow to
decision block 514. Otherwise, processing continues to block 520. - At
decision block 514, a determination is made whether the wait time for the item is above a threshold value that is based on a previous expiration time. As noted above, in one embodiment, the wait time may be based on a time difference between when the evaluation backlog indicator is initiated and a time when the evaluation backlog indicator is stopped. - In one embodiment, the threshold value may be selected as some percentage of the previous expiration time for the item. In one embodiment, the percentage may be selected to minimize dithering or bouncing about a given time value. For example, the threshold value might be selected to be between about 105% to about 120% of the previous expiration time, to provide a tolerance level in the evaluation. However, the invention is not limited to these values, and others may readily be selected based on engineering judgment, historical data, of the like.
- As noted above, the threshold value for an item may be a function of the previous expiration time of the item, such that a comparison with the wait time of the item may provide an indication as to an evaluation backlog. An evaluation backlog may occur for a variety of reasons. For example, a backlog may occur when a system is not continuously evaluating items and/or the items are not evaluated at or near real time, even though the items are scheduled for evaluation, e.g. identified to be in a STAT state. Consequently, an increase in the evaluation backlog may be reflected by an increase in the wait time of an item and/or an increase in a difference between the wait time and the expiration time of the item. In any event, if the wait time is above the threshold value, then processing flows to block 518; otherwise processing flows to block 516.
- At
block 518, if the wait time for an item is above the threshold value for the item, then the system may be overloaded or otherwise behind in processing of items, resulting in an increased evaluation backlog. Thus, the rate at which items that do not have a change (or possible change) may be scheduled for re-evaluation for a possible change at a decreased rate by assigning the item a new expiration time that is greater (or takes longer to expire) than the previous expiration time of the item. In this manner, the item may be “removed” from the STAT state for a longer time duration. This action is directed towards decreasing the number of items in the STAT state, and allowing the system to “catch up”. - In some embodiments, the new expiration time may be a multiplicative increase of the previous expiration time or the wait time of the item. In one non-limiting, non-exhaustive example, the increase in expiration time may be double the previous expiration time. However, other values may also be employed. In other embodiments, the new expiration time may be determined based on a constant value that is added to the previous expiration time or wait time of the item. In any case, the new expiration time can be a function of the previous expiration time and/or a function of the wait time of the item. Although certain embodiments are described for assigning a new expiration time, the invention is not so limited; rather, any suitable algorithm to increase the expiration time as a function of the previous expiration time may be employed. For example, in another non-limiting embodiment, the new expiration time may be a difference between the wait time and the previous expiration time that is then added to the wait time of the item.
- Furthermore, in one embodiment, if the new expiration time exceeds a maximum expiration time value, then it may be determined that the item will probably not change and the item may be changed to be in a NO_ACTION state. Similarly, in another embodiment, the new expiration time may be limited to a maximum expiration time value, such that the new expiration time does not exceed the maximum expiration time value, but is not identified as being in a NO_ACTION state. In any event, processing then continues to block 520.
- At
block 516, if the wait time of an item is equal to or less than the threshold value for the item, then the STAT state may be under populated and evaluations may be occurring less quickly than the system might be able to accommodate. Thus, the rate at which items not having a detected change may be scheduled to be re-evaluated at an increased rate by assigning the item a new expiration time that is less (or expires more quickly) than the previous expiration time of the item. Therefore, the rate at which the system evaluates items may increase, which can result in a decrease in the wait time of the items. - In some embodiments, the new expiration time may be some percentage less than the previous expiration time. In one non-limiting, non-exhaustive example, the percentage may be selected to be between about 94%-98% of the previous expiration time. In other embodiments, the new expiration time may be the previous expiration time minus a constant time value, such as one, or 0.1, or some other constant. However, other values may also be selected. Although certain embodiments are described for assigning a new expiration time, the invention is not so limited; rather, any suitable algorithm to decrease the expiration time as a function of the previous expiration time and/or wait time may be employed.
- Moreover, in some embodiments, the new expiration time may be limited to a minimum expiration time value. In one embodiment, the minimum expiration time value may be equal to the assigned expiration time at
block 502. However, the invention is not so limited, and any suitable minimum expiration time value may be employed. In any event, processing then continues to block 520. - Alternative embodiments of determining threshold values and assigning a new expiration time for an item are described in more detail below in conjunction with
FIG. 7 . - At
block 520, the item is identified to be in a TIMEOUT state to be scheduled for re-evaluation. In one embodiment, the item also is assigned the new expiration time. Additionally, the backlog indicator is initiated for the item. In some embodiments, initiating the evaluation backlog indicator may be employed using embodiments described atblock 502.Process 500 then loops back todecision block 504. -
FIG. 6 illustrates a logical flow diagram generally showing one embodiment of an overview process for evaluating items in the STAT state. In some embodiments, items in the STAT state may be managed as a queue of items, such as but not limited to a FIFO queue. Thus, in one embodiment,process 600 ofFIG. 6 may be implemented on one item at a time when the item is at an output location on, such as or “at the top” of the queue, or other defined position relative to another item also in the STAT state. However, the invention is not to be construed as limited to implementing the STAT state as a queue; rather, other ordered data structures may be implemented. For example, other embodiments of implementing the STAT state may include an ordered list, a ranking of items, or the like. In one such embodiment, an item with a highest ranking among a plurality of items in the STAT state may be processed before other items in the STAT state. - In any event,
process 600 begins, after a start block, atblock 602, where a determination is made whether an item is determined to be gone. An item may be determined to be gone if it has been deleted, renamed, moved, or the like, by a user, a computer application, or the like. If the item is not gone, then processing flows to decision block 604; otherwise, processing flows to block 614. - At
decision block 604, a determination is made whether a change acknowledgment of the item was previously deferred. In some embodiments, the change acknowledgment may be deferred if the item was processed for a possible change, but processing was not completed, such as, but not limited to, not reading an item to an end of file, or similar item identifier. In some embodiments, the item may include an attribute that identifies if the change acknowledgment was previously deferred. In one embodiment, metadata associated with the item may include a defer change acknowledgment command. If the change acknowledgement of the item was previously deferred, then processing flows to block 605; otherwise, processing flows todecision block 606. Atblock 605, metadata associated with the item is analyzed for a possible change. Processing then flows to block 614. - At
decision block 606, a determination is made whether there is a possible change to the item. In some embodiments, evaluation of metadata associated with the item may indicate that there is a possible change to the item, such as, for example, a change in a timestamp. In one embodiment, the metadata associated with the item may be compared to stored metadata to determine if there is a possible change to the item. In another embodiment, a tag, flag, or other identifier may indicate the item has possibly changed. If there is not a possible change to the item based on the evaluation of at least the metadata, then processing flows to block 608; otherwise, processing flows todecision block 610. -
Block 608 is described in more detail below in conjunction withFIG. 7 . Briefly, however, atblock 608, the item is identified to be in a TIMEOUT state to be scheduled for re-evaluation based on an evaluation backlog. Processing then flows todecision block 616. - At
decision block 610, a determination is made whether the item is a non-new directory. In one embodiment, a new directory may refer to an indication of a directory that was generated while an item in the READ_DIR state was being processed and subsequently changes to be in a STAT state. Therefore, a non-new directory may refer to a directory that changed from a TIMEOUT state to a STAT state. In some embodiments, a new directory may be referred to as a non-new directory if the new directory is recursed into (which is shown byelement 428 ofFIG. 4 ). If the item is a non-new directory, then processing flows to block 612; otherwise, processing flows to block 614.Block 612 is described in more detail below in conjunction withFIG. 8 . Briefly, however, atblock 612, the non-new directory is identified as being in a READ_DIR state, where the non-new directory is processed for a possible change. Processing then flows todecision block 616. - However, if the item is not a non-new directory, e.g. a new directory, an item with a defer change acknowledgement, or other possibly changed item, then processing flows to block 614, which is described in more detail below in conjunction with
FIG. 9 . Briefly, however, atblock 614, the item is identified to be in a NOTIFY state, where the item is processed for a possible change. Processing then continues todecision block 616. - At
decision block 616, a determination is made whether there are any items remaining in the STAT state. In one embodiment, items may remain in the STAT state if a STAT state queue is not empty. If there are items remaining in a STAT state, then processing loops to block 604 to process a next item; otherwise, processing returns to a calling process to perform other actions. In some embodiments, the next item may be a next item in a queue. In other embodiments, the next item may be a highest ranking item of the items remaining in the STAT state. -
FIG. 7 illustrates a logical flow diagram generally showing one embodiment of an overview process for dynamically scheduling an item for re-evaluation for a possible change based on an evaluation backlog. In one embodiment,process 700 ofFIG. 7 represents actions taken atblock 608 ofFIG. 6 . -
Process 700 begins, after a start block, atblock 702, where a wait time for an item to be analyzed is obtained based on an evaluation backlog indicator. In one embodiment, an evaluation backlog indicator start time may be a system time when an item is identified as being in a TIMEOUT state and an evaluation backlog indicator stop time may be a system time when the item was analyzed for a possible change in the STAT state. In other embodiments, the evaluation backlog indicator may be based on an incrementing time counter that is started when an item is identified as being in a TIMEOUT state and stopped when the item was analyzed for a possible change in the STAT state. Moreover, in some embodiments, the wait time may be the difference between the evaluation backlog indicator start time and the evaluation backlog indicator stop time, or the resulting incrementing time counter for the evaluation backlog indicator. - Proceeding to decision block 704, a determination is made whether the wait time is above a maximum threshold value that is based on a previous expiration time of the item. In one embodiment, the maximum threshold value may be similar to that which is described above in conjunction with
block 514 ofFIG. 5 for determining the threshold value. In any event, if the wait time is above the maximum threshold value, then processing flows to block 706; otherwise, processing flows todecision block 708. - At
block 706, the item is assigned a new expiration time that is greater than the previous expiration time. In one embodiment, the new expiration time may be determined similar to that which is described above in conjunction withblock 518 ofFIG. 5 . Processing then continues to block 714. - At
decision block 708, a determination is made whether the wait time is below a minimum threshold value based on a previous expiration time of the item. In one embodiment, the minimum threshold value may be determined similar to that which is described above in conjunction withblock 514 ofFIG. 5 for determining a threshold value. In any event, if the wait time is below the minimum threshold value, then processing flows to block 710; otherwise, processing flows to block 712. - At
block 710, a new expiration time is assigned to the item that is less than the previous expiration time, similar to that which is described above in conjunction withblock 516 ofFIG. 5 . Processing then continues to block 714. - At
block 712, the item is assigned a new expiration time that is substantially the same as the previous expiration time. In some embodiments, a substantially the same new expiration time may include a new expiration time that is within, plus or minus, some threshold or tolerance time value of the previous expiration time. In one embodiment, the threshold or tolerance time value may be plus or minus one-half second. In another embodiment, the threshold or tolerance time value may be based on a factor of the previous expiration time, such as, for example, plus or minus ten percent of the previous expiration time. These embodiments are not to be construed as exhaustive or limiting; and other tolerance mechanisms may be employed, such as, for example, basing the substantially similar value on a round off error and/or truncation error in the system. Thus, substantially the same provides a selectable tolerance value around the previous expiration time. In any event,process 700 flows to block 714. - At
block 714, the item is identified to be in a TIMEOUT state with the new expiration time. Processing then returns to a calling process to perform other actions. - Although
FIG. 7 describes two threshold values, a maximum threshold value and a minimum threshold value, the invention is not so limited. Rather, a different number of thresholds may be implemented. For example,FIG. 5 describes a single threshold. However, in some embodiments, more than two thresholds may also be implemented inFIG. 5 . Similarly, different embodiments may be employed for assigning a new expiration time to an item. In one non-limiting and non-exhaustive example, if a wait time is greater than a first threshold, then the new expiration time may be set based on a previous wait time plus a constant time value; if the wait time is greater than a second threshold, then the new expiration time may be set based on a multiplicative increase in the wait time. Other variations are also envisaged. -
FIG. 8 illustrates a logical flow diagram generally showing one embodiment of a process for processing items in a READ_DIR state.Process 800 ofFIG. 8 , in one embodiment, illustrates actions embodied byblock 612 ofFIG. 6 discussed above. -
Process 800 begins, after a start block, atblock 802, where a directory is read for a change. In some embodiments, the directory may be read for changes in file names, directory names, and/or other items listed in the directory.Process 800 then continues to decision block 804, where a determination is made whether one or more items in the directory have changed. In one embodiment, a change may be detected by comparing the items listed in the directory to items previously listed in the directory. If an item in the directory has changed, then processing flows to decision block 806; otherwise, processing flows todecision block 812. - At
decision block 806, a determination is made whether one or more items are missing in the directory. An item is determined to be missing if it was previously known to be listed in the directory, but subsequently has been removed, deleted, moved, or the like, by a user, a computer application, or the like. In one embodiment, items in the NO_ACTION state may be compared to items listed in the directory to determine if an item is not listed in the directory, but was previously processed. If one or more items are missing, processing flows to block 810; otherwise, processing flows to block 808. In some embodiments, processing may flow to both block 810 and block 808 if one or more items are missing from the directory or one or more other items have changed, but are not missing. - At
block 810, an indication of the one or more missing items is identified as being in a NOTIFY state, which is described in more detail below in conjunction withFIG. 9 . Briefly, however, atblock 810, the indication of the one or more missing items may change to a NO_ACTION state. Processing then flows to block 814. - At
block 808, the one or more changed items are identified as being in a STAT state, which is described in more detail above in conjunction withFIG. 6 . In some embodiments, if the changed item is a new item, then an indication of the new item may be generated and identified in the STAT state. Processing then flows to block 814. - At
decision block 812, a determination is made whether a previous expiration time was based on a timestamp granularity of the directory, such as described above atblock 814. If the previous expiration time was based on the timestamp granularity of the directory, then processing flows to block 816; otherwise, processing flows to block 814. - At
block 816, the directory is identified as being in a TIMEOUT state to be scheduled for re-evaluation based on an evaluation backlog, as described in more detail above in conjunction withFIG. 7 .Process 800 then returns to a calling process to perform other actions. - At
block 814, the directory changes to be in a TIMEOUT state with a new expiration time. The new expiration time may be based on the timestamp granularity of the directory. The timestamp granularity may refer to how detailed a directory timestamp may be that indicates a change in the directory. In one non-limiting and non-exhaustive example, a directory may have a timestamp granularity of two seconds. In any event, processing then returns to a calling process to perform other actions. -
FIG. 9 illustrates a logical flow diagram generally showing one embodiment of a process for processing items in a NOTIFY state.Process 900 ofFIG. 9 may represent, in one embodiment, actions taken atblock 614 ofFIG. 6 . -
Process 900 begins, after a start block, atblock 902, which is described in more detail below in conjunction withFIG. 10 . Briefly, however, atblock 902, the item is determined to be a new or existing item. - Proceeding next to decision block 903, a determination is made whether the item has an unresolved identifier. In some embodiments, an unresolved identifier may be returned from the process described at
block 902. In some embodiments, metadata associated with the item may include an unresolved identifier. If the item has an unresolved identifier, then processing flows to block 904; otherwise, processing flows todecision block 905. Atblock 904, an error is returned to a calling process. Processing then flows to block 906. - At
decision block 905, a determination is made whether to ignore an item. In some embodiments, a user, system administrator, a computer application, or the like, may indicate than an item is to be ignored. In one non-limiting and non-exhaustive example, items with an item name that ends in “.backup” might be identified as to be ignored. If the item is to be ignored, processing flows to block 906; otherwise, processing flows todecision block 908. - At
block 906, the item is identified as being in a NO_ACTION state. Items in the NO_ACTION state may be maintained, but may not change states further. In some embodiments, items in the NO_ACTION state may be utilized to determine if the item was previously processed, such as is described atblock 806 ofFIG. 8 . Processing then flows todecision block 922. - At
decision block 908, a determination is made whether the item is a new directory. In one embodiment, a new directory may be a new item that was detected as a change in a directory, such as is described in conjunction withFIG. 8 , but more specifically block 808 ofFIG. 8 . If the item is a new directory, then processing flows to decision block 912; otherwise, processing flows todecision block 909. - At
decision block 912, a determination is made whether to recurse into the new directory. In some embodiments, a user, application, or other process, may indicate that a new directory is to be recursed into or not to be recursed into. If the new directory is not to be recursed into, then processing flows to block 906; otherwise, processing flows to block 914. Atblock 914, the new directory changes to be in a READ_DIR state. Processing then flows todecision block 922. - At
decision block 909, a determination is made whether any remaining data to be read in the item is larger than a threshold size value. In some embodiments, the size may refer to a total number of bytes of data that correspond to the item, such as a length of an item in bytes, or some other measure of a count of data may be employed. In one embodiment, the remaining data to be read may include previously unprocessed data in the item. In some embodiments, the threshold size value may be based on an average item size, an arbitrary value, or the like. In one non-limiting example, the threshold size value may be 20 megabytes of unread data. If the remaining data to be read is larger than the threshold size value, then processing flows to block 911; otherwise, processing flows to block 910. Atblock 911 the large item is processed for a change. In some embodiments, large items are processed in parallel with other items, such as, for example, in a separate thread. Additionally, in some embodiments, processing of large files may include an embodiment of the process described in conjunction withFIG. 9 , but withoutdecision block 909 and block 911. Processing next continues to block 920. - At
block 910, the item is processed for a change. In some embodiments, the item may be processed to determine if there is an actual change in the item. In one embodiment, processing may include storing a change in the item. In other embodiments, a record may be stored for the item, which may include a plurality of information about an item, such as, but not limited to, an item identifier, an end of file pointer, an end of item identifier, or the like. In yet other embodiments, the change in the item may be employed to troubleshoot errors and/or determine opportunities to improve system performance. -
Process 900 then proceeds to decision block 916, where a determination is made whether to defer a change acknowledgment. In one embodiment, an item may include an indication to defer the change acknowledgment for the item, such as a defer change acknowledgment command returned from the process described atblock 902. In one embodiment, metadata associated with the item may include the defer change acknowledgment command. If the change acknowledgment is deferred, then processing flows to block 918; otherwise, processing flows to block 920. - At
block 918, the item changes to be in a TIMEOUT state to be scheduled for re-evaluation independent of an evaluation backlog. In one embodiment, the item may be assigned a defer expiration time. In some embodiments, the defer expiration time may be based an arbitrary value, such as, but not limited to, greater than zero and less than one second. Additionally, atblock 918, a defer change acknowledgment command is returned to a calling process. In one embodiment, metadata associated with the item may include an indication of the defer change acknowledgment command. Processing then flows todecision block 922. - At
block 920, the item changes to be in a TIMEOUT state to be scheduled for re-evaluation independent of an evaluation backlog. In one embodiment, the item may be assigned a new expiration time. In some embodiments, the new expiration time may be the same as the defer expiration time. In other embodiments, the new expiration time may be different than the defer expiration time. In any event, the new expiration time may be any suitable value, such as greater than zero and less than one second. In other embodiments, assigning the new expiration time may be similar to that which is described atblock 512 ofFIG. 5 for assigning a new expiration time. However, the invention is not so limited, and other expiration times may be employed for the new expiration time and/or the defer expiration time. For example, in one embodiment, if there is no change to the contents of the item, then a new expiration time may be assigned based on an evaluation backlog, such as is described above in conjunction withFIG. 7 . Additionally, atblock 920, a change acknowledgment command is returned to a calling process. In one embodiment, metadata associated with the item may include an indication of the change acknowledgment command. Processing then flows todecision block 922. - At
decision block 922, a determination is made whether there are additional items in the NOTIFY state. If there are additional items in the NOTIFY state, then process 900 loops to block 902 to process another item; otherwise, processing returns to a calling process to perform other actions. -
FIG. 10 illustrates a logical flow diagram generally showing one embodiment of an overview process for determining if an item is a new item or is determined to be an existing item. In one embodiment,Process 1000 ofFIG. 10 may represent actions taken atblock 902 ofFIG. 9 . -
Process 1000 begins, after a start block, atdecision block 1006, where a determination is made whether a change acknowledgment of the item was previously deferred. In some embodiments, the change acknowledgment may be deferred if the item was processed for a possible change, but processing was not complete, such as, but not limited to, not reading an item to end of file. In some embodiments, the item may include an attribute that identifies if the change acknowledgment was previously deferred. In one embodiment, metadata associated with the item may include a defer change acknowledgment command. If the change acknowledgment of the item was previously deferred, processing flows to block 1008; otherwise, processing flows to block 1012. -
Block 1008 is described in more detail below in conjunction withFIG. 15 . Briefly, however, atblock 1008, a determination is made whether additional data was written to the previously deferred item.Process 1000 then proceeds todecision block 1010, where a determination is made whether to defer the item. In one embodiment, an item may include an indication to defer the item, such as a defer change acknowledgment command returned from a process described atblock 1008. If the item is not deterred, processing flows to block 1011; otherwise, processing flows to block 1024. - At
block 1011, a done command is returned to a calling process. In some embodiments, the done command indicates that an item has been completely written to, such that the completely written item can be distinguished from a partially written item. For example, in some embodiments a combination of an end of item heuristics and the done command can distinguish between a partially written item and a completely written item. Processing then returns to a calling process to perform other actions. - At
block 1012, the item is opened and an item descriptor is obtained and stored. An item descriptor may be an abstract indicator for accessing an item, such as, but not limited to, an integer, a file handle, or the like. In some embodiments, a cache may store a predefined number of item descriptors, such as, for example, 100 item descriptors may be stored in a cache. -
Process 1000 then proceeds todecision block 1014, where a determination is made whether an item size is smaller than an item identifier size. In some embodiments, the item identifier may be based on contents of the item. In one embodiment, the item identifier may be based on a defined amount of data. In another embodiment, the item identifier may be based on a number of bytes of data in the item, such as, but not limited to, a first 256 bytes starting at a beginning of the item. However, the invention is not so limited; rather other item identifier sizes may be employed without departing from the scope or spirit of the invention. If the item size is smaller than the item identifier size, then processing flows to block 1016; otherwise, processing flows todecision block 1018.Block 1016 is described in more detail below in conjunction withFIG. 11 . Briefly, however, atblock 1016, a small item identifier is analyzed to detect if the item is a new or existing item. Processing then flows to block 1024. - At
decision block 1018, a determination is made whether the item is compressed using a data compression algorithm. In some embodiments, compression may be determined by an item-type extension in a name of the item (e.g. “.gz”). If the item is compressed, processing flows to block 1020; otherwise, processing flows to block 1022. -
Block 1020 is described in more detail below in conjunction withFIG. 12 . Briefly, however, atblock 1020, the compressed item is analyzed to detect if item is a new or existing item. Processing then flows to block 1024. -
Block 1022 is described in more detail below in conjunction withFIG. 13 . Briefly, however, atblock 1022, an identifier collision is analyzed to detect if the item is a new or existing item. Proceeding next todecision block 1023, a determination is made whether the item has an unresolved identifier. In some embodiments, an unresolved identifier may be returned from the process described atblock 1022. If the item does not have an unresolved identifier, then processing flows to block 1024; otherwise, processing returns to a calling process to perform other actions. -
Block 1024 is described in more detail below in conjunction withFIG. 14 . Briefly, however, atblock 1024, an end of the item is determined and a defer change acknowledgment command is returned. Processing then returns to a calling process to perform other actions. -
FIG. 11 illustrates a logical flow diagram generally showing one embodiment of a process for determining if an item is new or existing depending on its size. In one embodiment,process 1100 ofFIG. 11 represents actions that may be taken atblock 1016 ofFIG. 10 . -
Process 1100 begins, after a start block, atblock 1106, where an item identifier is determined based on a name of a current item. The item name may refer to an alphanumeric label corresponding to an item. In some embodiments, the item name may include one or more item-type extensions, such as “.doc”, “.txt”, “.log”, “.gz”, or the like. In one embodiment, the item identifier may be a cyclic redundancy check (CRC) checksum of the item name. However, the invention is not so limited; and, the item identifier may employ other unique identifiers derived from the item name. - Processing continues to
decision block 1108, where a determination is made whether a record is found based on the item identifier. In one embodiment, a record of historical data is maintained for each of a plurality of previously processed items. In one embodiment, a previously processed item is an item that was previously reviewed. In some embodiments, the record may include a plurality of information about an item, such as, but not limited to, the item identifier, an end of file pointer, an end of item identifier, or the like. If a record is not found, then processing flows to block 1110; otherwise, processing flows to block 1112. - At
block 1110, the item is recognized as a new item and is returned to a calling process to be processed as a new item. Processing then returns to a calling process to perform other actions. - At
block 1112, a stored end of item identifier is obtained from the record for the item identifier. The stored end of item identifier may be an end of item identifier that was stored for the item during previous processing of the item. Moreover, the end of item identifier may be a unique identifier that is based on content of the item. In one embodiment, the end of item identifier may be a CRC checksum of a last 256 bytes of the content of the item. In other embodiments, other suitable numbers of bytes may be utilized to generate an end of item identifier. In one embodiment, the number of bytes utilized to generate the end of item identifier may correspond to an item size. Similarly, the invention is not limited to a CRC checksum; rather, the item identifier may employ other unique identifiers derived from the content of the item without departing from the scope or spirit of the invention. -
Process 1100 then proceeds to block 1114, where a stored end of item pointer is obtained from the record for the item identifier. The stored end of item pointer may be a reference to an end of the item that was stored during previous processing of the item. In one embodiment, the stored end of item pointer may be a reference to a last byte of the previously process item. For example, the last byte may be the last byte that was previously read from the item. - Processing continues at
block 1116, where a current end of item identifier is determined for the item based on the stored end of item pointer. The current end of item identifier may be an end of item identifier for a current item that is based on a predetermined amount of content preceding the stored end of item pointer of the current item. In one embodiment, the predetermined amount of content may be 256 bytes of data. In another embodiment, the current end of item identifier may be a CRC checksum of up to the predetermined amount of data of the current item that precedes the stored end of item pointer. Thus, a number of bytes utilized to generate the current end of file identifier may be equal to the number of bytes utilized to generate the stored end of item identifier. For example, assume that the stored end of file pointer is 180 bytes and that the stored end of item identifier was based on the 180 byes. If a current item size is 200 bytes, then the current end of item identifier may be a CRC checksum of the bytes preceding byte 180 of the current item. - Processing then flows to
decision block 1118 where a determination is made whether the stored end of item identifier matches the current end of item identifier. In one embodiment, a match may be determined if the CRC checksum of the stored end of item identifier is equal to the CRC checksum of the current end of item identifier. If the stored end of item identifier matches the current end of item identifier, then processing flows to block 1120; otherwise, processing flows to block 1110. - At
block 1120, the item is recognized as an existing item and is returned to a calling process to be processed as an existing item. Processing then returns to a calling process to perform other actions. -
FIG. 12 illustrates a logical flow diagram generally showing one embodiment of a process for determining if an item is new or existing depending on if the item was compressed.Process 1200 ofFIG. 12 may, in one embodiment, represent actions taken atblock 1020 ofFIG. 10 . -
Process 1200 begins, after a start, block, atblock 1202, where the item is decompressed. Decompression may include any suitable data decompression algorithm that corresponds to the algorithm utilized to compress the item. In one embodiment, a predetermined amount of content of the item may be decompressed to determine and/or generate an item identifier.Process 1200 then proceeds to block 1204, where an item identifier is determined for the item based on a predetermined amount of content of the item. In one embodiment, the item identifier may be a CRC checksum of a first 256 bytes of the item. In other embodiments, other suitable numbers of bytes may be utilized to generate the item identifier. Similarly, other unique identifiers derived from the content of the item may be employed without departing from the scope or spirit of the invention. - Processing continues at
decision block 1206, where a determination is made whether a record is found based on the item identifier. Determining whether a record is found may be performed similar to that which is described atblock 1108 ofFIG. 11 for determining whether a record is found. In any event, if a record is not found then processing flows to block 1208; otherwise, processing flows to block 1210. - At
block 1208, the item is recognized as a new item and is returned to a calling process to be processed as a new item. In some embodiments, processing the new item may include re-decompressing the item. Processing then returns to a calling process to perform other actions. - At
block 1210, a stored end of item identifier is obtained from the record for the item identifier. Obtaining the stored end of item identifier may be similar to that which is described atblock 1112 ofFIG. 11 for obtaining the stored end of item identifier.Process 1200 then continues to block 1212, where a stored end of item pointer is obtained from the record for the item identifier. Obtaining the stored end of item pointer may be performed similar to that which is described atblock 1114 ofFIG. 11 for obtaining the stored end of item pointer. - Processing continues at
block 1214, where a current end of item identifier is determined for the item based on the stored end of item pointer. In some embodiments, the item may be decompressed up to the stored end of item pointer. Determining the current end of item identifier may be similar to that which is described atblock 1116 ofFIG. 11 for determining the current end of item identifier. In one embodiment, the current end of item identifier may be determined utilizing different content of the item than the content utilized to generate the item identifier atblock 1204. -
Process 1200 then flows todecision block 1216, where a determination is made whether the stored end of item identifier matches the current end of item identifier. Determining whether the current end of item identifier matches the stored end of item identifier may be similar to that which is described atblock 1118 ofFIG. 11 for determining whether the current end of item identifier matches the stored end of item identifier. If the stored end of item identifier matches the current end of item identifier, then processing flows to block 1220; otherwise, processing flows to block 1208. - At
block 1220, the item is recognized as an existing item and is returned to a calling process to be processed as an existing item. Processing then returns to a calling process to perform other actions. -
FIG. 13 illustrates a logical flow diagram generally showing one embodiment of a process for determining if an item is new or existing depending on an identifier collision. An identifier collision may occur if two or more different items have a same item identifier.Process 1300 ofFIG. 13 may represent one embodiment of actions taken atblock 1022 ofFIG. 10 . -
Process 1300 begins, after a start block, atblock 1302, where an item identifier is determined for the current item based on content of the current item. Determining an item identifier may be performed similar to that which is described atblock 1202 ofFIG. 12 for determining an item identifier. - Processing continues at
decision block 1304, where a determination is made whether a record is found based on the item identifier. Determining whether a record is found may be similar to that which is described atblock 1108 ofFIG. 11 for determining whether a record is found. If a record is not round, then processing flows to block 1306; otherwise, processing flows to block 1308. Atblock 1306, the item is recognized as a new item and is returned to a calling process to be processed as a new item. Processing then returns to a calling process to perform other actions. - At
block 1308, a stored end of item pointer is obtained from the record for the item identifier. Obtaining the stored end of item pointer may be similar to that which is described atblock 1114 ofFIG. 11 for obtaining the stored end of item pointer. - Continuing to
decision block 1310, a determination is made whether the stored end of item pointer is greater than the item size. If the stored end of item pointer is greater than the item size, processing flows to block 1320; otherwise, processing flows to block 1312. Atblock 1320, a stored item name identifier is obtained from the record based on the item identifier. The stored item name identifier may be an item name identifier that was stored for the item during previous processing of the item. Moreover, the item name identifier may be a unique identifier that is based on a name of the item. In one embodiment, the item name identifier may be a cyclic redundancy check (CRC) checksum of the item name. However, the invention is not so limited; rather, the item name identifier may employ other unique identifiers derived from the item name without departing from the scope or spirit of the invention. - Processing then flows to block 1322, where a current item name identifier is determined based on the item name of the current item. In one embodiment, the current item name identifier may be a cyclic redundancy check (CRC) checksum of the item name of the current item.
Process 1300 then proceeds todecision block 1324, where a determination is made whether the stored item name identifier matches the current item name identifier. In one embodiment, a match may be determined if the CRC checksum of the stored end of item identifier is equal to the CRC checksum of the current end of item identifier. If the stored item name identifier does not match the current item name identifier, then processing flows to block 1326; otherwise, processing flows to block 1318. - At
block 1326, an unresolved identifier is returned to a calling process to indicate that the current item is indeterminable as a new item or an existing item. In some embodiments, the unresolved identifier may be included in metadata associated with the item. Processing then returns to a calling process to perform other actions. - At
block 1312, a stored end of item identifier is obtained from the record for the item identifier. Obtaining the stored end of item identifier may be similar to that which is described atblock 1112 ofFIG. 11 for obtaining the stored end of item identifier. -
Process 1300 then continues to block 1314, where a current end of item identifier is determined for the item based on the stored end of item pointer. Determining the current end of item identifier may be similar to that which is described atblock 1116 ofFIG. 11 for determining the current end of item identifier. In one embodiment, the current end of item identifier may be determined utilizing different content of the item than the content utilized to generate the item identifier atblock 1204. -
Process 1300 then flows todecision block 1316, where a determination is made whether the stored end of item identifier matches the current end of item identifier. Determining whether the current end of item identifier matches the stored end of item identifier may be similar to that which is described atblock 1118 ofFIG. 11 for determining whether the current end of item identifier matches the stored end of item identifier. If the stored end of item identifier matches the current end of item identifier, then processing flows to block 1318; otherwise, processing flows to block 1320. - At
block 1318, the item is recognized as an existing item and is returned to a calling process to be processed as an existing item. Processing then returns to a calling process to perform other actions. -
FIG. 14 illustrates a logical flow diagram generally showing one embodiment of a process for determining if a new or existing item is to be deferred depending on an end of item.Process 1400 ofFIG. 14 may, in one embodiment, represent actions taken duringblock 1024 ofFIG. 10 . -
Process 1400 begins, after a start block, atblock 1402, where a determination is made as to remaining data in an item to be analyzed. In one embodiment, determining the remaining data may be based on a comparison of an amount of data previously processed and a current item size. -
Process 1400 then proceeds todecision block 1404, where a determination is made whether the remaining data is a multiple of a predetermined value. In some embodiments, remaining data that is a multiple of a predetermined value may indicate that the item is being written from an operating system that buffers data. Thus, in one embodiment, the predetermined value may be based on a size of an operating system buffer. In one non-limiting and non-exhaustive example, the predetermined value may be 512 bytes. If the end of item is a multiple of a predetermined value, processing flows to block 1408; otherwise, processing flows to block 1406. - At
block 1406, a done command is returned to a calling process. In some embodiments, the done command indicates that an item has been completely written to, such that the completely written item can be distinguished from a partially written item. - Processing continues next at
block 1408, where a defer change acknowledgment command is returned to a calling process. In some embodiments, the defer change acknowledgment command may be a tag, pointer, or other indicator that corresponds to the item. In one embodiment, metadata associated with the item may include the defer change acknowledgment command. In some embodiments, the item is kept open for additional processing. Processing then returns to a calling process to perform other actions. -
FIG. 15 illustrates a logical flow diagram generally showing one embodiment of a process for processing a previously deferred item.Process 1500 ofFIG. 15 begins, after a start block, atdecision block 1502, where a determination is made whether an item descriptor is stored for a current item. An item descriptor may have been stored when the item was previously processed, such as atblock 1012 ofFIG. 10 . If the item descriptor is not stored for the item, then processing flows to block 1504; otherwise, processing flows todecision block 1508. Atblock 1504 the item descriptor for the item is obtained, such as from an operating system, or other source. - Processing then flows to
decision block 1508 where a determination is made whether a stored end of item pointer for the current item matches the end of item for the current item. The stored end of item pointer may be a reference to an end of the item that was stored during previous processing of the item. In some embodiments, the stored end of item pointer may be stored in a cache. In other embodiments, the stored end of item pointer may be included in metadata associated with the item. Moreover, in some embodiments, the end of item for the current item may be a current item size. In other embodiments, the end of item for the current item may be obtained by processing the item, such as by reading the item, to an end of the item. If the stored end of item pointer does not match the end of item, then processing flows to block 1510; otherwise, processing flows to block 1512. - At
block 1510, a defer change, acknowledgment command is returned to a calling process. Returning a defer change acknowledgment command may be similar to that which is described atblock 1408 ofFIG. 14 for returning a defer change acknowledgment command. Processing then returns to a calling process to perform other actions. - If the stored end of item pointer matches the end of item, then processing flows to block 1512. At
block 1512, a change acknowledgment command is returned to a calling process. Processing then returns to a calling process to perform other actions. - It will be understood that each block of the flowchart illustration, and combinations of blocks in the flowchart illustration, can be implemented by computer program instructions. These program instructions may be provided to a processor to produce a machine, such that the instructions, which execute on the processor, create means for implementing the actions specified in the flowchart block or blocks. The computer program instructions may be executed by a processor to cause a series of operational steps to be performed by the processor to produce a computer-implemented process such that the instructions, which execute on the processor to provide steps for implementing the actions specified in the flowchart block or blocks. The computer program instructions may also cause at least some of the operational steps shown in the blocks of the flowchart to be performed in parallel. Moreover, some of the steps may also be performed across more than one processor, such as might arise in a multi-processor computer system. In addition, one or more blocks or combinations of blocks in the flowchart illustration may also be performed concurrently with other blocks or combinations of blocks, or even in a different sequence than illustrated without departing from the scope or spirit of the invention.
- Accordingly, blocks of the flowchart illustration support combinations of means for performing the specified actions, combinations of steps for performing the specified actions and program instruction means for performing the specified actions. It will also be understood that each block of the flowchart illustration, and combinations of blocks in the flowchart illustration, can be implemented by special purpose hardware-based systems, which perform the specified actions or steps, or combinations of special purpose hardware and computer instructions.
- The above specification, examples, and data provide a complete description of the manufacture and use of the composition of the invention. Since many embodiments of the invention can be made without departing from the spirit and scope of the invention, the invention resides in the claims hereinafter appended.
Claims (22)
1. A network device, comprising:
a transceiver for receiving a plurality of items from one or more client devices over a network; and
a processor for enabling actions, the actions comprising:
for each item in the plurality of items, assigning an expiration time that indicates when an item is to be scheduled for evaluation to detect a possible change to the item;
when an expiration time is detected to have expired for an item, scheduling the item for evaluation; and
selecting an item that is scheduled for evaluation, and for the selected item:
determining a wait time for the selected item that indicates at least a time duration between being scheduled for evaluation and being selected for evaluation,
when a possible change is determined for the selected item, setting a new expiration time for scheduling for re-evaluating the selected item for another possible change, the new expiration time being set to at least a minimum expiration time, and
when it is determined that the selected item does not include a possible change, setting the new expiration time for scheduling for re-evaluating the selected item for another possible change that is based in part on the expiration time of the selected item and a function of the wait time for the selected item.
2. The network device of claim 1 , wherein when it is determined that the item does not include a possible change, setting the new expiration time to be a value that is larger than a value of an expiration time of an other item that is determined to have a possible change, such that the item is scheduled for re-evaluation at a frequency that is less than a frequency of re-evaluation for the other item.
3. The network device of claim 1 , wherein when it is determined that the item does not include a possible change, setting the new expiration time, further comprises:
when the wait time is determined to be above a threshold value that is based on the expiration time, setting the new expiration time to a value that is based on a multiplicative increase of the expiration time; and
otherwise, setting the new expiration time to be a value that is a decrementing value from the expiration time.
4. The network device of claim 1 , wherein when it is determined that the item does not include a possible change, setting the new expiration time, further comprises:
when the wait time is determined to be above a threshold value that is based on the expiration time, setting the new expiration time to a value that is based on a multiplicative increase of the wait time; and
otherwise, setting the new expiration time to be a value that is a decrementing value from the expiration time.
5. The network device of claim 1 , wherein the wait time is configured to represent a time duration consumed by a backlog of other items to be evaluated prior to the item being selected for evaluation.
6. The network device of claim 1 , wherein when it is determined that the item does not include a possible change, setting the new expiration time, further comprises:
employing a plurality of threshold values based on the expiration time, such that each of the plurality of threshold values indicates a different value change of the expiration time; and
when the wait time is determined to be associated with one of the plurality of threshold values, setting the new expiration time to a value that is based on the associated threshold value.
7. The network device of claim 1 , wherein determining the wait time for the selected item further indicates a time duration between being assigned an expiration time and being selected for evaluation to detect a possible change.
8. A method operating on one or more network devices, the method implemented as one or more computer executable instructions for performing actions by the one or more network devices, including:
receiving a plurality of items from one or more client devices;
for each item in the plurality of items, assigning an expiration time that determines when to schedule for evaluation the respective item to detect a change to the item;
when an expiration time is detected to have expired for an item, scheduling the item for evaluation; and
for each item evaluated, setting a new expiration time for the evaluated item to be re-scheduled for re-evaluation, such that an item having a detected change to the item is scheduled for re-evaluation at a higher frequency over an other item for which a change is undetected for the other item, and wherein the new expiration time of the other item is based in part on a backlog of items scheduled for evaluation prior to evaluation of the other item.
9. The method of claim 8 , wherein the new expiration time of the other item for which a change is undetected is based in part on a backlog of items scheduled for evaluation prior to evaluation of the other item, further comprises:
determining a wait time for the other item that indicates at least a time duration between being scheduled for evaluation and being evaluated; and
setting the new expiration time of the other item based in part on the expiration time of the other item and a function of the wait time for the other item.
10. The method of claim 9 , wherein setting the new expiration time of the other item, further comprises:
when the wait time is determined to be above a threshold value that is based on the expiration time, setting the new expiration time to a value that is based on a multiplicative increase of the expiration time; and
otherwise, setting the new expiration time to be a value that is a decrementing value from the expiration time.
11. The method of claim 9 , wherein setting the new expiration time of the other item, further comprises:
when the wait time is determined to be above a threshold value that is based on the expiration time, setting the new expiration time to a value that is based on a multiplicative increase of the wait time; and
otherwise, setting the new expiration time to be a value that is a decrementing value from the expiration time.
12. A system, comprising:
one or more network devices that are configured to provide a tool to one or more client devices, such that the tool enables the one or more client devices to provide a plurality of items; and
one or more other network devices that are configured to receive the plurality of items and to perform actions, the actions comprising:
for each item in the plurality of items, assigning an expiration time that indicates when an item is to be scheduled for evaluation to detect a possible change to the item;
when an expiration time is detected to have expired for an item, scheduling the item for evaluation: and
selecting an item that is scheduled for evaluation, and for the selected item:
determining a wait time for the selected item that indicates at least a time duration between being scheduled for evaluation and being selected for evaluation,
when a possible change is determined for the selected item, setting a new expiration time for scheduling for re-evaluating the selected item for another possible change, the new expiration time being set to at least a minimum expiration time, and
when it is determined that the selected item does not include a possible change, setting the new expiration time for scheduling for re-evaluating the selected item for another possible change that is based in part on the expiration time of the selected item and a function of the wait time for the selected item.
13. The system of claim 12 , wherein when it is determined that the item does not include a possible change, setting the new expiration time to be a value that is larger than a value of an expiration time of an other item that is determined to have a possible change, such that the item is scheduled for re-evaluation at a frequency that is less than a frequency of re-evaluation for the other item.
14. The system of claim 12 , wherein when it is determined that the item does not include a possible change, setting the new expiration time, further comprises:
when the wait time is determined to be above a threshold value that is based on the expiration time, setting the new expiration time to a value that is based on a multiplicative increase of the expiration time; and
otherwise, setting the new expiration time to be a value that is a decrementing value from the expiration time.
15. The system of claim 12 , wherein when it is determined that the item does not include a possible change, setting the new expiration time, further comprises:
when the wait time is determined to be above a threshold value that is based on the expiration time, setting the new expiration time to a value that is based on a multiplicative increase of the wait time; and
otherwise, setting the new expiration time to be a value that is a decrementing value from the expiration time.
16. The system of claim 12 , wherein the wait time is configured to represent a time duration consumed by a backlog of other items to be evaluated prior to the item being selected for evaluation.
17. The system of claim 12 , wherein when it is determined that the item does not include a possible change, setting the new expiration time, further comprises:
employing a plurality of threshold values based on the expiration time, such that each of the plurality of threshold values indicates a different value change of the expiration time; and
when the wait time is determined to be associated with one of the plurality of threshold values, setting the new expiration time to a value that is based on the associated threshold value.
18. The system of claim 17 , wherein determining the wait time for the selected item further indicates a time duration between being assigned an expiration time and being selected for evaluation to detect a possible change.
19. A non-transitory, computer-readable storage device that includes data and instructions, that when installed within on a computer device causes the computer device to perform actions, comprising:
receiving a plurality of items from one or more client devices;
for each item in the plurality of items, assigning an expiration time that determines when to schedule for evaluation the respective item to detect a change to the item;
when an expiration time is detected to have expired for an item, scheduling the item for evaluation; and
for each item evaluated, setting a new expiration time for the evaluated item to be re-scheduled for re-evaluation, such that an item having a detected change to the item is scheduled for re-evaluation at a higher frequency over an other item for which a change is undetected for the other item, and wherein the new expiration time of the other item is based in part on a backlog of items scheduled for evaluation prior to evaluation of the other item.
20. The non-transitory, computer-readable storage device of claim 19 , wherein the new expiration time of the other item for which a change is undetected is based in part on a backlog of items scheduled for evaluation prior to evaluation of the other item, further comprises:
determining a wait time for the other item that indicates at least a time duration between being scheduled for evaluation and being evaluated; and
setting the new expiration time of the other item based in part on the expiration time of the other item and a function of the wait time for the other item.
21. The non-transitory, computer-readable storage device of claim 20 , wherein setting the new expiration time of the other item, further comprises:
when the wait time is determined to be above a threshold value that is based on the expiration time, setting the new expiration time to a value that is based on a multiplicative increase of the expiration time; and
otherwise, setting the new expiration time to be a value that is a decrementing value from the expiration time.
22. The non-transitory, computer-readable storage device of claim 20 , wherein setting the new expiration time of the other item, further comprises:
when the wait time is determined to be above a threshold value that is based on the expiration time, setting the new expiration time to a value that is based on a multiplicative increase of the wait time; and
otherwise, setting the new expiration time to be a value that is a decrementing value from the expiration time.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
US13/662,315 US20130060937A1 (en) | 2011-03-30 | 2012-10-26 | System and method for fast file tracking and change monitoring |
US14/034,220 US8977638B2 (en) | 2011-03-30 | 2013-09-23 | File identification management and tracking |
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
US13/076,263 US8548961B2 (en) | 2011-03-30 | 2011-03-30 | System and method for fast file tracking and change monitoring |
US13/662,315 US20130060937A1 (en) | 2011-03-30 | 2012-10-26 | System and method for fast file tracking and change monitoring |
Related Parent Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
US13/076,263 Continuation US8548961B2 (en) | 2011-03-30 | 2011-03-30 | System and method for fast file tracking and change monitoring |
Related Child Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
US14/034,220 Continuation-In-Part US8977638B2 (en) | 2011-03-30 | 2013-09-23 | File identification management and tracking |
Publications (1)
Publication Number | Publication Date |
---|---|
US20130060937A1 true US20130060937A1 (en) | 2013-03-07 |
Family
ID=46928610
Family Applications (4)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
US13/076,263 Active 2031-06-17 US8548961B2 (en) | 2011-03-30 | 2011-03-30 | System and method for fast file tracking and change monitoring |
US13/662,315 Abandoned US20130060937A1 (en) | 2011-03-30 | 2012-10-26 | System and method for fast file tracking and change monitoring |
US14/014,059 Active 2033-08-13 US10083190B2 (en) | 2011-03-30 | 2013-08-29 | Adaptive monitoring and processing of new data files and changes to existing data files |
US16/141,913 Active US11042515B2 (en) | 2011-03-30 | 2018-09-25 | Detecting and resolving computer system errors using fast file change monitoring |
Family Applications Before (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
US13/076,263 Active 2031-06-17 US8548961B2 (en) | 2011-03-30 | 2011-03-30 | System and method for fast file tracking and change monitoring |
Family Applications After (2)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
US14/014,059 Active 2033-08-13 US10083190B2 (en) | 2011-03-30 | 2013-08-29 | Adaptive monitoring and processing of new data files and changes to existing data files |
US16/141,913 Active US11042515B2 (en) | 2011-03-30 | 2018-09-25 | Detecting and resolving computer system errors using fast file change monitoring |
Country Status (2)
Country | Link |
---|---|
US (4) | US8548961B2 (en) |
WO (1) | WO2012135516A2 (en) |
Cited By (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8548961B2 (en) | 2011-03-30 | 2013-10-01 | Splunk Inc. | System and method for fast file tracking and change monitoring |
US8566336B2 (en) | 2011-03-30 | 2013-10-22 | Splunk Inc. | File identification management and tracking |
US8682906B1 (en) | 2013-01-23 | 2014-03-25 | Splunk Inc. | Real time display of data field values based on manual editing of regular expressions |
US8751499B1 (en) * | 2013-01-22 | 2014-06-10 | Splunk Inc. | Variable representative sampling under resource constraints |
US8751963B1 (en) | 2013-01-23 | 2014-06-10 | Splunk Inc. | Real time indication of previously extracted data fields for regular expressions |
US8909642B2 (en) | 2013-01-23 | 2014-12-09 | Splunk Inc. | Automatic generation of a field-extraction rule based on selections in a sample event |
US9152929B2 (en) | 2013-01-23 | 2015-10-06 | Splunk Inc. | Real time display of statistics and values for selected regular expressions |
US20170139887A1 (en) | 2012-09-07 | 2017-05-18 | Splunk, Inc. | Advanced field extractor with modification of an extracted field |
US10095878B2 (en) | 2015-06-02 | 2018-10-09 | ALTR Solutions, Inc. | Internal controls engine and reporting of events generated by a network or associated applications |
US10318537B2 (en) | 2013-01-22 | 2019-06-11 | Splunk Inc. | Advanced field extractor |
US10394946B2 (en) | 2012-09-07 | 2019-08-27 | Splunk Inc. | Refining extraction rules based on selected text within events |
US11651149B1 (en) | 2012-09-07 | 2023-05-16 | Splunk Inc. | Event selection via graphical user interface control |
Families Citing this family (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US10565229B2 (en) * | 2018-05-24 | 2020-02-18 | People.ai, Inc. | Systems and methods for matching electronic activities directly to record objects of systems of record |
US9015118B2 (en) | 2011-07-15 | 2015-04-21 | International Business Machines Corporation | Determining and presenting provenance and lineage for content in a content management system |
US9286334B2 (en) | 2011-07-15 | 2016-03-15 | International Business Machines Corporation | Versioning of metadata, including presentation of provenance and lineage for versioned metadata |
US9384193B2 (en) | 2011-07-15 | 2016-07-05 | International Business Machines Corporation | Use and enforcement of provenance and lineage constraints |
US9418065B2 (en) * | 2012-01-26 | 2016-08-16 | International Business Machines Corporation | Tracking changes related to a collection of documents |
US11429651B2 (en) | 2013-03-14 | 2022-08-30 | International Business Machines Corporation | Document provenance scoring based on changes between document versions |
US9779237B2 (en) | 2013-03-15 | 2017-10-03 | Netiq Corporation | Detection of non-volatile changes to a resource |
US10334101B2 (en) * | 2013-05-22 | 2019-06-25 | Nice Ltd. | System and method for generating metadata for a recorded session |
US9875344B1 (en) * | 2014-09-05 | 2018-01-23 | Silver Peak Systems, Inc. | Dynamic monitoring and authorization of an optimization device |
US10929471B2 (en) * | 2017-09-08 | 2021-02-23 | International Business Machines Corporation | Sequential pattern mining |
US11924297B2 (en) | 2018-05-24 | 2024-03-05 | People.ai, Inc. | Systems and methods for generating a filtered data set |
US11463441B2 (en) | 2018-05-24 | 2022-10-04 | People.ai, Inc. | Systems and methods for managing the generation or deletion of record objects based on electronic activities and communication policies |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20090228533A1 (en) * | 2008-03-05 | 2009-09-10 | Ca, Inc. | File change detection |
US20100169287A1 (en) * | 2008-11-26 | 2010-07-01 | Commvault Systems, Inc. | Systems and methods for byte-level or quasi byte-level single instancing |
Family Cites Families (82)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5902352A (en) | 1995-03-06 | 1999-05-11 | Intel Corporation | Method and apparatus for task scheduling across multiple execution sessions |
WO1996032685A1 (en) | 1995-04-11 | 1996-10-17 | Kinetech, Inc. | Identifying data in a data processing system |
US5778395A (en) * | 1995-10-23 | 1998-07-07 | Stac, Inc. | System for backing up files from disk volumes on multiple nodes of a computer network |
US5918013A (en) | 1996-06-03 | 1999-06-29 | Webtv Networks, Inc. | Method of transcoding documents in a network environment using a proxy server |
US6311197B2 (en) | 1996-06-03 | 2001-10-30 | Webtv Networks, Inc. | Method for downloading a web page to a client for efficient display on a television screen |
US6957260B1 (en) * | 1996-06-03 | 2005-10-18 | Microsoft Corporation | Method of improving access to services provided by a plurality of remote service providers |
US5898836A (en) | 1997-01-14 | 1999-04-27 | Netmind Services, Inc. | Change-detection tool indicating degree and location of change of internet documents by comparison of cyclic-redundancy-check(CRC) signatures |
US6256712B1 (en) * | 1997-08-01 | 2001-07-03 | International Business Machines Corporation | Scaleable method for maintaining and making consistent updates to caches |
US7035943B2 (en) * | 1998-05-29 | 2006-04-25 | Yahoo! Inc. | Web server content replication |
US7778260B2 (en) * | 1998-10-09 | 2010-08-17 | Netmotion Wireless, Inc. | Method and apparatus for providing mobile and other intermittent connectivity in a computing environment |
US6711572B2 (en) * | 2000-06-14 | 2004-03-23 | Xosoft Inc. | File system for distributing content in a data network and related methods |
US6778972B2 (en) | 2000-08-10 | 2004-08-17 | Gustavo S. Leonardos′ | System and method for providing integrated management of electronic information |
US20020133325A1 (en) * | 2001-02-09 | 2002-09-19 | Hoare Raymond R. | Discrete event simulator |
CN1647073B (en) * | 2002-03-29 | 2010-05-26 | 索尼株式会社 | Information search system, information processing apparatus and method, and information search apparatus and method |
US7051009B2 (en) | 2002-03-29 | 2006-05-23 | Hewlett-Packard Development Company, L.P. | Automatic hierarchical classification of temporal ordered case log documents for detection of changes |
JP4086611B2 (en) | 2002-10-02 | 2008-05-14 | 三洋電機株式会社 | RECORDING CONTROL DEVICE, METHOD, AND RECORDING MEDIUM USING THE RECORDING CONTROL METHOD |
US7337471B2 (en) | 2002-10-07 | 2008-02-26 | Symantec Corporation | Selective detection of malicious computer code |
US7165076B2 (en) * | 2002-11-15 | 2007-01-16 | Check Point Software Technologies, Inc. | Security system with methodology for computing unique security signature for executable file employed across different machines |
US8131691B1 (en) * | 2002-12-30 | 2012-03-06 | Symantec Operating Corporation | System and method for updating a search engine index based on which files are identified in a file change log |
US7320009B1 (en) | 2003-03-28 | 2008-01-15 | Novell, Inc. | Methods and systems for file replication utilizing differences between versions of files |
US7143115B2 (en) | 2003-04-15 | 2006-11-28 | Pocket Soft, Inc. | Method and apparatus for finding differences between two computer files efficiently in linear time and for using these differences to update computer files |
US20040259633A1 (en) * | 2003-04-16 | 2004-12-23 | Gentles Thomas A. | Remote authentication of gaming software in a gaming system environment |
US7496212B2 (en) | 2003-05-16 | 2009-02-24 | Hitachi Kokusai Electric Inc. | Change detecting method and apparatus |
US7203711B2 (en) | 2003-05-22 | 2007-04-10 | Einstein's Elephant, Inc. | Systems and methods for distributed content storage and management |
US20070276823A1 (en) | 2003-05-22 | 2007-11-29 | Bruce Borden | Data management systems and methods for distributed data storage and management using content signatures |
US20070050777A1 (en) * | 2003-06-09 | 2007-03-01 | Hutchinson Thomas W | Duration of alerts and scanning of large data stores |
US7328217B2 (en) | 2003-11-26 | 2008-02-05 | Symantec Operating Corporation | System and method for detecting and storing file identity change information within a file system |
US8346803B2 (en) | 2003-12-12 | 2013-01-01 | Knapp Investment Company Limited | Dynamic generation of target files from template files and tracking of the processing of target files |
US7320007B1 (en) | 2003-12-12 | 2008-01-15 | Peter Hon-You Chang | Dynamic generation of target files from template files and tracking of the processing of target files |
US7779021B1 (en) | 2004-03-09 | 2010-08-17 | Versata Development Group, Inc. | Session-based processing method and system |
US7702957B2 (en) | 2004-05-21 | 2010-04-20 | Bea Systems, Inc. | Systems and methods for timer service |
US20050273486A1 (en) * | 2004-06-03 | 2005-12-08 | Keith Robert O Jr | Virtual distributed file system |
US7743012B2 (en) * | 2004-09-08 | 2010-06-22 | Universal Electronics Inc. | Configurable controlling device and associated configuration upload and download system and method |
PT2148479E (en) * | 2004-12-24 | 2013-02-20 | Aspera Inc | Bulk data transfer |
US8214707B2 (en) * | 2007-06-26 | 2012-07-03 | Aspera, Inc. | Method and system for reliable data transfer |
US7895651B2 (en) | 2005-07-29 | 2011-02-22 | Bit 9, Inc. | Content tracking in a network security system |
US20070039053A1 (en) * | 2005-08-03 | 2007-02-15 | Aladdin Knowledge Systems Ltd. | Security server in the cloud |
US7657550B2 (en) * | 2005-11-28 | 2010-02-02 | Commvault Systems, Inc. | User interfaces and methods for managing data in a metabase |
US7986298B1 (en) | 2005-12-19 | 2011-07-26 | Adobe Systems Incorporated | Identifying changes to an image file |
WO2007086096A1 (en) * | 2006-01-24 | 2007-08-02 | Fujitsu Limited | Information processing method, information processing program, and information processing device |
US8443354B1 (en) | 2006-03-29 | 2013-05-14 | Symantec Corporation | Detecting new or modified portions of code |
US20070250517A1 (en) * | 2006-04-20 | 2007-10-25 | Bestgen Robert J | Method and Apparatus for Autonomically Maintaining Latent Auxiliary Database Structures for Use in Executing Database Queries |
US7831902B2 (en) | 2006-05-31 | 2010-11-09 | Microsoft Corporation | Displaying interrelated changes in a grid |
US8516050B1 (en) * | 2006-06-28 | 2013-08-20 | Insors Integrated Communications | Methods and program products for communicating file modifications during a collaboration event |
US20080040388A1 (en) | 2006-08-04 | 2008-02-14 | Jonah Petri | Methods and systems for tracking document lineage |
US7606842B2 (en) | 2006-09-27 | 2009-10-20 | Hewlett-Packard Development Company, L.P. | Method of merging a clone file system with an original file system |
US20080228574A1 (en) | 2006-10-11 | 2008-09-18 | Monitor110, Inc. | System And Method For Conveying Content Changes Over A Network |
US7783677B2 (en) | 2007-03-30 | 2010-08-24 | Microsoft Corporation | Tracking file system namespace changes during transactions |
US8127358B1 (en) * | 2007-05-30 | 2012-02-28 | Trend Micro Incorporated | Thin client for computer security applications |
KR101553834B1 (en) | 2007-09-07 | 2015-10-01 | 삼성전자주식회사 | Method and apparatus for processing multimedia contents and meta data |
US9424266B2 (en) | 2007-10-01 | 2016-08-23 | Microsoft Technology Licensing, Llc | Efficient file hash identifier computation |
US9413825B2 (en) | 2007-10-31 | 2016-08-09 | Emc Corporation | Managing file objects in a data storage system |
US7836053B2 (en) | 2007-12-28 | 2010-11-16 | Group Logic, Inc. | Apparatus and methods of identifying potentially similar content for data reduction |
US20090193210A1 (en) | 2008-01-29 | 2009-07-30 | Hewett Jeffrey R | System for Automatic Legal Discovery Management and Data Collection |
JP2009187136A (en) | 2008-02-04 | 2009-08-20 | Fujitsu Ltd | Electronic file management apparatus and electronic file management method |
WO2009134772A2 (en) * | 2008-04-29 | 2009-11-05 | Maxiscale, Inc | Peer-to-peer redundant file server system and methods |
US8055613B1 (en) | 2008-04-29 | 2011-11-08 | Netapp, Inc. | Method and apparatus for efficiently detecting and logging file system changes |
US20090327288A1 (en) | 2008-06-29 | 2009-12-31 | Microsoft Corporation | Content enumeration techniques for portable devices |
US8103718B2 (en) | 2008-07-31 | 2012-01-24 | Microsoft Corporation | Content discovery and transfer between mobile communications nodes |
TW201011540A (en) * | 2008-09-12 | 2010-03-16 | Acer Inc | Data backup system and method thereof |
US8122340B2 (en) * | 2008-09-29 | 2012-02-21 | Tow Bruce | System and method for management of common decentralized applications data and logic |
US9367680B2 (en) * | 2008-10-21 | 2016-06-14 | Lookout, Inc. | System and method for mobile communication device application advisement |
US8713312B2 (en) | 2008-12-07 | 2014-04-29 | Trend Micrio Incorporated | Method and system for detecting data modification within computing device |
CN103957448B (en) | 2009-04-09 | 2017-05-17 | 瑞典爱立信有限公司 | Method for generating media container file, media content server, media processing method and media processing server |
US20100274772A1 (en) | 2009-04-23 | 2010-10-28 | Allen Samuels | Compressed data objects referenced via address references and compression references |
US20100325352A1 (en) * | 2009-06-19 | 2010-12-23 | Ocz Technology Group, Inc. | Hierarchically structured mass storage device and method |
US9213780B2 (en) | 2009-06-26 | 2015-12-15 | Microsoft Technology Licensing Llc | Cache and index refreshing strategies for variably dynamic items and accesses |
US8521986B2 (en) * | 2009-10-29 | 2013-08-27 | Condusiv Technologies Corporation | Allocating storage memory based on future file size or use estimates |
US9292529B2 (en) * | 2009-12-10 | 2016-03-22 | Oracle International Corporation | File change detector and tracker |
US8442983B2 (en) | 2009-12-31 | 2013-05-14 | Commvault Systems, Inc. | Asynchronous methods of data classification using change journals and other data structures |
US8555157B1 (en) * | 2010-01-21 | 2013-10-08 | Google Inc. | Document update generation |
US9430155B2 (en) * | 2010-03-25 | 2016-08-30 | International Business Machines Corporation | File index, metadata storage, and file system management for magnetic tape |
US8504517B2 (en) * | 2010-03-29 | 2013-08-06 | Commvault Systems, Inc. | Systems and methods for selective data replication |
US8326803B1 (en) | 2010-05-06 | 2012-12-04 | Symantec Corporation | Change tracking of individual virtual disk files |
US20120023065A1 (en) | 2010-07-20 | 2012-01-26 | Deweese William | System and method for managing data on an occasionally connected mobile device |
US8417674B2 (en) | 2010-11-16 | 2013-04-09 | Actifio, Inc. | System and method for creating deduplicated copies of data by sending difference data between near-neighbor temporal states |
US20120143824A1 (en) | 2010-12-02 | 2012-06-07 | Microsoft Corporation | Protecting files that include editable metadata |
US20120170914A1 (en) | 2011-01-04 | 2012-07-05 | Sony Dadc Us Inc. | Logging events in media files |
US8700804B1 (en) * | 2011-03-16 | 2014-04-15 | EP Visual Design, Inc. | Methods and apparatus for managing mobile content |
US8548961B2 (en) | 2011-03-30 | 2013-10-01 | Splunk Inc. | System and method for fast file tracking and change monitoring |
US8566336B2 (en) | 2011-03-30 | 2013-10-22 | Splunk Inc. | File identification management and tracking |
US9020987B1 (en) | 2011-06-29 | 2015-04-28 | Emc Corporation | Managing updating of metadata of file systems |
-
2011
- 2011-03-30 US US13/076,263 patent/US8548961B2/en active Active
-
2012
- 2012-03-29 WO PCT/US2012/031242 patent/WO2012135516A2/en active Application Filing
- 2012-10-26 US US13/662,315 patent/US20130060937A1/en not_active Abandoned
-
2013
- 2013-08-29 US US14/014,059 patent/US10083190B2/en active Active
-
2018
- 2018-09-25 US US16/141,913 patent/US11042515B2/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20090228533A1 (en) * | 2008-03-05 | 2009-09-10 | Ca, Inc. | File change detection |
US20100169287A1 (en) * | 2008-11-26 | 2010-07-01 | Commvault Systems, Inc. | Systems and methods for byte-level or quasi byte-level single instancing |
Cited By (44)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9430488B2 (en) | 2011-03-30 | 2016-08-30 | Splunk Inc. | File update tracking |
US8566336B2 (en) | 2011-03-30 | 2013-10-22 | Splunk Inc. | File identification management and tracking |
US11042515B2 (en) | 2011-03-30 | 2021-06-22 | Splunk Inc. | Detecting and resolving computer system errors using fast file change monitoring |
US10860537B2 (en) | 2011-03-30 | 2020-12-08 | Splunk Inc. | Periodically processing data in files identified using checksums |
US10083190B2 (en) | 2011-03-30 | 2018-09-25 | Splunk Inc. | Adaptive monitoring and processing of new data files and changes to existing data files |
US11580071B2 (en) | 2011-03-30 | 2023-02-14 | Splunk Inc. | Monitoring changes to data items using associated metadata |
US9767112B2 (en) | 2011-03-30 | 2017-09-19 | Splunk Inc. | File update detection and processing |
US8548961B2 (en) | 2011-03-30 | 2013-10-01 | Splunk Inc. | System and method for fast file tracking and change monitoring |
US10394946B2 (en) | 2012-09-07 | 2019-08-27 | Splunk Inc. | Refining extraction rules based on selected text within events |
US11042697B2 (en) | 2012-09-07 | 2021-06-22 | Splunk Inc. | Determining an extraction rule from positive and negative examples |
US20170139887A1 (en) | 2012-09-07 | 2017-05-18 | Splunk, Inc. | Advanced field extractor with modification of an extracted field |
US11651149B1 (en) | 2012-09-07 | 2023-05-16 | Splunk Inc. | Event selection via graphical user interface control |
US10783318B2 (en) | 2012-09-07 | 2020-09-22 | Splunk, Inc. | Facilitating modification of an extracted field |
US10783324B2 (en) | 2012-09-07 | 2020-09-22 | Splunk Inc. | Wizard for configuring a field extraction rule |
US11972203B1 (en) | 2012-09-07 | 2024-04-30 | Splunk Inc. | Using anchors to generate extraction rules |
US11423216B2 (en) | 2012-09-07 | 2022-08-23 | Splunk Inc. | Providing extraction results for a particular field |
US10318537B2 (en) | 2013-01-22 | 2019-06-11 | Splunk Inc. | Advanced field extractor |
US9582557B2 (en) | 2013-01-22 | 2017-02-28 | Splunk Inc. | Sampling events for rule creation with process selection |
US8751499B1 (en) * | 2013-01-22 | 2014-06-10 | Splunk Inc. | Variable representative sampling under resource constraints |
US11106691B2 (en) | 2013-01-22 | 2021-08-31 | Splunk Inc. | Automated extraction rule generation using a timestamp selector |
US11232124B2 (en) | 2013-01-22 | 2022-01-25 | Splunk Inc. | Selection of a representative data subset of a set of unstructured data |
US10585910B1 (en) | 2013-01-22 | 2020-03-10 | Splunk Inc. | Managing selection of a representative data subset according to user-specified parameters with clustering |
US11775548B1 (en) | 2013-01-22 | 2023-10-03 | Splunk Inc. | Selection of representative data subsets from groups of events |
US11709850B1 (en) | 2013-01-22 | 2023-07-25 | Splunk Inc. | Using a timestamp selector to select a time information and a type of time information |
US9031955B2 (en) | 2013-01-22 | 2015-05-12 | Splunk Inc. | Sampling of events to use for developing a field-extraction rule for a field to use in event searching |
US20170255695A1 (en) | 2013-01-23 | 2017-09-07 | Splunk, Inc. | Determining Rules Based on Text |
US9152929B2 (en) | 2013-01-23 | 2015-10-06 | Splunk Inc. | Real time display of statistics and values for selected regular expressions |
US10769178B2 (en) | 2013-01-23 | 2020-09-08 | Splunk Inc. | Displaying a proportion of events that have a particular value for a field in a set of events |
US10585919B2 (en) | 2013-01-23 | 2020-03-10 | Splunk Inc. | Determining events having a value |
US11100150B2 (en) | 2013-01-23 | 2021-08-24 | Splunk Inc. | Determining rules based on text |
US10579648B2 (en) | 2013-01-23 | 2020-03-03 | Splunk Inc. | Determining events associated with a value |
US11119728B2 (en) | 2013-01-23 | 2021-09-14 | Splunk Inc. | Displaying event records with emphasized fields |
US11210325B2 (en) | 2013-01-23 | 2021-12-28 | Splunk Inc. | Automatic rule modification |
US10282463B2 (en) | 2013-01-23 | 2019-05-07 | Splunk Inc. | Displaying a number of events that have a particular value for a field in a set of events |
US12061638B1 (en) | 2013-01-23 | 2024-08-13 | Splunk Inc. | Presenting filtered events having selected extracted values |
US11514086B2 (en) | 2013-01-23 | 2022-11-29 | Splunk Inc. | Generating statistics associated with unique field values |
US11556577B2 (en) | 2013-01-23 | 2023-01-17 | Splunk Inc. | Filtering event records based on selected extracted value |
US10019226B2 (en) | 2013-01-23 | 2018-07-10 | Splunk Inc. | Real time indication of previously extracted data fields for regular expressions |
US10802797B2 (en) | 2013-01-23 | 2020-10-13 | Splunk Inc. | Providing an extraction rule associated with a selected portion of an event |
US8909642B2 (en) | 2013-01-23 | 2014-12-09 | Splunk Inc. | Automatic generation of a field-extraction rule based on selections in a sample event |
US8751963B1 (en) | 2013-01-23 | 2014-06-10 | Splunk Inc. | Real time indication of previously extracted data fields for regular expressions |
US11782678B1 (en) | 2013-01-23 | 2023-10-10 | Splunk Inc. | Graphical user interface for extraction rules |
US8682906B1 (en) | 2013-01-23 | 2014-03-25 | Splunk Inc. | Real time display of data field values based on manual editing of regular expressions |
US10095878B2 (en) | 2015-06-02 | 2018-10-09 | ALTR Solutions, Inc. | Internal controls engine and reporting of events generated by a network or associated applications |
Also Published As
Publication number | Publication date |
---|---|
US20120254128A1 (en) | 2012-10-04 |
US20140136488A1 (en) | 2014-05-15 |
US8548961B2 (en) | 2013-10-01 |
US10083190B2 (en) | 2018-09-25 |
US11042515B2 (en) | 2021-06-22 |
US20190026319A1 (en) | 2019-01-24 |
WO2012135516A3 (en) | 2013-01-03 |
WO2012135516A2 (en) | 2012-10-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11042515B2 (en) | Detecting and resolving computer system errors using fast file change monitoring | |
US11914552B1 (en) | Facilitating existing item determinations | |
US11176146B2 (en) | Determining indications of unique values for fields | |
US8589403B2 (en) | Compressed journaling in event tracking files for metadata recovery and replication |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
AS | Assignment |
Owner name: SPLUNK INC., CALIFORNIA Free format text: ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNORS:BATH, AMRITPAL SINGH;BLANK, MITCHELL NEUMAN, JR.;PATEL, VISHAL;AND OTHERS;REEL/FRAME:029202/0742 Effective date: 20110329 |
|
STCB | Information on status: application discontinuation |
Free format text: ABANDONED -- FAILURE TO RESPOND TO AN OFFICE ACTION |